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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

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/cocoa/browser_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 1c875c6f7327da2e15e2576d9baac8267edfe507..9c5e39d76f0201810d66af4adef726c56c32ef67 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -225,6 +225,16 @@ bool BrowserWindowCocoa::IsAlwaysOnTop() const {
return false;
}
+gfx::Rect BrowserWindowCocoa::ContentBoundsForWindowBounds(
+ const gfx::Rect& window_bounds) const {
+ return window_bounds;
+}
+
+gfx::Rect BrowserWindowCocoa::WindowBoundsForContentBounds(
+ const gfx::Rect& content_bounds) const {
+ return content_bounds;
+}
+
bool BrowserWindowCocoa::IsActive() const {
return [window() isKeyWindow];
}

Powered by Google App Engine
This is Rietveld 408576698