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

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

Issue 2108803006: Fix inspector overlay when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash when FrameView is null Created 4 years, 5 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void setInspectMode(InspectorDOMAgent::SearchMode, std::unique_ptr<Inspector HighlightConfig>) override; 113 void setInspectMode(InspectorDOMAgent::SearchMode, std::unique_ptr<Inspector HighlightConfig>) override;
114 void setInspectedNode(Node*) override; 114 void setInspectedNode(Node*) override;
115 115
116 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig& , bool omitTooltip); 116 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig& , bool omitTooltip);
117 bool isEmpty(); 117 bool isEmpty();
118 void drawNodeHighlight(); 118 void drawNodeHighlight();
119 void drawQuadHighlight(); 119 void drawQuadHighlight();
120 void drawPausedInDebuggerMessage(); 120 void drawPausedInDebuggerMessage();
121 void drawViewSize(); 121 void drawViewSize();
122 122
123 float windowToViewportScale() const;
124
123 Page* overlayPage(); 125 Page* overlayPage();
124 LocalFrame* overlayMainFrame(); 126 LocalFrame* overlayMainFrame();
125 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset ); 127 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset );
126 void evaluateInOverlay(const String& method, const String& argument); 128 void evaluateInOverlay(const String& method, const String& argument);
127 void evaluateInOverlay(const String& method, std::unique_ptr<protocol::Value > argument); 129 void evaluateInOverlay(const String& method, std::unique_ptr<protocol::Value > argument);
128 void onTimer(Timer<InspectorOverlay>*); 130 void onTimer(Timer<InspectorOverlay>*);
129 void rebuildOverlayPage(); 131 void rebuildOverlayPage();
130 void invalidate(); 132 void invalidate();
131 void scheduleUpdate(); 133 void scheduleUpdate();
132 void clearInternal(); 134 void clearInternal();
(...skipping 30 matching lines...) Expand all
163 std::unique_ptr<PageOverlay> m_pageOverlay; 165 std::unique_ptr<PageOverlay> m_pageOverlay;
164 Member<Node> m_hoveredNodeForInspectMode; 166 Member<Node> m_hoveredNodeForInspectMode;
165 InspectorDOMAgent::SearchMode m_inspectMode; 167 InspectorDOMAgent::SearchMode m_inspectMode;
166 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 168 std::unique_ptr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
167 }; 169 };
168 170
169 } // namespace blink 171 } // namespace blink
170 172
171 173
172 #endif // InspectorOverlay_h 174 #endif // InspectorOverlay_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp ('k') | third_party/WebKit/Source/web/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698