Changeset 89252 in webkit
- Timestamp:
- Jun 20, 2011 9:48:23 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r89225 r89252 1 2011-06-20 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled. 6 https://bugs.webkit.org/show_bug.cgi?id=62994 7 8 * public/WebDevToolsAgent.h: 9 * src/WebDevToolsAgentImpl.cpp: 10 * src/WebDevToolsAgentImpl.h: 11 1 12 2011-06-19 Ryosuke Niwa <rniwa@webkit.org> 2 13 -
trunk/Source/WebKit/chromium/public/WebDevToolsAgent.h
r88010 r89252 64 64 virtual void evaluateInWebInspector(long callId, const WebString& script) = 0; 65 65 virtual void setJavaScriptProfilingEnabled(bool) = 0; 66 virtual void setTimelineProfilingEnabled(bool enabled) = 0;67 66 68 67 // Asynchronously executes debugger command in the render thread. -
trunk/Source/WebKit/chromium/src/WebDevToolsAgentImpl.cpp
r88582 r89252 322 322 } 323 323 324 void WebDevToolsAgentImpl::setTimelineProfilingEnabled(bool enabled)325 {326 InspectorController* ic = inspectorController();327 if (enabled)328 ic->startTimelineProfiler();329 else330 ic->stopTimelineProfiler();331 }332 333 324 void WebDevToolsAgent::executeDebuggerCommand(const WebString& command, int callerId) 334 325 { -
trunk/Source/WebKit/chromium/src/WebDevToolsAgentImpl.h
r88582 r89252 82 82 virtual void setJavaScriptProfilingEnabled(bool); 83 83 virtual void setRuntimeProperty(const WebString& name, const WebString& value); 84 virtual void setTimelineProfilingEnabled(bool enable);85 84 86 85 // InspectorClient implementation. -
trunk/Source/WebKit/qt/ChangeLog
r89216 r89252 1 2011-06-20 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled. 6 https://bugs.webkit.org/show_bug.cgi?id=62994 7 8 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 9 * WebCoreSupport/DumpRenderTreeSupportQt.h: 10 1 11 2011-06-18 Dimitri Glazkov <dglazkov@chromium.org> 2 12 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r89019 r89252 225 225 } 226 226 227 void DumpRenderTreeSupportQt::setTimelineProfilingEnabled(QWebPage* page, bool enabled)228 {229 #if ENABLE(INSPECTOR)230 InspectorController* controller = page->handle()->page->inspectorController();231 if (!controller)232 return;233 if (enabled)234 controller->startTimelineProfiler();235 else236 controller->stopTimelineProfiler();237 #endif238 }239 240 227 bool DumpRenderTreeSupportQt::hasDocumentElement(QWebFrame* frame) 241 228 { -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r89019 r89252 122 122 static void evaluateScriptInIsolatedWorld(QWebFrame* frame, int worldID, const QString& script); 123 123 124 static void setTimelineProfilingEnabled(QWebPage*, bool enabled);125 124 static void webInspectorExecuteScript(QWebPage* page, long callId, const QString& script); 126 125 static void webInspectorShow(QWebPage* page); -
trunk/Tools/ChangeLog
r89249 r89252 1 2011-06-20 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled. 6 https://bugs.webkit.org/show_bug.cgi?id=62994 7 8 * DumpRenderTree/LayoutTestController.cpp: 9 (closeWebInspectorCallback): 10 (LayoutTestController::staticFunctions): 11 * DumpRenderTree/LayoutTestController.h: 12 * DumpRenderTree/chromium/DRTDevToolsAgent.cpp: 13 * DumpRenderTree/chromium/DRTDevToolsAgent.h: 14 * DumpRenderTree/chromium/LayoutTestController.cpp: 15 (LayoutTestController::LayoutTestController): 16 * DumpRenderTree/chromium/LayoutTestController.h: 17 * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: 18 * DumpRenderTree/mac/LayoutTestControllerMac.mm: 19 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 20 * DumpRenderTree/qt/LayoutTestControllerQt.h: 21 * DumpRenderTree/win/LayoutTestControllerWin.cpp: 22 * DumpRenderTree/wx/LayoutTestControllerWx.cpp: 23 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 24 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 25 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 26 1 27 2011-06-20 Lukasz Slachciak <l.slachciak@samsung.com> 2 28 -
trunk/Tools/DumpRenderTree/LayoutTestController.cpp
r88432 r89252 1541 1541 } 1542 1542 1543 static JSValueRef setTimelineProfilingEnabledCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)1544 {1545 if (argumentCount < 1)1546 return JSValueMakeUndefined(context);1547 1548 LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));1549 controller->setTimelineProfilingEnabled(JSValueToBoolean(context, arguments[0]));1550 return JSValueMakeUndefined(context);1551 }1552 1553 1543 static JSValueRef setUseDashboardCompatibilityModeCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 1554 1544 { … … 1821 1811 { 1822 1812 LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 1823 controller->setTimelineProfilingEnabled(false);1824 1813 controller->closeWebInspector(); 1825 1814 return JSValueMakeUndefined(context); … … 2417 2406 { "setStopProvisionalFrameLoads", setStopProvisionalFrameLoadsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2418 2407 { "setTabKeyCyclesThroughElements", setTabKeyCyclesThroughElementsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2419 { "setTimelineProfilingEnabled", setTimelineProfilingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },2420 2408 { "setUseDashboardCompatibilityMode", setUseDashboardCompatibilityModeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2421 2409 { "setUserStyleSheetEnabled", setUserStyleSheetEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/Tools/DumpRenderTree/LayoutTestController.h
r88432 r89252 306 306 void showWebInspector(); 307 307 void closeWebInspector(); 308 void setTimelineProfilingEnabled(bool enabled);309 308 void evaluateInWebInspector(long callId, JSStringRef script); 310 309 void evaluateScriptInIsolatedWorld(unsigned worldID, JSObjectRef globalObject, JSStringRef script); -
trunk/Tools/DumpRenderTree/chromium/DRTDevToolsAgent.cpp
r88010 r89252 137 137 } 138 138 139 bool DRTDevToolsAgent::setTimelineProfilingEnabled(bool enabled)140 {141 WebDevToolsAgent* agent = webDevToolsAgent();142 if (!agent)143 return false;144 agent->setTimelineProfilingEnabled(enabled);145 return true;146 }147 148 139 bool DRTDevToolsAgent::evaluateInWebInspector(long callID, const std::string& script) 149 140 { -
trunk/Tools/DumpRenderTree/chromium/DRTDevToolsAgent.h
r88010 r89252 72 72 bool evaluateInWebInspector(long callID, const std::string& script); 73 73 bool setJavaScriptProfilingEnabled(bool); 74 bool setTimelineProfilingEnabled(bool);75 74 TaskList* taskList() { return &m_taskList; } 76 75 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp
r88726 r89252 176 176 bindMethod("setStopProvisionalFrameLoads", &LayoutTestController::setStopProvisionalFrameLoads); 177 177 bindMethod("setTabKeyCyclesThroughElements", &LayoutTestController::setTabKeyCyclesThroughElements); 178 bindMethod("setTimelineProfilingEnabled", &LayoutTestController::setTimelineProfilingEnabled);179 178 bindMethod("setUserStyleSheetEnabled", &LayoutTestController::setUserStyleSheetEnabled); 180 179 bindMethod("setUserStyleSheetLocation", &LayoutTestController::setUserStyleSheetLocation); … … 1670 1669 } 1671 1670 1672 void LayoutTestController::setTimelineProfilingEnabled(const CppArgumentList& arguments, CppVariant* result)1673 {1674 result->setNull();1675 if (arguments.size() < 1 || !arguments[0].isBool())1676 return;1677 m_shell->drtDevToolsAgent()->setTimelineProfilingEnabled(arguments[0].toBoolean());1678 }1679 1680 1671 void LayoutTestController::evaluateInWebInspector(const CppArgumentList& arguments, CppVariant* result) 1681 1672 { -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.h
r88726 r89252 336 336 // Allows layout tests to start JavaScript profiling. 337 337 void setJavaScriptProfilingEnabled(const CppArgumentList&, CppVariant*); 338 339 // Allows layout tests to start Timeline profiling.340 void setTimelineProfilingEnabled(const CppArgumentList&, CppVariant*);341 338 342 339 // Allows layout tests to exec scripts at WebInspector side. -
trunk/Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r88432 r89252 302 302 } 303 303 304 void LayoutTestController::setTimelineProfilingEnabled(bool flag)305 {306 WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);307 ASSERT(view);308 309 WebKitWebInspector* inspector = webkit_web_view_get_inspector(view);310 g_object_set(G_OBJECT(inspector), "timeline-profiling-enabled", flag, NULL);311 }312 313 304 void LayoutTestController::setUseDashboardCompatibilityMode(bool flag) 314 305 { -
trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r88432 r89252 571 571 } 572 572 573 void LayoutTestController::setTimelineProfilingEnabled(bool enabled)574 {575 [[[mainFrame webView] inspector] setTimelineProfilingEnabled:enabled];576 }577 578 573 void LayoutTestController::setUseDashboardCompatibilityMode(bool flag) 579 574 { -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r89019 r89252 441 441 } 442 442 443 void LayoutTestController::setTimelineProfilingEnabled(bool enable)444 {445 DumpRenderTreeSupportQt::setTimelineProfilingEnabled(m_drt->webPage(), enable);446 }447 448 443 void LayoutTestController::setValueForUser(const QWebElement& element, const QString& value) 449 444 { -
trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.h
r89019 r89252 155 155 void setAutofilled(const QWebElement&, bool enable); 156 156 void setJavaScriptProfilingEnabled(bool enable); 157 void setTimelineProfilingEnabled(bool enable);158 157 void setValueForUser(const QWebElement&, const QString& value); 159 158 void setFixedContentsSize(int width, int height); -
trunk/Tools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r88432 r89252 630 630 } 631 631 632 void LayoutTestController::setTimelineProfilingEnabled(bool flag)633 {634 COMPtr<IWebView> webView;635 if (FAILED(frame->webView(&webView)))636 return;637 638 COMPtr<IWebViewPrivate> viewPrivate;639 if (FAILED(webView->QueryInterface(&viewPrivate)))640 return;641 642 COMPtr<IWebInspector> inspector;643 if (FAILED(viewPrivate->inspector(&inspector)))644 return;645 646 inspector->setTimelineProfilingEnabled(flag);647 }648 649 632 void LayoutTestController::setUseDashboardCompatibilityMode(bool flag) 650 633 { -
trunk/Tools/DumpRenderTree/wx/LayoutTestControllerWx.cpp
r88130 r89252 451 451 } 452 452 453 void LayoutTestController::setTimelineProfilingEnabled(bool enabled)454 {455 456 }457 458 453 void LayoutTestController::evaluateScriptInIsolatedWorld(unsigned worldID, JSObjectRef globalObject, JSStringRef script) 459 454 { -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r87452 r89252 112 112 void closeWebInspector(); 113 113 void evaluateInWebInspector(in long callID, in DOMString script); 114 void setTimelineProfilingEnabled(in boolean enabled);115 114 116 115 void setPOSIXLocale(in DOMString locale); -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r88010 r89252 498 498 } 499 499 500 void LayoutTestController::setTimelineProfilingEnabled(bool enabled)501 {502 WKBundleInspectorSetPageProfilingEnabled(WKBundlePageGetInspector(InjectedBundle::shared().page()->page()), enabled);503 }504 505 500 typedef WTF::HashMap<unsigned, WKRetainPtr<WKBundleScriptWorldRef> > WorldMap; 506 501 static WorldMap& worldMap() -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r88010 r89252 163 163 void evaluateInWebInspector(long callId, JSStringRef script); 164 164 void setJavaScriptProfilingEnabled(bool); 165 void setTimelineProfilingEnabled(bool);166 165 167 166 void setPOSIXLocale(JSStringRef);
Note: See TracChangeset
for help on using the changeset viewer.