Use new devtools resizing strategy from Chrome 37.
This commit is contained in:
parent
f8c8c415eb
commit
4107089363
6 changed files with 35 additions and 90 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue