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

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

Issue 2859273002: [DevTools] Do not talk to inspector overlay from outside (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/InspectorOverlayAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 113
114 // InspectorBaseAgent overrides. 114 // InspectorBaseAgent overrides.
115 void Restore() override; 115 void Restore() override;
116 void Dispose() override; 116 void Dispose() override;
117 117
118 void Inspect(Node*); 118 void Inspect(Node*);
119 bool HandleInputEvent(const WebInputEvent&); 119 bool HandleInputEvent(const WebInputEvent&);
120 void PageLayoutInvalidated(bool resized); 120 void PageLayoutInvalidated(bool resized);
121 void ShowReloadingBlanket(); 121 void ShowReloadingBlanket();
122 void HideReloadingBlanket(); 122 void HideReloadingBlanket();
123 // Does not yet include paint.
124 void UpdateAllLifecyclePhases();
125 PageOverlay* GetPageOverlay() { return page_overlay_.get(); };
126 String EvaluateInOverlayForTest(const String&); 123 String EvaluateInOverlayForTest(const String&);
124 void PaintOverlay();
125 void LayoutOverlay();
127 126
128 private: 127 private:
129 class InspectorOverlayChromeClient; 128 class InspectorOverlayChromeClient;
130 class InspectorPageOverlayDelegate; 129 class InspectorPageOverlayDelegate;
131 130
132 enum SearchMode { 131 enum SearchMode {
133 kNotSearching, 132 kNotSearching,
134 kSearchingForNormal, 133 kSearchingForNormal,
135 kSearchingForUAShadow, 134 kSearchingForUAShadow,
136 }; 135 };
(...skipping 15 matching lines...) Expand all
152 void Reset(const IntSize& viewport_size, 151 void Reset(const IntSize& viewport_size,
153 const IntPoint& document_scroll_offset); 152 const IntPoint& document_scroll_offset);
154 void EvaluateInOverlay(const String& method, const String& argument); 153 void EvaluateInOverlay(const String& method, const String& argument);
155 void EvaluateInOverlay(const String& method, 154 void EvaluateInOverlay(const String& method,
156 std::unique_ptr<protocol::Value> argument); 155 std::unique_ptr<protocol::Value> argument);
157 void OnTimer(TimerBase*); 156 void OnTimer(TimerBase*);
158 void RebuildOverlayPage(); 157 void RebuildOverlayPage();
159 void Invalidate(); 158 void Invalidate();
160 void ScheduleUpdate(); 159 void ScheduleUpdate();
161 void ClearInternal(); 160 void ClearInternal();
161 void UpdateAllLifecyclePhases();
162 162
163 bool HandleMouseDown(); 163 bool HandleMouseDown();
164 bool HandleMouseUp(); 164 bool HandleMouseUp();
165 bool HandleGestureEvent(const WebGestureEvent&); 165 bool HandleGestureEvent(const WebGestureEvent&);
166 bool HandleTouchEvent(const WebTouchEvent&); 166 bool HandleTouchEvent(const WebTouchEvent&);
167 bool HandleMouseMove(const WebMouseEvent&); 167 bool HandleMouseMove(const WebMouseEvent&);
168 168
169 protocol::Response CompositingEnabled(); 169 protocol::Response CompositingEnabled();
170 170
171 bool ShouldSearchForNode(); 171 bool ShouldSearchForNode();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Member<Node> hovered_node_for_inspect_mode_; 214 Member<Node> hovered_node_for_inspect_mode_;
215 bool swallow_next_mouse_up_; 215 bool swallow_next_mouse_up_;
216 SearchMode inspect_mode_; 216 SearchMode inspect_mode_;
217 std::unique_ptr<InspectorHighlightConfig> inspect_mode_highlight_config_; 217 std::unique_ptr<InspectorHighlightConfig> inspect_mode_highlight_config_;
218 int backend_node_id_to_inspect_; 218 int backend_node_id_to_inspect_;
219 }; 219 };
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif // InspectorOverlayAgent_h 223 #endif // InspectorOverlayAgent_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/InspectorOverlayAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698