| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class InjectedScriptManager; | 47 class InjectedScriptManager; |
| 48 class InspectorBackendDispatcher; | 48 class InspectorBackendDispatcher; |
| 49 class InspectorAgent; | 49 class InspectorAgent; |
| 50 class InspectorClient; | 50 class InspectorClient; |
| 51 class InspectorDOMAgent; | 51 class InspectorDOMAgent; |
| 52 class InspectorFrontend; | 52 class InspectorFrontend; |
| 53 class InspectorFrontendChannel; | 53 class InspectorFrontendChannel; |
| 54 class InspectorFrontendClient; | 54 class InspectorFrontendClient; |
| 55 class InspectorLayerTreeAgent; | 55 class InspectorLayerTreeAgent; |
| 56 class InspectorPageAgent; | 56 class InspectorPageAgent; |
| 57 class InspectorResourceAgent; |
| 57 class InspectorTimelineAgent; | 58 class InspectorTimelineAgent; |
| 58 class InspectorTracingAgent; | 59 class InspectorTracingAgent; |
| 59 class InspectorOverlay; | 60 class InspectorOverlay; |
| 60 class InspectorState; | 61 class InspectorState; |
| 61 class InstrumentingAgents; | 62 class InstrumentingAgents; |
| 62 class IntPoint; | 63 class IntPoint; |
| 63 class IntSize; | 64 class IntSize; |
| 64 class Page; | 65 class Page; |
| 65 class PlatformGestureEvent; | 66 class PlatformGestureEvent; |
| 66 class PlatformKeyboardEvent; | 67 class PlatformKeyboardEvent; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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(const String& hostId, InspectorFrontendChannel*); |
| 93 void disconnectFrontend(); | 94 void disconnectFrontend(); |
| 94 void reconnectFrontend(); | 95 void reconnectFrontend(); |
| 95 void reuseFrontend(InspectorFrontendChannel*, const String& inspectorStateCo
okie); | 96 void reuseFrontend(const String& hostId, InspectorFrontendChannel*, const St
ring& inspectorStateCookie); |
| 96 void setProcessId(long); | 97 void setProcessId(long); |
| 97 void setLayerTreeId(int); | 98 void setLayerTreeId(int); |
| 98 | 99 |
| 99 void inspect(Node*); | 100 void inspect(Node*); |
| 100 void drawHighlight(GraphicsContext&) const; | 101 void drawHighlight(GraphicsContext&) const; |
| 101 | 102 |
| 102 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); | 103 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); |
| 103 bool handleMouseEvent(LocalFrame*, const PlatformMouseEvent&); | 104 bool handleMouseEvent(LocalFrame*, const PlatformMouseEvent&); |
| 104 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); | 105 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); |
| 105 bool handleKeyboardEvent(LocalFrame*, const PlatformKeyboardEvent&); | 106 bool handleKeyboardEvent(LocalFrame*, const PlatformKeyboardEvent&); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 139 |
| 139 friend InstrumentingAgents* instrumentationForPage(Page*); | 140 friend InstrumentingAgents* instrumentationForPage(Page*); |
| 140 | 141 |
| 141 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 142 RefPtr<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 InspectorDOMAgent* m_domAgent; |
| 147 InspectorPageAgent* m_pageAgent; | 148 InspectorPageAgent* m_pageAgent; |
| 149 InspectorResourceAgent* m_resourceAgent; |
| 148 InspectorTimelineAgent* m_timelineAgent; | 150 InspectorTimelineAgent* m_timelineAgent; |
| 149 InspectorLayerTreeAgent* m_layerTreeAgent; | 151 InspectorLayerTreeAgent* m_layerTreeAgent; |
| 150 InspectorTracingAgent* m_tracingAgent; | 152 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 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 Vector<InspectorAgent*> m_moduleAgents; |
| 159 bool m_isUnderTest; | 161 bool m_isUnderTest; |
| 160 bool m_deferredAgentsInitialized; | 162 bool m_deferredAgentsInitialized; |
| 163 String m_hostId; |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } | 166 } |
| 164 | 167 |
| 165 | 168 |
| 166 #endif // !defined(InspectorController_h) | 169 #endif // !defined(InspectorController_h) |
| OLD | NEW |