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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.h ('k') | chrome/browser/devtools/devtools_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index 4d1450840bdc099ca874ed13710dfaae7cb0f3a2..bde3a141ad1469c72d0ba2a69ca3258358a06243 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -188,8 +188,7 @@ class DefaultBindingsDelegate : public DevToolsUIBindings::Delegate {
virtual void ActivateWindow() OVERRIDE;
virtual void CloseWindow() OVERRIDE {}
- virtual void SetContentsInsets(
- int left, int top, int right, int bottom) OVERRIDE {}
+ virtual void SetInspectedPageBounds(const gfx::Rect& rect) OVERRIDE {}
virtual void SetContentsResizingStrategy(
const gfx::Insets& insets, const gfx::Size& min_size) OVERRIDE {}
virtual void InspectElementCompleted() OVERRIDE {}
@@ -415,9 +414,8 @@ void DevToolsUIBindings::CloseWindow() {
delegate_->CloseWindow();
}
-void DevToolsUIBindings::SetContentsInsets(
- int top, int left, int bottom, int right) {
- delegate_->SetContentsInsets(top, left, bottom, right);
+void DevToolsUIBindings::SetInspectedPageBounds(const gfx::Rect& rect) {
+ delegate_->SetInspectedPageBounds(rect);
}
void DevToolsUIBindings::SetContentsResizingStrategy(
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.h ('k') | chrome/browser/devtools/devtools_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698