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

Unified Diff: chrome/browser/devtools/devtools_contents_resizing_strategy.h

Issue 440663003: DevTools: remove unused resizing strategy code paths, make it solely bounds-based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 6 years, 4 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 a1e687cdd42089bdc2506c93d18f3b82755c7d77..e6a3c9b358c1ff9c96d18f699fa2c14b02121682 100644
--- a/chrome/browser/devtools/devtools_contents_resizing_strategy.h
+++ b/chrome/browser/devtools/devtools_contents_resizing_strategy.h
@@ -15,28 +15,22 @@
class DevToolsContentsResizingStrategy {
public:
DevToolsContentsResizingStrategy();
- DevToolsContentsResizingStrategy(
- const gfx::Insets& insets,
- const gfx::Size& min_size);
- explicit DevToolsContentsResizingStrategy(const gfx::Rect& bounds);
+ 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_; }
+ bool hide_inspected_contents() const { return hide_inspected_contents_; }
private:
- // Insets of contents inside DevTools.
- gfx::Insets insets_;
-
- // Minimum size of contents.
- gfx::Size min_size_;
-
// Contents bounds. When non-empty, used instead of insets.
gfx::Rect bounds_;
+ // Determines whether inspected contents is visible.
+ bool hide_inspected_contents_;
+
DISALLOW_COPY_AND_ASSIGN(DevToolsContentsResizingStrategy);
};
@@ -48,8 +42,6 @@ class DevToolsContentsResizingStrategy {
void ApplyDevToolsContentsResizingStrategy(
const DevToolsContentsResizingStrategy& strategy,
const gfx::Size& container_size,
- const gfx::Rect& old_devtools_bounds,
- const gfx::Rect& old_contents_bounds,
gfx::Rect* new_devtools_bounds,
gfx::Rect* new_contents_bounds);
« 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