| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 class Color; | 49 class Color; |
| 50 class InspectedFrames; | 50 class InspectedFrames; |
| 51 class InspectorDOMAgent; | 51 class InspectorDOMAgent; |
| 52 class LocalFrame; | 52 class LocalFrame; |
| 53 class Node; | 53 class Node; |
| 54 class Page; | 54 class Page; |
| 55 class PageOverlay; | 55 class PageOverlay; |
| 56 class WebGestureEvent; | 56 class WebGestureEvent; |
| 57 class WebMouseEvent; | 57 class WebMouseEvent; |
| 58 class WebLocalFrameImpl; | 58 class WebLocalFrameBase; |
| 59 class WebTouchEvent; | 59 class WebTouchEvent; |
| 60 | 60 |
| 61 class InspectorOverlayAgent final | 61 class InspectorOverlayAgent final |
| 62 : public InspectorBaseAgent<protocol::Overlay::Metainfo>, | 62 : public InspectorBaseAgent<protocol::Overlay::Metainfo>, |
| 63 public InspectorOverlayHost::Listener { | 63 public InspectorOverlayHost::Listener { |
| 64 WTF_MAKE_NONCOPYABLE(InspectorOverlayAgent); | 64 WTF_MAKE_NONCOPYABLE(InspectorOverlayAgent); |
| 65 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayAgent); | 65 USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayAgent); |
| 66 | 66 |
| 67 public: | 67 public: |
| 68 InspectorOverlayAgent(WebLocalFrameImpl*, | 68 InspectorOverlayAgent(WebLocalFrameBase*, |
| 69 InspectedFrames*, | 69 InspectedFrames*, |
| 70 v8_inspector::V8InspectorSession*, | 70 v8_inspector::V8InspectorSession*, |
| 71 InspectorDOMAgent*); | 71 InspectorDOMAgent*); |
| 72 ~InspectorOverlayAgent() override; | 72 ~InspectorOverlayAgent() override; |
| 73 DECLARE_TRACE(); | 73 DECLARE_TRACE(); |
| 74 | 74 |
| 75 // protocol::Dispatcher::OverlayCommandHandler implementation. | 75 // protocol::Dispatcher::OverlayCommandHandler implementation. |
| 76 protocol::Response enable() override; | 76 protocol::Response enable() override; |
| 77 protocol::Response disable() override; | 77 protocol::Response disable() override; |
| 78 protocol::Response setShowPaintRects(bool) override; | 78 protocol::Response setShowPaintRects(bool) override; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 std::unique_ptr<InspectorHighlightConfig>*); | 179 std::unique_ptr<InspectorHighlightConfig>*); |
| 180 void InnerHighlightQuad(std::unique_ptr<FloatQuad>, | 180 void InnerHighlightQuad(std::unique_ptr<FloatQuad>, |
| 181 protocol::Maybe<protocol::DOM::RGBA> color, | 181 protocol::Maybe<protocol::DOM::RGBA> color, |
| 182 protocol::Maybe<protocol::DOM::RGBA> outline_color); | 182 protocol::Maybe<protocol::DOM::RGBA> outline_color); |
| 183 void InnerHighlightNode(Node*, | 183 void InnerHighlightNode(Node*, |
| 184 Node* event_target, | 184 Node* event_target, |
| 185 const InspectorHighlightConfig&, | 185 const InspectorHighlightConfig&, |
| 186 bool omit_tooltip); | 186 bool omit_tooltip); |
| 187 void InnerHideHighlight(); | 187 void InnerHideHighlight(); |
| 188 | 188 |
| 189 Member<WebLocalFrameImpl> frame_impl_; | 189 Member<WebLocalFrameBase> frame_impl_; |
| 190 Member<InspectedFrames> inspected_frames_; | 190 Member<InspectedFrames> inspected_frames_; |
| 191 bool enabled_; | 191 bool enabled_; |
| 192 String paused_in_debugger_message_; | 192 String paused_in_debugger_message_; |
| 193 Member<Node> highlight_node_; | 193 Member<Node> highlight_node_; |
| 194 Member<Node> event_target_node_; | 194 Member<Node> event_target_node_; |
| 195 InspectorHighlightConfig node_highlight_config_; | 195 InspectorHighlightConfig node_highlight_config_; |
| 196 std::unique_ptr<FloatQuad> highlight_quad_; | 196 std::unique_ptr<FloatQuad> highlight_quad_; |
| 197 Member<Page> overlay_page_; | 197 Member<Page> overlay_page_; |
| 198 Member<InspectorOverlayChromeClient> overlay_chrome_client_; | 198 Member<InspectorOverlayChromeClient> overlay_chrome_client_; |
| 199 Member<InspectorOverlayHost> overlay_host_; | 199 Member<InspectorOverlayHost> overlay_host_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 214 Member<Node> hovered_node_for_inspect_mode_; | 214 Member<Node> hovered_node_for_inspect_mode_; |
| 215 bool swallow_next_mouse_up_; | 215 bool swallow_next_mouse_up_; |
| 216 SearchMode inspect_mode_; | 216 SearchMode inspect_mode_; |
| 217 std::unique_ptr<InspectorHighlightConfig> inspect_mode_highlight_config_; | 217 std::unique_ptr<InspectorHighlightConfig> inspect_mode_highlight_config_; |
| 218 int backend_node_id_to_inspect_; | 218 int backend_node_id_to_inspect_; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace blink | 221 } // namespace blink |
| 222 | 222 |
| 223 #endif // InspectorOverlayAgent_h | 223 #endif // InspectorOverlayAgent_h |
| OLD | NEW |