| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/gfx/insets.h" | 9 #include "ui/gfx/geometry/insets.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
| 12 | 12 |
| 13 // This class knows how to resize both DevTools and inspected WebContents | 13 // This class knows how to resize both DevTools and inspected WebContents |
| 14 // inside a browser window hierarchy. | 14 // inside a browser window hierarchy. |
| 15 class DevToolsContentsResizingStrategy { | 15 class DevToolsContentsResizingStrategy { |
| 16 public: | 16 public: |
| 17 DevToolsContentsResizingStrategy(); | 17 DevToolsContentsResizingStrategy(); |
| 18 DevToolsContentsResizingStrategy( | 18 DevToolsContentsResizingStrategy( |
| 19 const gfx::Insets& insets, | 19 const gfx::Insets& insets, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 // is allowed. | 47 // is allowed. |
| 48 void ApplyDevToolsContentsResizingStrategy( | 48 void ApplyDevToolsContentsResizingStrategy( |
| 49 const DevToolsContentsResizingStrategy& strategy, | 49 const DevToolsContentsResizingStrategy& strategy, |
| 50 const gfx::Size& container_size, | 50 const gfx::Size& container_size, |
| 51 const gfx::Rect& old_devtools_bounds, | 51 const gfx::Rect& old_devtools_bounds, |
| 52 const gfx::Rect& old_contents_bounds, | 52 const gfx::Rect& old_contents_bounds, |
| 53 gfx::Rect* new_devtools_bounds, | 53 gfx::Rect* new_devtools_bounds, |
| 54 gfx::Rect* new_contents_bounds); | 54 gfx::Rect* new_contents_bounds); |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ | 56 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ |
| OLD | NEW |