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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include <v8-inspector.h> | 44 #include <v8-inspector.h> |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class Color; | 48 class Color; |
49 class LocalFrame; | 49 class LocalFrame; |
50 class Node; | 50 class Node; |
51 class Page; | 51 class Page; |
52 class PageOverlay; | 52 class PageOverlay; |
53 class PlatformMouseEvent; | 53 class PlatformMouseEvent; |
54 class PlatformTouchEvent; | |
55 class WebGestureEvent; | 54 class WebGestureEvent; |
56 class WebLocalFrameImpl; | 55 class WebLocalFrameImpl; |
| 56 class WebTouchEvent; |
57 | 57 |
58 namespace protocol { | 58 namespace protocol { |
59 class Value; | 59 class Value; |
60 } | 60 } |
61 | 61 |
62 class InspectorOverlay final | 62 class InspectorOverlay final |
63 : public GarbageCollectedFinalized<InspectorOverlay>, | 63 : public GarbageCollectedFinalized<InspectorOverlay>, |
64 public InspectorDOMAgent::Client, | 64 public InspectorDOMAgent::Client, |
65 public InspectorOverlayHost::Listener { | 65 public InspectorOverlayHost::Listener { |
66 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); | 66 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void evaluateInOverlay(const String& method, | 125 void evaluateInOverlay(const String& method, |
126 std::unique_ptr<protocol::Value> argument); | 126 std::unique_ptr<protocol::Value> argument); |
127 void onTimer(TimerBase*); | 127 void onTimer(TimerBase*); |
128 void rebuildOverlayPage(); | 128 void rebuildOverlayPage(); |
129 void invalidate(); | 129 void invalidate(); |
130 void scheduleUpdate(); | 130 void scheduleUpdate(); |
131 void clearInternal(); | 131 void clearInternal(); |
132 | 132 |
133 bool handleMousePress(); | 133 bool handleMousePress(); |
134 bool handleGestureEvent(const WebGestureEvent&); | 134 bool handleGestureEvent(const WebGestureEvent&); |
135 bool handleTouchEvent(const PlatformTouchEvent&); | 135 bool handleTouchEvent(const WebTouchEvent&); |
136 bool handleMouseMove(const PlatformMouseEvent&); | 136 bool handleMouseMove(const PlatformMouseEvent&); |
137 bool shouldSearchForNode(); | 137 bool shouldSearchForNode(); |
138 void inspect(Node*); | 138 void inspect(Node*); |
139 | 139 |
140 Member<WebLocalFrameImpl> m_frameImpl; | 140 Member<WebLocalFrameImpl> m_frameImpl; |
141 String m_pausedInDebuggerMessage; | 141 String m_pausedInDebuggerMessage; |
142 Member<Node> m_highlightNode; | 142 Member<Node> m_highlightNode; |
143 Member<Node> m_eventTargetNode; | 143 Member<Node> m_eventTargetNode; |
144 InspectorHighlightConfig m_nodeHighlightConfig; | 144 InspectorHighlightConfig m_nodeHighlightConfig; |
145 std::unique_ptr<FloatQuad> m_highlightQuad; | 145 std::unique_ptr<FloatQuad> m_highlightQuad; |
(...skipping 13 matching lines...) Expand all Loading... |
159 Member<InspectorDOMAgent> m_domAgent; | 159 Member<InspectorDOMAgent> m_domAgent; |
160 std::unique_ptr<PageOverlay> m_pageOverlay; | 160 std::unique_ptr<PageOverlay> m_pageOverlay; |
161 Member<Node> m_hoveredNodeForInspectMode; | 161 Member<Node> m_hoveredNodeForInspectMode; |
162 InspectorDOMAgent::SearchMode m_inspectMode; | 162 InspectorDOMAgent::SearchMode m_inspectMode; |
163 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; | 163 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace blink | 166 } // namespace blink |
167 | 167 |
168 #endif // InspectorOverlay_h | 168 #endif // InspectorOverlay_h |
OLD | NEW |