| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2009 Google Inc. All rights reserved. | 2  * Copyright (C) 2009 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29  */ | 29  */ | 
| 30 | 30 | 
| 31 #include "config.h" | 31 #include "config.h" | 
| 32 #include "InspectorClientImpl.h" | 32 #include "InspectorClientImpl.h" | 
| 33 | 33 | 
| 34 #include "WebDevToolsAgentImpl.h" | 34 #include "WebDevToolsAgentImpl.h" | 
| 35 #include "WebViewClient.h" | 35 #include "WebViewClient.h" | 
| 36 #include "WebViewImpl.h" | 36 #include "WebViewImpl.h" | 
| 37 #include "core/inspector/InspectorInstrumentation.h" | 37 #include "core/inspector/InspectorInstrumentation.h" | 
| 38 #include "core/frame/DOMWindow.h" | 38 #include "core/frame/DOMWindow.h" | 
|  | 39 #include "core/frame/LocalFrame.h" | 
|  | 40 #include "core/frame/Settings.h" | 
| 39 #include "core/page/Page.h" | 41 #include "core/page/Page.h" | 
| 40 #include "core/frame/Settings.h" |  | 
| 41 #include "platform/JSONValues.h" | 42 #include "platform/JSONValues.h" | 
| 42 #include "platform/geometry/FloatRect.h" | 43 #include "platform/geometry/FloatRect.h" | 
| 43 #include "public/platform/WebRect.h" | 44 #include "public/platform/WebRect.h" | 
| 44 #include "public/platform/WebURL.h" | 45 #include "public/platform/WebURL.h" | 
| 45 #include "public/platform/WebURLRequest.h" | 46 #include "public/platform/WebURLRequest.h" | 
| 46 #include "wtf/Vector.h" | 47 #include "wtf/Vector.h" | 
| 47 | 48 | 
| 48 using namespace WebCore; | 49 using namespace WebCore; | 
| 49 | 50 | 
| 50 namespace blink { | 51 namespace blink { | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132     m_inspectedWebView->setContinuousPaintingEnabled(enabled); | 133     m_inspectedWebView->setContinuousPaintingEnabled(enabled); | 
| 133 } | 134 } | 
| 134 | 135 | 
| 135 void InspectorClientImpl::setShowScrollBottleneckRects(bool show) | 136 void InspectorClientImpl::setShowScrollBottleneckRects(bool show) | 
| 136 { | 137 { | 
| 137     m_inspectedWebView->setShowScrollBottleneckRects(show); | 138     m_inspectedWebView->setShowScrollBottleneckRects(show); | 
| 138 } | 139 } | 
| 139 | 140 | 
| 140 void InspectorClientImpl::requestPageScaleFactor(float scale, const IntPoint& or
     igin) | 141 void InspectorClientImpl::requestPageScaleFactor(float scale, const IntPoint& or
     igin) | 
| 141 { | 142 { | 
| 142     m_inspectedWebView->setPageScaleFactor(scale, origin); | 143     m_inspectedWebView->setPageScaleFactor(scale); | 
|  | 144     m_inspectedWebView->setMainFrameScrollOffset(origin); | 
| 143 } | 145 } | 
| 144 | 146 | 
| 145 void InspectorClientImpl::getAllocatedObjects(HashSet<const void*>& set) | 147 void InspectorClientImpl::getAllocatedObjects(HashSet<const void*>& set) | 
| 146 { | 148 { | 
| 147     if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 149     if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 
| 148         agent->getAllocatedObjects(set); | 150         agent->getAllocatedObjects(set); | 
| 149 } | 151 } | 
| 150 | 152 | 
| 151 void InspectorClientImpl::dumpUncountedAllocatedObjects(const HashMap<const void
     *, size_t>& map) | 153 void InspectorClientImpl::dumpUncountedAllocatedObjects(const HashMap<const void
     *, size_t>& map) | 
| 152 { | 154 { | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 189     if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 191     if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 
| 190         agent->stopGPUEventsRecording(); | 192         agent->stopGPUEventsRecording(); | 
| 191 } | 193 } | 
| 192 | 194 | 
| 193 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 195 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 
| 194 { | 196 { | 
| 195     return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
     )); | 197     return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
     )); | 
| 196 } | 198 } | 
| 197 | 199 | 
| 198 } // namespace blink | 200 } // namespace blink | 
| OLD | NEW | 
|---|