Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(897)

Side by Side Diff: Source/web/InspectorOverlayImpl.h

Issue 1311783003: Devtools[LayoutEditor]: Rework layout-editor workflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize
Patch Set: Small improvements Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 explicit InspectorOverlayImpl(WebViewImpl*); 90 explicit InspectorOverlayImpl(WebViewImpl*);
91 class InspectorOverlayChromeClient; 91 class InspectorOverlayChromeClient;
92 class InspectorPageOverlayDelegate; 92 class InspectorPageOverlayDelegate;
93 93
94 // InspectorOverlayHost::Listener implementation. 94 // InspectorOverlayHost::Listener implementation.
95 void overlayResumed() override; 95 void overlayResumed() override;
96 void overlaySteppedOver() override; 96 void overlaySteppedOver() override;
97 void overlayStartedPropertyChange(const String&) override; 97 void overlayStartedPropertyChange(const String&) override;
98 void overlayPropertyChanged(float) override; 98 void overlayPropertyChanged(float) override;
99 void overlayEndedPropertyChange() override; 99 void overlayEndedPropertyChange() override;
100 void clearSelection(bool) override;
dgozman 2015/09/02 01:17:22 overlayClearSelection
sergeyv 2015/09/02 01:49:16 Done.
100 101
101 // InspectorProfilerAgent::Client implementation. 102 // InspectorProfilerAgent::Client implementation.
102 void profilingStarted() override; 103 void profilingStarted() override;
103 void profilingStopped() override; 104 void profilingStopped() override;
104 105
105 // InspectorPageAgent::Client implementation. 106 // InspectorPageAgent::Client implementation.
106 void pageLayoutInvalidated(bool resized) override; 107 void pageLayoutInvalidated(bool resized) override;
107 void setShowViewportSizeOnResize(bool show, bool showGrid) override; 108 void setShowViewportSizeOnResize(bool show, bool showGrid) override;
108 void setPausedInDebuggerMessage(const String*) override; 109 void setPausedInDebuggerMessage(const String*) override;
109 110
(...skipping 16 matching lines...) Expand all
126 void evaluateInOverlay(const String& method, const String& argument); 127 void evaluateInOverlay(const String& method, const String& argument);
127 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument) ; 128 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument) ;
128 void onTimer(Timer<InspectorOverlayImpl>*); 129 void onTimer(Timer<InspectorOverlayImpl>*);
129 void rebuildOverlayPage(); 130 void rebuildOverlayPage();
130 void invalidate(); 131 void invalidate();
131 132
132 bool handleMousePress(); 133 bool handleMousePress();
133 bool handleGestureEvent(const PlatformGestureEvent&); 134 bool handleGestureEvent(const PlatformGestureEvent&);
134 bool handleTouchEvent(const PlatformTouchEvent&); 135 bool handleTouchEvent(const PlatformTouchEvent&);
135 bool handleMouseMove(const PlatformMouseEvent&); 136 bool handleMouseMove(const PlatformMouseEvent&);
137 bool shouldSearchForNode();
138 void inspect(Node*);
136 139
137 WebViewImpl* m_webViewImpl; 140 WebViewImpl* m_webViewImpl;
138 String m_pausedInDebuggerMessage; 141 String m_pausedInDebuggerMessage;
139 RefPtrWillBeMember<Node> m_highlightNode; 142 RefPtrWillBeMember<Node> m_highlightNode;
140 RefPtrWillBeMember<Node> m_eventTargetNode; 143 RefPtrWillBeMember<Node> m_eventTargetNode;
141 InspectorHighlightConfig m_nodeHighlightConfig; 144 InspectorHighlightConfig m_nodeHighlightConfig;
142 OwnPtr<FloatQuad> m_highlightQuad; 145 OwnPtr<FloatQuad> m_highlightQuad;
143 OwnPtrWillBeMember<Page> m_overlayPage; 146 OwnPtrWillBeMember<Page> m_overlayPage;
144 OwnPtrWillBeMember<InspectorOverlayChromeClient> m_overlayChromeClient; 147 OwnPtrWillBeMember<InspectorOverlayChromeClient> m_overlayChromeClient;
145 RefPtrWillBeMember<InspectorOverlayHost> m_overlayHost; 148 RefPtrWillBeMember<InspectorOverlayHost> m_overlayHost;
146 InspectorHighlightConfig m_quadHighlightConfig; 149 InspectorHighlightConfig m_quadHighlightConfig;
147 bool m_drawViewSize; 150 bool m_drawViewSize;
148 bool m_drawViewSizeWithGrid; 151 bool m_drawViewSizeWithGrid;
149 bool m_resizeTimerActive; 152 bool m_resizeTimerActive;
150 bool m_omitTooltip; 153 bool m_omitTooltip;
151 Timer<InspectorOverlayImpl> m_timer; 154 Timer<InspectorOverlayImpl> m_timer;
152 int m_suspendCount; 155 int m_suspendCount;
153 bool m_inLayout; 156 bool m_inLayout;
154 bool m_needsUpdate; 157 bool m_needsUpdate;
155 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 158 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
156 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 159 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
157 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor; 160 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor;
158 OwnPtr<PageOverlay> m_pageOverlay; 161 OwnPtr<PageOverlay> m_pageOverlay;
159 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode; 162 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode;
160 InspectorDOMAgent::SearchMode m_inspectMode; 163 InspectorDOMAgent::SearchMode m_inspectMode;
161 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 164 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
165 bool m_layoutEditorEnabled;
dgozman 2015/09/02 01:17:22 m_searchingInLayoutEditor
sergeyv 2015/09/02 01:49:16 Done.
162 }; 166 };
163 167
164 } // namespace blink 168 } // namespace blink
165 169
166 170
167 #endif // InspectorOverlayImpl_h 171 #endif // InspectorOverlayImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698