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); |