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

Unified Diff: chrome/browser/ui/cocoa/extensions/shell_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/extensions/shell_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
index 048f2ca4e2d1277134a1fbdc63d2b6faca4e727a..38dc653fca4b73294f3e6ecdc4a55e5c5f7b95a6 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
@@ -656,6 +656,18 @@ bool ShellWindowCocoa::IsAlwaysOnTop() const {
return false;
}
+gfx::Rect ShellWindowCocoa::ContentBoundsForWindowBounds(
+ const gfx::Rect& window_bounds) const {
+ // TODO(jeremya): implement.
+ return window_bounds;
+}
+
+gfx::Rect ShellWindowCocoa::WindowBoundsForContentBounds(
+ const gfx::Rect& content_bounds) const {
+ // TODO(jeremya): implement.
+ return content_bounds;
+}
+
void ShellWindowCocoa::WindowWillClose() {
[window_controller_ setShellWindow:NULL];
shell_window_->SaveWindowPosition();

Powered by Google App Engine
This is Rietveld 408576698