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

Side by Side Diff: Source/web/WebDevToolsAgentImpl.h

Issue 355393004: [DevTools] Rename "emulateViewport" to "mobile". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another rebase Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/InspectorClientImpl.cpp ('k') | Source/web/WebDevToolsAgentImpl.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual void setLayerTreeId(int) OVERRIDE; 100 virtual void setLayerTreeId(int) OVERRIDE;
101 virtual void processGPUEvent(const GPUEvent&) OVERRIDE; 101 virtual void processGPUEvent(const GPUEvent&) OVERRIDE;
102 102
103 // InspectorClient implementation. 103 // InspectorClient implementation.
104 virtual void highlight() OVERRIDE; 104 virtual void highlight() OVERRIDE;
105 virtual void hideHighlight() OVERRIDE; 105 virtual void hideHighlight() OVERRIDE;
106 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; 106 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE;
107 virtual void sendMessageToFrontend(PassRefPtr<WebCore::JSONObject> message) OVERRIDE; 107 virtual void sendMessageToFrontend(PassRefPtr<WebCore::JSONObject> message) OVERRIDE;
108 virtual void flush() OVERRIDE; 108 virtual void flush() OVERRIDE;
109 109
110 virtual void setDeviceMetricsOverride(int width, int height, float deviceSca leFactor, bool emulateViewport, bool fitWindow, float scale, float offsetX, floa t offsetY) OVERRIDE; 110 virtual void setDeviceMetricsOverride(int width, int height, float deviceSca leFactor, bool mobile, bool fitWindow, float scale, float offsetX, float offsetY ) OVERRIDE;
111 virtual void clearDeviceMetricsOverride() OVERRIDE; 111 virtual void clearDeviceMetricsOverride() OVERRIDE;
112 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE; 112 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE;
113 113
114 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE; 114 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE;
115 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) OVERRIDE; 115 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) OVERRIDE;
116 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE ventCallback) OVERRIDE; 116 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE ventCallback) OVERRIDE;
117 virtual void resetTraceEventCallback() OVERRIDE; 117 virtual void resetTraceEventCallback() OVERRIDE;
118 virtual void enableTracing(const WTF::String& categoryFilter) OVERRIDE; 118 virtual void enableTracing(const WTF::String& categoryFilter) OVERRIDE;
119 virtual void disableTracing() OVERRIDE; 119 virtual void disableTracing() OVERRIDE;
120 120
121 virtual void startGPUEventsRecording() OVERRIDE; 121 virtual void startGPUEventsRecording() OVERRIDE;
122 virtual void stopGPUEventsRecording() OVERRIDE; 122 virtual void stopGPUEventsRecording() OVERRIDE;
123 123
124 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRID E; 124 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRID E;
125 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE ; 125 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE ;
126 126
127 // WebPageOverlay 127 // WebPageOverlay
128 virtual void paintPageOverlay(WebCanvas*) OVERRIDE; 128 virtual void paintPageOverlay(WebCanvas*) OVERRIDE;
129 129
130 void flushPendingFrontendMessages(); 130 void flushPendingFrontendMessages();
131 131
132 private: 132 private:
133 // WebThread::TaskObserver 133 // WebThread::TaskObserver
134 virtual void willProcessTask() OVERRIDE; 134 virtual void willProcessTask() OVERRIDE;
135 virtual void didProcessTask() OVERRIDE; 135 virtual void didProcessTask() OVERRIDE;
136 136
137 void enableViewportEmulation(); 137 void enableMobileEmulation();
138 void disableViewportEmulation(); 138 void disableMobileEmulation();
139 void updatePageScaleFactorLimits(); 139 void updatePageScaleFactorLimits();
140 140
141 WebCore::InspectorController* inspectorController(); 141 WebCore::InspectorController* inspectorController();
142 WebCore::LocalFrame* mainFrame(); 142 WebCore::LocalFrame* mainFrame();
143 143
144 int m_debuggerId; 144 int m_debuggerId;
145 int m_layerTreeId; 145 int m_layerTreeId;
146 WebDevToolsAgentClient* m_client; 146 WebDevToolsAgentClient* m_client;
147 WebViewImpl* m_webViewImpl; 147 WebViewImpl* m_webViewImpl;
148 bool m_attached; 148 bool m_attached;
149 bool m_generatingEvent; 149 bool m_generatingEvent;
150 150
151 bool m_webViewDidLayoutOnceAfterLoad; 151 bool m_webViewDidLayoutOnceAfterLoad;
152 152
153 bool m_deviceMetricsEnabled; 153 bool m_deviceMetricsEnabled;
154 bool m_emulateViewportEnabled; 154 bool m_emulateMobileEnabled;
155 bool m_originalViewportEnabled; 155 bool m_originalViewportEnabled;
156 bool m_isOverlayScrollbarsEnabled; 156 bool m_isOverlayScrollbarsEnabled;
157 157
158 float m_originalMinimumPageScaleFactor; 158 float m_originalMinimumPageScaleFactor;
159 float m_originalMaximumPageScaleFactor; 159 float m_originalMaximumPageScaleFactor;
160 bool m_pageScaleLimitsOverriden; 160 bool m_pageScaleLimitsOverriden;
161 161
162 bool m_touchEventEmulationEnabled; 162 bool m_touchEventEmulationEnabled;
163 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss; 163 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss;
164 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip; 164 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip;
165 165
166 typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue; 166 typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue;
167 FrontendMessageQueue m_frontendMessageQueue; 167 FrontendMessageQueue m_frontendMessageQueue;
168 }; 168 };
169 169
170 } // namespace blink 170 } // namespace blink
171 171
172 #endif 172 #endif
OLDNEW
« no previous file with comments | « Source/web/InspectorClientImpl.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698