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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 WebDevToolsAgentClient* client() { return m_client; } | 80 WebDevToolsAgentClient* client() { return m_client; } |
81 | 81 |
82 // WebDevToolsAgentPrivate implementation. | 82 // WebDevToolsAgentPrivate implementation. |
83 virtual void didCreateScriptContext(WebLocalFrameImpl*, int worldId) OVERRID
E; | 83 virtual void didCreateScriptContext(WebLocalFrameImpl*, int worldId) OVERRID
E; |
84 virtual bool handleInputEvent(WebCore::Page*, const WebInputEvent&) OVERRIDE
; | 84 virtual bool handleInputEvent(WebCore::Page*, const WebInputEvent&) OVERRIDE
; |
85 | 85 |
86 // WebDevToolsAgent implementation. | 86 // WebDevToolsAgent implementation. |
87 virtual void attach() OVERRIDE; | 87 virtual void attach() OVERRIDE; |
88 virtual void reattach(const WebString& savedState) OVERRIDE; | 88 virtual void reattach(const WebString& savedState) OVERRIDE; |
| 89 virtual void attach(const WebString& hostId) OVERRIDE; |
| 90 virtual void reattach(const WebString& hostId, const WebString& savedState)
OVERRIDE; |
89 virtual void detach() OVERRIDE; | 91 virtual void detach() OVERRIDE; |
90 virtual void didNavigate() OVERRIDE; | 92 virtual void didNavigate() OVERRIDE; |
91 virtual void didBeginFrame(int frameId) OVERRIDE; | 93 virtual void didBeginFrame(int frameId) OVERRIDE; |
92 virtual void didCancelFrame() OVERRIDE; | 94 virtual void didCancelFrame() OVERRIDE; |
93 virtual void willComposite() OVERRIDE; | 95 virtual void willComposite() OVERRIDE; |
94 virtual void didComposite() OVERRIDE; | 96 virtual void didComposite() OVERRIDE; |
95 virtual void dispatchOnInspectorBackend(const WebString& message) OVERRIDE; | 97 virtual void dispatchOnInspectorBackend(const WebString& message) OVERRIDE; |
96 virtual void inspectElementAt(const WebPoint&) OVERRIDE; | 98 virtual void inspectElementAt(const WebPoint&) OVERRIDE; |
97 virtual void evaluateInWebInspector(long callId, const WebString& script) OV
ERRIDE; | 99 virtual void evaluateInWebInspector(long callId, const WebString& script) OV
ERRIDE; |
98 virtual void setProcessId(long) OVERRIDE; | 100 virtual void setProcessId(long) OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void willProcessTask() OVERRIDE; | 135 virtual void willProcessTask() OVERRIDE; |
134 virtual void didProcessTask() OVERRIDE; | 136 virtual void didProcessTask() OVERRIDE; |
135 | 137 |
136 void enableViewportEmulation(); | 138 void enableViewportEmulation(); |
137 void disableViewportEmulation(); | 139 void disableViewportEmulation(); |
138 void updatePageScaleFactorLimits(); | 140 void updatePageScaleFactorLimits(); |
139 | 141 |
140 WebCore::InspectorController* inspectorController(); | 142 WebCore::InspectorController* inspectorController(); |
141 WebCore::LocalFrame* mainFrame(); | 143 WebCore::LocalFrame* mainFrame(); |
142 | 144 |
143 int m_hostId; | 145 int m_debuggerId; |
144 int m_layerTreeId; | 146 int m_layerTreeId; |
145 WebDevToolsAgentClient* m_client; | 147 WebDevToolsAgentClient* m_client; |
146 WebViewImpl* m_webViewImpl; | 148 WebViewImpl* m_webViewImpl; |
147 bool m_attached; | 149 bool m_attached; |
148 bool m_generatingEvent; | 150 bool m_generatingEvent; |
149 | 151 |
150 bool m_deviceMetricsEnabled; | 152 bool m_deviceMetricsEnabled; |
151 bool m_emulateViewportEnabled; | 153 bool m_emulateViewportEnabled; |
152 bool m_originalViewportEnabled; | 154 bool m_originalViewportEnabled; |
153 bool m_isOverlayScrollbarsEnabled; | 155 bool m_isOverlayScrollbarsEnabled; |
154 | 156 |
155 float m_originalMinimumPageScaleFactor; | 157 float m_originalMinimumPageScaleFactor; |
156 float m_originalMaximumPageScaleFactor; | 158 float m_originalMaximumPageScaleFactor; |
157 bool m_pageScaleLimitsOverriden; | 159 bool m_pageScaleLimitsOverriden; |
158 | 160 |
159 bool m_touchEventEmulationEnabled; | 161 bool m_touchEventEmulationEnabled; |
160 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss; | 162 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss; |
161 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip; | 163 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip; |
162 | 164 |
163 typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue; | 165 typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue; |
164 FrontendMessageQueue m_frontendMessageQueue; | 166 FrontendMessageQueue m_frontendMessageQueue; |
165 }; | 167 }; |
166 | 168 |
167 } // namespace blink | 169 } // namespace blink |
168 | 170 |
169 #endif | 171 #endif |
OLD | NEW |