| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); |
| 138 | 139 |
| 139 friend InstrumentingAgents* instrumentationForPage(Page*); | 140 friend InstrumentingAgents* instrumentationForPage(Page*); |
| 140 | 141 |
| 141 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 142 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 142 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 143 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
| 143 OwnPtr<InspectorCompositeState> m_state; | 144 OwnPtr<InspectorCompositeState> m_state; |
| 144 OwnPtr<InspectorOverlay> m_overlay; | 145 OwnPtr<InspectorOverlay> m_overlay; |
| 145 | 146 |
| 146 InspectorDOMAgent* m_domAgent; | 147 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 147 InspectorPageAgent* m_pageAgent; | 148 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 148 InspectorTimelineAgent* m_timelineAgent; | 149 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; |
| 149 InspectorLayerTreeAgent* m_layerTreeAgent; | 150 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
| 150 InspectorTracingAgent* m_tracingAgent; | 151 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
| 151 | 152 |
| 152 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 153 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
| 153 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 154 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; |
| 154 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 155 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
| 155 Page* m_page; | 156 Page* m_page; |
| 156 InspectorClient* m_inspectorClient; | 157 InspectorClient* m_inspectorClient; |
| 157 InspectorAgentRegistry m_agents; | 158 OwnPtrWillBeMember<InspectorAgentRegistry> m_agents; |
| 158 Vector<InspectorAgent*> m_moduleAgents; | 159 WillBeHeapVector<RawPtrWillBeMember<InspectorAgent> > m_moduleAgents; |
| 159 bool m_isUnderTest; | 160 bool m_isUnderTest; |
| 160 bool m_deferredAgentsInitialized; | 161 bool m_deferredAgentsInitialized; |
| 161 }; | 162 }; |
| 162 | 163 |
| 163 } | 164 } |
| 164 | 165 |
| 165 | 166 |
| 166 #endif // !defined(InspectorController_h) | 167 #endif // !defined(InspectorController_h) |
| OLD | NEW |