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

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

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/WebDateTimeSuggestion.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 24 matching lines...) Expand all
35 #include "core/inspector/InspectorFrontendChannel.h" 35 #include "core/inspector/InspectorFrontendChannel.h"
36 36
37 #include "public/platform/WebSize.h" 37 #include "public/platform/WebSize.h"
38 #include "public/platform/WebThread.h" 38 #include "public/platform/WebThread.h"
39 #include "public/web/WebPageOverlay.h" 39 #include "public/web/WebPageOverlay.h"
40 #include "web/WebDevToolsAgentPrivate.h" 40 #include "web/WebDevToolsAgentPrivate.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 #include "wtf/OwnPtr.h" 42 #include "wtf/OwnPtr.h"
43 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
44 44
45 namespace WebCore { 45 namespace blink {
46 class Document; 46 class Document;
47 class LocalFrame; 47 class LocalFrame;
48 class FrameView; 48 class FrameView;
49 class GraphicsContext; 49 class GraphicsContext;
50 class InspectorClient; 50 class InspectorClient;
51 class InspectorController; 51 class InspectorController;
52 class Node; 52 class Node;
53 class Page; 53 class Page;
54 class PlatformKeyboardEvent; 54 class PlatformKeyboardEvent;
55 } 55 }
56 56
57 namespace blink { 57 namespace blink {
58 58
59 class WebDevToolsAgentClient; 59 class WebDevToolsAgentClient;
60 class WebFrame; 60 class WebFrame;
61 class WebLocalFrameImpl; 61 class WebLocalFrameImpl;
62 class WebString; 62 class WebString;
63 class WebURLRequest; 63 class WebURLRequest;
64 class WebURLResponse; 64 class WebURLResponse;
65 class WebViewImpl; 65 class WebViewImpl;
66 struct WebMemoryUsageInfo; 66 struct WebMemoryUsageInfo;
67 struct WebURLError; 67 struct WebURLError;
68 struct WebDevToolsMessageData; 68 struct WebDevToolsMessageData;
69 69
70 class WebDevToolsAgentImpl FINAL : 70 class WebDevToolsAgentImpl FINAL :
71 public WebDevToolsAgentPrivate, 71 public WebDevToolsAgentPrivate,
72 public WebCore::InspectorClient, 72 public blink::InspectorClient,
73 public WebCore::InspectorFrontendChannel, 73 public blink::InspectorFrontendChannel,
74 public WebPageOverlay, 74 public WebPageOverlay,
75 private WebThread::TaskObserver { 75 private WebThread::TaskObserver {
76 public: 76 public:
77 WebDevToolsAgentImpl(WebViewImpl* webViewImpl, WebDevToolsAgentClient* clien t); 77 WebDevToolsAgentImpl(WebViewImpl* webViewImpl, WebDevToolsAgentClient* clien t);
78 virtual ~WebDevToolsAgentImpl(); 78 virtual ~WebDevToolsAgentImpl();
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(blink::Page*, const WebInputEvent&) OVERRIDE;
85 virtual void didLayout() OVERRIDE; 85 virtual void didLayout() OVERRIDE;
86 86
87 // WebDevToolsAgent implementation. 87 // WebDevToolsAgent implementation.
88 virtual void attach(const WebString& hostId) OVERRIDE; 88 virtual void attach(const WebString& hostId) OVERRIDE;
89 virtual void reattach(const WebString& hostId, const WebString& savedState) OVERRIDE; 89 virtual void reattach(const WebString& hostId, const WebString& savedState) OVERRIDE;
90 virtual void detach() OVERRIDE; 90 virtual void detach() OVERRIDE;
91 virtual void continueProgram() OVERRIDE; 91 virtual void continueProgram() OVERRIDE;
92 virtual void didBeginFrame(int frameId) OVERRIDE; 92 virtual void didBeginFrame(int frameId) OVERRIDE;
93 virtual void didCancelFrame() OVERRIDE; 93 virtual void didCancelFrame() OVERRIDE;
94 virtual void willComposite() OVERRIDE; 94 virtual void willComposite() OVERRIDE;
95 virtual void didComposite() OVERRIDE; 95 virtual void didComposite() OVERRIDE;
96 virtual void dispatchOnInspectorBackend(const WebString& message) OVERRIDE; 96 virtual void dispatchOnInspectorBackend(const WebString& message) OVERRIDE;
97 virtual void inspectElementAt(const WebPoint&) OVERRIDE; 97 virtual void inspectElementAt(const WebPoint&) OVERRIDE;
98 virtual void evaluateInWebInspector(long callId, const WebString& script) OV ERRIDE; 98 virtual void evaluateInWebInspector(long callId, const WebString& script) OV ERRIDE;
99 virtual void setLayerTreeId(int) OVERRIDE; 99 virtual void setLayerTreeId(int) OVERRIDE;
100 virtual void processGPUEvent(const GPUEvent&) OVERRIDE; 100 virtual void processGPUEvent(const GPUEvent&) OVERRIDE;
101 101
102 // InspectorClient implementation. 102 // InspectorClient implementation.
103 virtual void highlight() OVERRIDE; 103 virtual void highlight() OVERRIDE;
104 virtual void hideHighlight() OVERRIDE; 104 virtual void hideHighlight() OVERRIDE;
105 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; 105 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE;
106 virtual void sendMessageToFrontend(PassRefPtr<WebCore::JSONObject> message) OVERRIDE; 106 virtual void sendMessageToFrontend(PassRefPtr<blink::JSONObject> message) OV ERRIDE;
107 virtual void flush() OVERRIDE; 107 virtual void flush() OVERRIDE;
108 108
109 virtual void setDeviceMetricsOverride(int width, int height, float deviceSca leFactor, bool mobile, bool fitWindow, float scale, float offsetX, float offsetY ) OVERRIDE; 109 virtual void setDeviceMetricsOverride(int width, int height, float deviceSca leFactor, bool mobile, bool fitWindow, float scale, float offsetX, float offsetY ) OVERRIDE;
110 virtual void clearDeviceMetricsOverride() OVERRIDE; 110 virtual void clearDeviceMetricsOverride() OVERRIDE;
111 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE; 111 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE;
112 112
113 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE; 113 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE;
114 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) OVERRIDE; 114 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) OVERRIDE;
115 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE ventCallback) OVERRIDE; 115 virtual void setTraceEventCallback(const WTF::String& categoryFilter, TraceE ventCallback) OVERRIDE;
116 virtual void resetTraceEventCallback() OVERRIDE; 116 virtual void resetTraceEventCallback() OVERRIDE;
117 virtual void enableTracing(const WTF::String& categoryFilter) OVERRIDE; 117 virtual void enableTracing(const WTF::String& categoryFilter) OVERRIDE;
118 virtual void disableTracing() OVERRIDE; 118 virtual void disableTracing() OVERRIDE;
119 119
120 virtual void startGPUEventsRecording() OVERRIDE; 120 virtual void startGPUEventsRecording() OVERRIDE;
121 virtual void stopGPUEventsRecording() OVERRIDE; 121 virtual void stopGPUEventsRecording() OVERRIDE;
122 122
123 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRID E; 123 virtual void dispatchKeyEvent(const blink::PlatformKeyboardEvent&) OVERRIDE;
124 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE ; 124 virtual void dispatchMouseEvent(const blink::PlatformMouseEvent&) OVERRIDE;
125 125
126 // WebPageOverlay 126 // WebPageOverlay
127 virtual void paintPageOverlay(WebCanvas*) OVERRIDE; 127 virtual void paintPageOverlay(WebCanvas*) OVERRIDE;
128 128
129 void flushPendingFrontendMessages(); 129 void flushPendingFrontendMessages();
130 130
131 private: 131 private:
132 // WebThread::TaskObserver 132 // WebThread::TaskObserver
133 virtual void willProcessTask() OVERRIDE; 133 virtual void willProcessTask() OVERRIDE;
134 virtual void didProcessTask() OVERRIDE; 134 virtual void didProcessTask() OVERRIDE;
135 135
136 void enableMobileEmulation(); 136 void enableMobileEmulation();
137 void disableMobileEmulation(); 137 void disableMobileEmulation();
138 void updatePageScaleFactorLimits(); 138 void updatePageScaleFactorLimits();
139 139
140 WebCore::InspectorController* inspectorController(); 140 blink::InspectorController* inspectorController();
141 WebCore::LocalFrame* mainFrame(); 141 blink::LocalFrame* mainFrame();
142 142
143 int m_debuggerId; 143 int m_debuggerId;
144 int m_layerTreeId; 144 int m_layerTreeId;
145 WebDevToolsAgentClient* m_client; 145 WebDevToolsAgentClient* m_client;
146 WebViewImpl* m_webViewImpl; 146 WebViewImpl* m_webViewImpl;
147 bool m_attached; 147 bool m_attached;
148 bool m_generatingEvent; 148 bool m_generatingEvent;
149 149
150 bool m_webViewDidLayoutOnceAfterLoad; 150 bool m_webViewDidLayoutOnceAfterLoad;
151 151
152 bool m_deviceMetricsEnabled; 152 bool m_deviceMetricsEnabled;
153 bool m_emulateMobileEnabled; 153 bool m_emulateMobileEnabled;
154 bool m_originalViewportEnabled; 154 bool m_originalViewportEnabled;
155 bool m_isOverlayScrollbarsEnabled; 155 bool m_isOverlayScrollbarsEnabled;
156 156
157 float m_originalMinimumPageScaleFactor; 157 float m_originalMinimumPageScaleFactor;
158 float m_originalMaximumPageScaleFactor; 158 float m_originalMaximumPageScaleFactor;
159 bool m_pageScaleLimitsOverriden; 159 bool m_pageScaleLimitsOverriden;
160 160
161 bool m_touchEventEmulationEnabled; 161 bool m_touchEventEmulationEnabled;
162 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorCss; 162 OwnPtr<blink::IntPoint> m_lastPinchAnchorCss;
163 OwnPtr<WebCore::IntPoint> m_lastPinchAnchorDip; 163 OwnPtr<blink::IntPoint> m_lastPinchAnchorDip;
164 164
165 typedef Vector<RefPtr<WebCore::JSONObject> > FrontendMessageQueue; 165 typedef Vector<RefPtr<blink::JSONObject> > FrontendMessageQueue;
166 FrontendMessageQueue m_frontendMessageQueue; 166 FrontendMessageQueue m_frontendMessageQueue;
167 }; 167 };
168 168
169 } // namespace blink 169 } // namespace blink
170 170
171 #endif 171 #endif
OLDNEW
« no previous file with comments | « Source/web/WebDateTimeSuggestion.cpp ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698