Index: chrome/browser/ui/base_window.h |
diff --git a/chrome/browser/ui/base_window.h b/chrome/browser/ui/base_window.h |
index deaa700d549103304280f8d383dedda94f4dce6e..4c76fdd8333594f37ef9af49eab66b14c898340e 100644 |
--- a/chrome/browser/ui/base_window.h |
+++ b/chrome/browser/ui/base_window.h |
@@ -79,6 +79,16 @@ class BaseWindow { |
// Returns true if a window is set to be always on top. |
virtual bool IsAlwaysOnTop() const = 0; |
+ |
+ // Converts from window bounds (i.e. including window decorations) to content |
+ // bounds (i.e. not including window decorations). |
+ virtual gfx::Rect ContentBoundsForWindowBounds( |
+ const gfx::Rect& window_bounds) const = 0; |
+ |
+ // Converts from content bounds (i.e. not including window decorations) to |
+ // window bounds (i.e. including window decorations). |
+ virtual gfx::Rect WindowBoundsForContentBounds( |
+ const gfx::Rect& content_bounds) const = 0; |
}; |
#endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ |