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

Unified Diff: chrome/browser/devtools/devtools_contents_resizing_strategy.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_contents_resizing_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_contents_resizing_strategy.h
diff --git a/chrome/browser/devtools/devtools_contents_resizing_strategy.h b/chrome/browser/devtools/devtools_contents_resizing_strategy.h
index e3767fd6e95ca8c1977f3c896cfff1b03c00e550..a1e687cdd42089bdc2506c93d18f3b82755c7d77 100644
--- a/chrome/browser/devtools/devtools_contents_resizing_strategy.h
+++ b/chrome/browser/devtools/devtools_contents_resizing_strategy.h
@@ -18,12 +18,14 @@ class DevToolsContentsResizingStrategy {
DevToolsContentsResizingStrategy(
const gfx::Insets& insets,
const gfx::Size& min_size);
+ explicit DevToolsContentsResizingStrategy(const gfx::Rect& bounds);
void CopyFrom(const DevToolsContentsResizingStrategy& strategy);
bool Equals(const DevToolsContentsResizingStrategy& strategy);
const gfx::Insets& insets() const { return insets_; }
const gfx::Size& min_size() const { return min_size_; }
+ const gfx::Rect& bounds() const { return bounds_; }
private:
// Insets of contents inside DevTools.
@@ -32,6 +34,9 @@ class DevToolsContentsResizingStrategy {
// Minimum size of contents.
gfx::Size min_size_;
+ // Contents bounds. When non-empty, used instead of insets.
+ gfx::Rect bounds_;
+
DISALLOW_COPY_AND_ASSIGN(DevToolsContentsResizingStrategy);
};
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_contents_resizing_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698