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

Side by Side Diff: chrome/browser/devtools/devtools_window.h

Issue 221283009: [DevTools] Pass inspected page bounds from frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test on mac Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
7 7
8 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" 8 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
9 #include "chrome/browser/devtools/devtools_toggle_action.h" 9 #include "chrome/browser/devtools/devtools_toggle_action.h"
10 #include "chrome/browser/devtools/devtools_ui_bindings.h" 10 #include "chrome/browser/devtools/devtools_ui_bindings.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 content::WebContents* web_contents, 263 content::WebContents* web_contents,
264 const content::FileChooserParams& params) OVERRIDE; 264 const content::FileChooserParams& params) OVERRIDE;
265 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 265 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
266 virtual bool PreHandleGestureEvent( 266 virtual bool PreHandleGestureEvent(
267 content::WebContents* source, 267 content::WebContents* source,
268 const blink::WebGestureEvent& event) OVERRIDE; 268 const blink::WebGestureEvent& event) OVERRIDE;
269 269
270 // content::DevToolsUIBindings::Delegate overrides 270 // content::DevToolsUIBindings::Delegate overrides
271 virtual void ActivateWindow() OVERRIDE; 271 virtual void ActivateWindow() OVERRIDE;
272 virtual void CloseWindow() OVERRIDE; 272 virtual void CloseWindow() OVERRIDE;
273 virtual void SetContentsInsets( 273 virtual void SetInspectedPageBounds(const gfx::Rect& rect) OVERRIDE;
274 int left, int top, int right, int bottom) OVERRIDE;
275 virtual void SetContentsResizingStrategy( 274 virtual void SetContentsResizingStrategy(
276 const gfx::Insets& insets, const gfx::Size& min_size) OVERRIDE; 275 const gfx::Insets& insets, const gfx::Size& min_size) OVERRIDE;
277 virtual void InspectElementCompleted() OVERRIDE; 276 virtual void InspectElementCompleted() OVERRIDE;
278 virtual void MoveWindow(int x, int y) OVERRIDE; 277 virtual void MoveWindow(int x, int y) OVERRIDE;
279 virtual void SetIsDocked(bool is_docked) OVERRIDE; 278 virtual void SetIsDocked(bool is_docked) OVERRIDE;
280 virtual void OpenInNewTab(const std::string& url) OVERRIDE; 279 virtual void OpenInNewTab(const std::string& url) OVERRIDE;
281 virtual void SetWhitelistedShortcuts(const std::string& message) OVERRIDE; 280 virtual void SetWhitelistedShortcuts(const std::string& message) OVERRIDE;
282 virtual void InspectedContentsClosing() OVERRIDE; 281 virtual void InspectedContentsClosing() OVERRIDE;
283 virtual void OnLoadCompleted() OVERRIDE; 282 virtual void OnLoadCompleted() OVERRIDE;
284 virtual InfoBarService* GetInfoBarService() OVERRIDE; 283 virtual InfoBarService* GetInfoBarService() OVERRIDE;
(...skipping 28 matching lines...) Expand all
313 base::Closure load_completed_callback_; 312 base::Closure load_completed_callback_;
314 313
315 base::TimeTicks inspect_element_start_time_; 314 base::TimeTicks inspect_element_start_time_;
316 scoped_ptr<DevToolsEventForwarder> event_forwarder_; 315 scoped_ptr<DevToolsEventForwarder> event_forwarder_;
317 316
318 friend class DevToolsEventForwarder; 317 friend class DevToolsEventForwarder;
319 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 318 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
320 }; 319 };
321 320
322 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_ 321 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698