Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6805)

Unified Diff: chrome/browser/ui/base_window.h

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698