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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class Node; | 60 class Node; |
61 class Page; | 61 class Page; |
62 class PageOverlay; | 62 class PageOverlay; |
63 class WebViewImpl; | 63 class WebViewImpl; |
64 | 64 |
65 class InspectorOverlayImpl final | 65 class InspectorOverlayImpl final |
66 : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlayImpl> | 66 : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlayImpl> |
67 , public InspectorDOMAgent::Client | 67 , public InspectorDOMAgent::Client |
68 , public InspectorPageAgent::Client | 68 , public InspectorPageAgent::Client |
69 , public InspectorProfilerAgent::Client | 69 , public InspectorProfilerAgent::Client |
70 , public InspectorOverlayHost::DebuggerListener { | 70 , public InspectorOverlayHost::Listener { |
71 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayImpl); | 71 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayImpl); |
72 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayImpl); | 72 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayImpl); |
73 public: | 73 public: |
74 static PassOwnPtrWillBeRawPtr<InspectorOverlayImpl> create(WebViewImpl* webV
iewImpl) | 74 static PassOwnPtrWillBeRawPtr<InspectorOverlayImpl> create(WebViewImpl* webV
iewImpl) |
75 { | 75 { |
76 return adoptPtrWillBeNoop(new InspectorOverlayImpl(webViewImpl)); | 76 return adoptPtrWillBeNoop(new InspectorOverlayImpl(webViewImpl)); |
77 } | 77 } |
78 | 78 |
79 ~InspectorOverlayImpl() override; | 79 ~InspectorOverlayImpl() override; |
80 DECLARE_TRACE(); | 80 DECLARE_TRACE(); |
81 | 81 |
82 void init(InspectorCSSAgent*, InspectorDebuggerAgent*); | 82 void init(InspectorCSSAgent*, InspectorDebuggerAgent*); |
83 | 83 |
84 void update(); | 84 void update(); |
85 void clear(); | 85 void clear(); |
86 bool handleInputEvent(const WebInputEvent&); | 86 bool handleInputEvent(const WebInputEvent&); |
87 void layout(); | 87 void layout(); |
88 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; | 88 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; |
89 | 89 |
90 private: | 90 private: |
91 explicit InspectorOverlayImpl(WebViewImpl*); | 91 explicit InspectorOverlayImpl(WebViewImpl*); |
92 class InspectorOverlayChromeClient; | 92 class InspectorOverlayChromeClient; |
93 class InspectorPageOverlayDelegate; | 93 class InspectorPageOverlayDelegate; |
94 | 94 |
95 // InspectorOverlayHost::DebuggerListener implementation. | 95 // InspectorOverlayHost::Listener implementation. |
96 void overlayResumed() override; | 96 void overlayResumed() override; |
97 void overlaySteppedOver() override; | 97 void overlaySteppedOver() override; |
| 98 void overlayStartedPropertyChange(const String&) override; |
| 99 void overlayPropertyChanged(float) override; |
| 100 void overlayEndedPropertyChange() override; |
98 | 101 |
99 // InspectorProfilerAgent::Client implementation. | 102 // InspectorProfilerAgent::Client implementation. |
100 void profilingStarted() override; | 103 void profilingStarted() override; |
101 void profilingStopped() override; | 104 void profilingStopped() override; |
102 | 105 |
103 // InspectorPageAgent::Client implementation. | 106 // InspectorPageAgent::Client implementation. |
104 void pageLayoutInvalidated(bool resized) override; | 107 void pageLayoutInvalidated(bool resized) override; |
105 void setShowViewportSizeOnResize(bool show, bool showGrid) override; | 108 void setShowViewportSizeOnResize(bool show, bool showGrid) override; |
106 void setPausedInDebuggerMessage(const String*) override; | 109 void setPausedInDebuggerMessage(const String*) override; |
107 | 110 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool m_needsUpdate; | 150 bool m_needsUpdate; |
148 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 151 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
149 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor; | 152 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor; |
150 OwnPtr<PageOverlay> m_pageOverlay; | 153 OwnPtr<PageOverlay> m_pageOverlay; |
151 }; | 154 }; |
152 | 155 |
153 } // namespace blink | 156 } // namespace blink |
154 | 157 |
155 | 158 |
156 #endif // InspectorOverlayImpl_h | 159 #endif // InspectorOverlayImpl_h |
OLD | NEW |