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