Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/web/InspectorClientImpl.cpp

Issue 225303014: [Pinch-to-zoom] Moved scale factor into PinchViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed layout test breakage Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/web/FullscreenController.cpp ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698