OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class InstrumentingAgents; | 61 class InstrumentingAgents; |
62 class IntPoint; | 62 class IntPoint; |
63 class IntSize; | 63 class IntSize; |
64 class Page; | 64 class Page; |
65 class PlatformGestureEvent; | 65 class PlatformGestureEvent; |
66 class PlatformKeyboardEvent; | 66 class PlatformKeyboardEvent; |
67 class PlatformMouseEvent; | 67 class PlatformMouseEvent; |
68 class PlatformTouchEvent; | 68 class PlatformTouchEvent; |
69 class Node; | 69 class Node; |
70 | 70 |
71 class InspectorController { | 71 class InspectorController : public NoBaseWillBeGarbageCollectedFinalized<Inspect
orController> { |
72 WTF_MAKE_NONCOPYABLE(InspectorController); | 72 WTF_MAKE_NONCOPYABLE(InspectorController); |
73 WTF_MAKE_FAST_ALLOCATED; | 73 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
74 public: | 74 public: |
75 ~InspectorController(); | 75 ~InspectorController(); |
| 76 void trace(Visitor*); |
76 | 77 |
77 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); | 78 static PassOwnPtrWillBeRawPtr<InspectorController> create(Page*, InspectorCl
ient*); |
78 | 79 |
79 // Settings overrides. | 80 // Settings overrides. |
80 void setTextAutosizingEnabled(bool); | 81 void setTextAutosizingEnabled(bool); |
81 void setDeviceScaleAdjustment(float); | 82 void setDeviceScaleAdjustment(float); |
82 | 83 |
83 void willBeDestroyed(); | 84 void willBeDestroyed(); |
84 void registerModuleAgent(PassOwnPtr<InspectorAgent>); | 85 void registerModuleAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
85 | 86 |
86 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>); | 87 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>); |
87 void didClearDocumentOfWindowObject(LocalFrame*); | 88 void didClearDocumentOfWindowObject(LocalFrame*); |
88 void setInjectedScriptForOrigin(const String& origin, const String& source); | 89 void setInjectedScriptForOrigin(const String& origin, const String& source); |
89 | 90 |
90 void dispatchMessageFromFrontend(const String& message); | 91 void dispatchMessageFromFrontend(const String& message); |
91 | 92 |
92 void connectFrontend(InspectorFrontendChannel*); | 93 void connectFrontend(InspectorFrontendChannel*); |
93 void disconnectFrontend(); | 94 void disconnectFrontend(); |
94 void reconnectFrontend(); | 95 void reconnectFrontend(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 void scriptsEnabled(bool); | 130 void scriptsEnabled(bool); |
130 | 131 |
131 void willAddPageOverlay(const GraphicsLayer*); | 132 void willAddPageOverlay(const GraphicsLayer*); |
132 void didRemovePageOverlay(const GraphicsLayer*); | 133 void didRemovePageOverlay(const GraphicsLayer*); |
133 | 134 |
134 private: | 135 private: |
135 InspectorController(Page*, InspectorClient*); | 136 InspectorController(Page*, InspectorClient*); |
136 | 137 |
137 void initializeDeferredAgents(); | 138 void initializeDeferredAgents(); |
| 139 InspectorAgentRegistry& agents() { return m_agents; } |
138 | 140 |
139 friend InstrumentingAgents* instrumentationForPage(Page*); | 141 friend InstrumentingAgents* instrumentationForPage(Page*); |
140 | 142 |
141 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 143 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
142 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 144 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
143 OwnPtr<InspectorCompositeState> m_state; | 145 OwnPtr<InspectorCompositeState> m_state; |
144 OwnPtr<InspectorOverlay> m_overlay; | 146 OwnPtr<InspectorOverlay> m_overlay; |
145 | 147 |
146 InspectorDOMAgent* m_domAgent; | 148 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
147 InspectorPageAgent* m_pageAgent; | 149 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
148 InspectorTimelineAgent* m_timelineAgent; | 150 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; |
149 InspectorLayerTreeAgent* m_layerTreeAgent; | 151 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
150 InspectorTracingAgent* m_tracingAgent; | 152 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
151 | 153 |
152 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 154 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
153 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 155 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; |
154 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 156 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
155 Page* m_page; | 157 RawPtrWillBeMember<Page> m_page; |
156 InspectorClient* m_inspectorClient; | 158 InspectorClient* m_inspectorClient; |
157 InspectorAgentRegistry m_agents; | 159 InspectorAgentRegistry m_agents; |
158 Vector<InspectorAgent*> m_moduleAgents; | 160 WillBeHeapVector<RawPtrWillBeMember<InspectorAgent> > m_moduleAgents; |
159 bool m_isUnderTest; | 161 bool m_isUnderTest; |
160 bool m_deferredAgentsInitialized; | 162 bool m_deferredAgentsInitialized; |
161 }; | 163 }; |
162 | 164 |
163 } | 165 } |
164 | 166 |
165 | 167 |
166 #endif // !defined(InspectorController_h) | 168 #endif // !defined(InspectorController_h) |
OLD | NEW |