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 InstrumentingAgents; | 60 class InstrumentingAgents; |
61 class IntPoint; | 61 class IntPoint; |
62 class IntSize; | 62 class IntSize; |
63 class Page; | 63 class Page; |
64 class PlatformGestureEvent; | 64 class PlatformGestureEvent; |
65 class PlatformKeyboardEvent; | 65 class PlatformKeyboardEvent; |
66 class PlatformMouseEvent; | 66 class PlatformMouseEvent; |
67 class PlatformTouchEvent; | 67 class PlatformTouchEvent; |
68 class Node; | 68 class Node; |
69 | 69 |
70 struct Highlight; | |
71 | |
72 class InspectorController { | 70 class InspectorController { |
73 WTF_MAKE_NONCOPYABLE(InspectorController); | 71 WTF_MAKE_NONCOPYABLE(InspectorController); |
74 WTF_MAKE_FAST_ALLOCATED; | 72 WTF_MAKE_FAST_ALLOCATED; |
75 public: | 73 public: |
76 ~InspectorController(); | 74 ~InspectorController(); |
77 | 75 |
78 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); | 76 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); |
79 | 77 |
80 // Settings overrides. | 78 // Settings overrides. |
81 void setTextAutosizingEnabled(bool); | 79 void setTextAutosizingEnabled(bool); |
(...skipping 11 matching lines...) Expand all Loading... |
93 void connectFrontend(InspectorFrontendChannel*); | 91 void connectFrontend(InspectorFrontendChannel*); |
94 void disconnectFrontend(); | 92 void disconnectFrontend(); |
95 void reconnectFrontend(); | 93 void reconnectFrontend(); |
96 void reuseFrontend(InspectorFrontendChannel*, const String& inspectorStateCo
okie); | 94 void reuseFrontend(InspectorFrontendChannel*, const String& inspectorStateCo
okie); |
97 void setProcessId(long); | 95 void setProcessId(long); |
98 void setLayerTreeId(int); | 96 void setLayerTreeId(int); |
99 void webViewResized(const IntSize&); | 97 void webViewResized(const IntSize&); |
100 | 98 |
101 void inspect(Node*); | 99 void inspect(Node*); |
102 void drawHighlight(GraphicsContext&) const; | 100 void drawHighlight(GraphicsContext&) const; |
103 void getHighlight(Highlight*) const; | |
104 void hideHighlight(); | |
105 Node* highlightedNode() const; | |
106 | 101 |
107 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); | 102 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); |
108 bool handleMouseEvent(LocalFrame*, const PlatformMouseEvent&); | 103 bool handleMouseEvent(LocalFrame*, const PlatformMouseEvent&); |
109 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); | 104 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); |
110 bool handleKeyboardEvent(LocalFrame*, const PlatformKeyboardEvent&); | 105 bool handleKeyboardEvent(LocalFrame*, const PlatformKeyboardEvent&); |
111 | 106 |
112 void requestPageScaleFactor(float scale, const IntPoint& origin); | 107 void requestPageScaleFactor(float scale, const IntPoint& origin); |
113 bool deviceEmulationEnabled(); | 108 bool deviceEmulationEnabled(); |
114 | 109 |
115 bool isUnderTest(); | 110 bool isUnderTest(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 InspectorAgentRegistry m_agents; | 156 InspectorAgentRegistry m_agents; |
162 Vector<InspectorAgent*> m_moduleAgents; | 157 Vector<InspectorAgent*> m_moduleAgents; |
163 bool m_isUnderTest; | 158 bool m_isUnderTest; |
164 bool m_deferredAgentsInitialized; | 159 bool m_deferredAgentsInitialized; |
165 }; | 160 }; |
166 | 161 |
167 } | 162 } |
168 | 163 |
169 | 164 |
170 #endif // !defined(InspectorController_h) | 165 #endif // !defined(InspectorController_h) |
OLD | NEW |