1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef BRIGHTRAY_BROWSER_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
- #define BRIGHTRAY_BROWSER_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
- #include "base/macros.h"
- #include "ui/gfx/geometry/rect.h"
- #include "ui/gfx/geometry/size.h"
- class DevToolsContentsResizingStrategy {
- public:
- DevToolsContentsResizingStrategy();
- explicit DevToolsContentsResizingStrategy(const gfx::Rect& bounds);
- void CopyFrom(const DevToolsContentsResizingStrategy& strategy);
- bool Equals(const DevToolsContentsResizingStrategy& strategy);
- const gfx::Rect& bounds() const { return bounds_; }
- bool hide_inspected_contents() const { return hide_inspected_contents_; }
- private:
-
- gfx::Rect bounds_;
-
- bool hide_inspected_contents_;
- DISALLOW_COPY_AND_ASSIGN(DevToolsContentsResizingStrategy);
- };
- void ApplyDevToolsContentsResizingStrategy(
- const DevToolsContentsResizingStrategy& strategy,
- const gfx::Size& container_size,
- gfx::Rect* new_devtools_bounds,
- gfx::Rect* new_contents_bounds);
- #endif
|