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

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.h

Issue 2218603003: Timeline: show white overlay till page being reloaded paints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, dropped console.error() upon paint with 0 layer Created 4 years, 4 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 DECLARE_TRACE(); 79 DECLARE_TRACE();
80 80
81 void init(InspectorCSSAgent*, v8_inspector::V8InspectorSession*, InspectorDO MAgent*); 81 void init(InspectorCSSAgent*, v8_inspector::V8InspectorSession*, InspectorDO MAgent*);
82 82
83 void clear(); 83 void clear();
84 void suspend(); 84 void suspend();
85 void resume(); 85 void resume();
86 bool handleInputEvent(const WebInputEvent&); 86 bool handleInputEvent(const WebInputEvent&);
87 void pageLayoutInvalidated(bool resized); 87 void pageLayoutInvalidated(bool resized);
88 void setShowViewportSizeOnResize(bool); 88 void setShowViewportSizeOnResize(bool);
89 void showReloadingBlanket();
90 void hideReloadingBlanket();
89 void setPausedInDebuggerMessage(const String&); 91 void setPausedInDebuggerMessage(const String&);
90 92
91 // Does not yet include paint. 93 // Does not yet include paint.
92 void updateAllLifecyclePhases(); 94 void updateAllLifecyclePhases();
93 95
94 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; 96 PageOverlay* pageOverlay() { return m_pageOverlay.get(); };
95 String evaluateInOverlayForTest(const String&); 97 String evaluateInOverlayForTest(const String&);
96 98
97 private: 99 private:
98 explicit InspectorOverlay(WebViewImpl*); 100 explicit InspectorOverlay(WebViewImpl*);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 std::unique_ptr<FloatQuad> m_highlightQuad; 154 std::unique_ptr<FloatQuad> m_highlightQuad;
153 Member<Page> m_overlayPage; 155 Member<Page> m_overlayPage;
154 Member<InspectorOverlayChromeClient> m_overlayChromeClient; 156 Member<InspectorOverlayChromeClient> m_overlayChromeClient;
155 Member<InspectorOverlayHost> m_overlayHost; 157 Member<InspectorOverlayHost> m_overlayHost;
156 InspectorHighlightConfig m_quadHighlightConfig; 158 InspectorHighlightConfig m_quadHighlightConfig;
157 bool m_drawViewSize; 159 bool m_drawViewSize;
158 bool m_resizeTimerActive; 160 bool m_resizeTimerActive;
159 bool m_omitTooltip; 161 bool m_omitTooltip;
160 Timer<InspectorOverlay> m_timer; 162 Timer<InspectorOverlay> m_timer;
161 bool m_suspended; 163 bool m_suspended;
164 bool m_showReloadingBlanket;
162 bool m_inLayout; 165 bool m_inLayout;
163 bool m_needsUpdate; 166 bool m_needsUpdate;
164 v8_inspector::V8InspectorSession* m_v8Session; 167 v8_inspector::V8InspectorSession* m_v8Session;
165 Member<InspectorDOMAgent> m_domAgent; 168 Member<InspectorDOMAgent> m_domAgent;
166 Member<InspectorCSSAgent> m_cssAgent; 169 Member<InspectorCSSAgent> m_cssAgent;
167 Member<LayoutEditor> m_layoutEditor; 170 Member<LayoutEditor> m_layoutEditor;
168 std::unique_ptr<PageOverlay> m_pageOverlay; 171 std::unique_ptr<PageOverlay> m_pageOverlay;
169 Member<Node> m_hoveredNodeForInspectMode; 172 Member<Node> m_hoveredNodeForInspectMode;
170 InspectorDOMAgent::SearchMode m_inspectMode; 173 InspectorDOMAgent::SearchMode m_inspectMode;
171 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 174 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
172 }; 175 };
173 176
174 } // namespace blink 177 } // namespace blink
175 178
176 179
177 #endif // InspectorOverlay_h 180 #endif // InspectorOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698