OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // InspectorClient implementation. | 97 // InspectorClient implementation. |
98 virtual void highlight(); | 98 virtual void highlight(); |
99 virtual void hideHighlight(); | 99 virtual void hideHighlight(); |
100 virtual void updateInspectorStateCookie(const WTF::String&); | 100 virtual void updateInspectorStateCookie(const WTF::String&); |
101 virtual bool sendMessageToFrontend(const WTF::String&); | 101 virtual bool sendMessageToFrontend(const WTF::String&); |
102 | 102 |
103 virtual void clearBrowserCache(); | 103 virtual void clearBrowserCache(); |
104 virtual void clearBrowserCookies(); | 104 virtual void clearBrowserCookies(); |
105 | 105 |
106 virtual void overrideDeviceMetrics(int width, int height, float deviceScaleF
actor, bool fitWindow); | 106 virtual void overrideDeviceMetrics(int width, int height, float deviceScaleF
actor, bool emulateViewport, bool fitWindow); |
107 | 107 |
108 virtual void getAllocatedObjects(HashSet<const void*>&); | 108 virtual void getAllocatedObjects(HashSet<const void*>&); |
109 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&); | 109 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&); |
110 virtual void setTraceEventCallback(TraceEventCallback); | 110 virtual void setTraceEventCallback(TraceEventCallback); |
111 | 111 |
112 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&); | 112 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&); |
113 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&); | 113 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&); |
114 | 114 |
115 int hostId() { return m_hostId; } | 115 int hostId() { return m_hostId; } |
116 | 116 |
117 // WebPageOverlay | 117 // WebPageOverlay |
118 virtual void paintPageOverlay(WebCanvas*); | 118 virtual void paintPageOverlay(WebCanvas*); |
119 | 119 |
120 virtual WebSize deviceMetricsOffset() OVERRIDE; | 120 virtual WebSize deviceMetricsOffset() OVERRIDE; |
121 | 121 |
122 private: | 122 private: |
123 // WebThread::TaskObserver | 123 // WebThread::TaskObserver |
124 virtual void willProcessTask(); | 124 virtual void willProcessTask(); |
125 virtual void didProcessTask(); | 125 virtual void didProcessTask(); |
126 | 126 |
| 127 void enableViewportEmulation(); |
| 128 void disableViewportEmulation(); |
| 129 |
127 WebCore::InspectorController* inspectorController(); | 130 WebCore::InspectorController* inspectorController(); |
128 WebCore::Frame* mainFrame(); | 131 WebCore::Frame* mainFrame(); |
129 | 132 |
130 int m_hostId; | 133 int m_hostId; |
131 WebDevToolsAgentClient* m_client; | 134 WebDevToolsAgentClient* m_client; |
132 WebViewImpl* m_webViewImpl; | 135 WebViewImpl* m_webViewImpl; |
133 bool m_attached; | 136 bool m_attached; |
134 bool m_generatingEvent; | 137 bool m_generatingEvent; |
135 bool m_deviceMetricsEnabled; | 138 bool m_deviceMetricsEnabled; |
| 139 bool m_emulateViewportEnabled; |
| 140 bool m_originalViewportEnabled; |
136 bool m_isOverlayScrollbarsEnabled; | 141 bool m_isOverlayScrollbarsEnabled; |
137 bool m_isCSSViewportEnabled; | |
138 }; | 142 }; |
139 | 143 |
140 } // namespace WebKit | 144 } // namespace WebKit |
141 | 145 |
142 #endif | 146 #endif |
OLD | NEW |