Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 class InspectorState; | 60 class InspectorState; |
| 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 class InspectorResourceContentLoader; | |
| 70 | 71 |
| 71 class InspectorController { | 72 class InspectorController { |
| 72 WTF_MAKE_NONCOPYABLE(InspectorController); | 73 WTF_MAKE_NONCOPYABLE(InspectorController); |
| 73 WTF_MAKE_FAST_ALLOCATED; | 74 WTF_MAKE_FAST_ALLOCATED; |
| 74 public: | 75 public: |
| 75 ~InspectorController(); | 76 ~InspectorController(); |
| 76 | 77 |
| 77 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); | 78 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); |
| 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(PassOwnPtr<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*, bool isReusing = false); |
|
pfeldman
2014/05/20 19:50:49
There are no public callers with isReusing defined
| |
| 93 void disconnectFrontend(); | 94 void disconnectFrontend(); |
| 94 void reconnectFrontend(); | 95 void reconnectFrontend(); |
| 95 void reuseFrontend(InspectorFrontendChannel*, const String& inspectorStateCo okie); | 96 void reuseFrontend(InspectorFrontendChannel*, const String& inspectorStateCo okie); |
| 96 void setProcessId(long); | 97 void setProcessId(long); |
| 97 void setLayerTreeId(int); | 98 void setLayerTreeId(int); |
| 98 void webViewResized(const IntSize&); | 99 void webViewResized(const IntSize&); |
| 99 | 100 |
| 100 void inspect(Node*); | 101 void inspect(Node*); |
| 101 void drawHighlight(GraphicsContext&) const; | 102 void drawHighlight(GraphicsContext&) const; |
| 102 | 103 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 126 void didComposite(); | 127 void didComposite(); |
| 127 | 128 |
| 128 void processGPUEvent(double timestamp, int phase, bool foreign, uint64_t use dGPUMemoryBytes, uint64_t limitGPUMemoryBytes); | 129 void processGPUEvent(double timestamp, int phase, bool foreign, uint64_t use dGPUMemoryBytes, uint64_t limitGPUMemoryBytes); |
| 129 | 130 |
| 130 void scriptsEnabled(bool); | 131 void scriptsEnabled(bool); |
| 131 | 132 |
| 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: |
| 137 class InspectorResourceContentLoaderCallback; | |
| 138 | |
| 136 InspectorController(Page*, InspectorClient*); | 139 InspectorController(Page*, InspectorClient*); |
| 137 | 140 |
| 138 void initializeDeferredAgents(); | 141 void initializeDeferredAgents(); |
| 139 | 142 |
| 140 friend InstrumentingAgents* instrumentationForPage(Page*); | 143 friend InstrumentingAgents* instrumentationForPage(Page*); |
| 141 | 144 |
| 145 void resourcesContentLoaded(); | |
| 146 | |
| 142 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 147 RefPtr<InstrumentingAgents> m_instrumentingAgents; |
| 143 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 148 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
| 144 OwnPtr<InspectorCompositeState> m_state; | 149 OwnPtr<InspectorCompositeState> m_state; |
| 145 OwnPtr<InspectorOverlay> m_overlay; | 150 OwnPtr<InspectorOverlay> m_overlay; |
| 146 | 151 |
| 147 InspectorDOMAgent* m_domAgent; | 152 InspectorDOMAgent* m_domAgent; |
| 148 InspectorPageAgent* m_pageAgent; | 153 InspectorPageAgent* m_pageAgent; |
| 149 InspectorTimelineAgent* m_timelineAgent; | 154 InspectorTimelineAgent* m_timelineAgent; |
| 150 InspectorLayerTreeAgent* m_layerTreeAgent; | 155 InspectorLayerTreeAgent* m_layerTreeAgent; |
| 151 InspectorTracingAgent* m_tracingAgent; | 156 InspectorTracingAgent* m_tracingAgent; |
| 152 | 157 |
| 153 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 158 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
| 154 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 159 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; |
| 155 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 160 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
| 156 Page* m_page; | 161 Page* m_page; |
| 157 InspectorClient* m_inspectorClient; | 162 InspectorClient* m_inspectorClient; |
| 158 InspectorAgentRegistry m_agents; | 163 InspectorAgentRegistry m_agents; |
| 159 Vector<InspectorAgent*> m_moduleAgents; | 164 Vector<InspectorAgent*> m_moduleAgents; |
| 160 bool m_isUnderTest; | 165 bool m_isUnderTest; |
| 161 bool m_deferredAgentsInitialized; | 166 bool m_deferredAgentsInitialized; |
| 167 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader; | |
| 168 Vector<String> m_messages; | |
|
pfeldman
2014/05/20 19:50:49
what messages?
| |
| 162 }; | 169 }; |
| 163 | 170 |
| 164 } | 171 } |
| 165 | 172 |
| 166 | 173 |
| 167 #endif // !defined(InspectorController_h) | 174 #endif // !defined(InspectorController_h) |
| OLD | NEW |