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

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: No message, just blanket 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 DECLARE_TRACE(); 76 DECLARE_TRACE();
77 77
78 void init(InspectorCSSAgent*, V8InspectorSession*, InspectorDOMAgent*); 78 void init(InspectorCSSAgent*, V8InspectorSession*, InspectorDOMAgent*);
79 79
80 void clear(); 80 void clear();
81 void suspend(); 81 void suspend();
82 void resume(); 82 void resume();
83 bool handleInputEvent(const WebInputEvent&); 83 bool handleInputEvent(const WebInputEvent&);
84 void pageLayoutInvalidated(bool resized); 84 void pageLayoutInvalidated(bool resized);
85 void setShowViewportSizeOnResize(bool); 85 void setShowViewportSizeOnResize(bool);
86 void showReloadingBlanket();
87 void maybeClearReloadingBlanket();
86 void setPausedInDebuggerMessage(const String&); 88 void setPausedInDebuggerMessage(const String&);
87 89
88 // Does not yet include paint. 90 // Does not yet include paint.
89 void updateAllLifecyclePhases(); 91 void updateAllLifecyclePhases();
90 92
91 PageOverlay* pageOverlay() { return m_pageOverlay.get(); }; 93 PageOverlay* pageOverlay() { return m_pageOverlay.get(); };
92 String evaluateInOverlayForTest(const String&); 94 String evaluateInOverlayForTest(const String&);
93 95
94 private: 96 private:
95 explicit InspectorOverlay(WebViewImpl*); 97 explicit InspectorOverlay(WebViewImpl*);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 std::unique_ptr<FloatQuad> m_highlightQuad; 151 std::unique_ptr<FloatQuad> m_highlightQuad;
150 Member<Page> m_overlayPage; 152 Member<Page> m_overlayPage;
151 Member<InspectorOverlayChromeClient> m_overlayChromeClient; 153 Member<InspectorOverlayChromeClient> m_overlayChromeClient;
152 Member<InspectorOverlayHost> m_overlayHost; 154 Member<InspectorOverlayHost> m_overlayHost;
153 InspectorHighlightConfig m_quadHighlightConfig; 155 InspectorHighlightConfig m_quadHighlightConfig;
154 bool m_drawViewSize; 156 bool m_drawViewSize;
155 bool m_resizeTimerActive; 157 bool m_resizeTimerActive;
156 bool m_omitTooltip; 158 bool m_omitTooltip;
157 Timer<InspectorOverlay> m_timer; 159 Timer<InspectorOverlay> m_timer;
158 bool m_suspended; 160 bool m_suspended;
161 bool m_showReloadingBlanket;
159 bool m_inLayout; 162 bool m_inLayout;
160 bool m_needsUpdate; 163 bool m_needsUpdate;
161 V8InspectorSession* m_v8Session; 164 V8InspectorSession* m_v8Session;
162 Member<InspectorDOMAgent> m_domAgent; 165 Member<InspectorDOMAgent> m_domAgent;
163 Member<InspectorCSSAgent> m_cssAgent; 166 Member<InspectorCSSAgent> m_cssAgent;
164 Member<LayoutEditor> m_layoutEditor; 167 Member<LayoutEditor> m_layoutEditor;
165 std::unique_ptr<PageOverlay> m_pageOverlay; 168 std::unique_ptr<PageOverlay> m_pageOverlay;
166 Member<Node> m_hoveredNodeForInspectMode; 169 Member<Node> m_hoveredNodeForInspectMode;
167 InspectorDOMAgent::SearchMode m_inspectMode; 170 InspectorDOMAgent::SearchMode m_inspectMode;
168 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 171 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
169 }; 172 };
170 173
171 } // namespace blink 174 } // namespace blink
172 175
173 176
174 #endif // InspectorOverlay_h 177 #endif // InspectorOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698