| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/gfx/rect.h" | 5 #include "base/gfx/rect.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "chrome/browser/browser_window_cocoa.h" | 7 #include "chrome/browser/browser_window_cocoa.h" |
| 8 #include "chrome/browser/browser_window_controller.h" | 8 #include "chrome/browser/browser_window_controller.h" |
| 9 | 9 |
| 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, | 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 void BrowserWindowCocoa::SetFullscreen(bool fullscreen) { | 93 void BrowserWindowCocoa::SetFullscreen(bool fullscreen) { |
| 94 NOTIMPLEMENTED(); | 94 NOTIMPLEMENTED(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool BrowserWindowCocoa::IsFullscreen() const { | 97 bool BrowserWindowCocoa::IsFullscreen() const { |
| 98 NOTIMPLEMENTED(); | 98 NOTIMPLEMENTED(); |
| 99 return false; | 99 return false; |
| 100 } | 100 } |
| 101 | 101 |
| 102 @interface NSWindow(OSInternals) |
| 103 - (NSRect)_growBoxRect; |
| 104 @end |
| 105 |
| 102 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { | 106 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { |
| 103 // TODO(pinkerton): fill this in so scrollbars go in the correct places | 107 NSRect windowRect = [window_ _growBoxRect]; |
| 104 NOTIMPLEMENTED(); | 108 // convert from window coordinates to the coordinates of the currently |
| 105 return gfx::Rect(); | 109 // selected tab. |tabRect| will already be flipped into WebKit coordinates. |
| 110 NSRect tabRect = [controller_ selectedTabGrowBoxFromWindowGrowBox:windowRect]; |
| 111 return gfx::Rect(NSRectToCGRect(tabRect)); |
| 106 } | 112 } |
| 107 | 113 |
| 108 LocationBar* BrowserWindowCocoa::GetLocationBar() const { | 114 LocationBar* BrowserWindowCocoa::GetLocationBar() const { |
| 109 return [controller_ locationBar]; | 115 return [controller_ locationBar]; |
| 110 } | 116 } |
| 111 | 117 |
| 112 void BrowserWindowCocoa::SetFocusToLocationBar() { | 118 void BrowserWindowCocoa::SetFocusToLocationBar() { |
| 113 NOTIMPLEMENTED(); | 119 NOTIMPLEMENTED(); |
| 114 } | 120 } |
| 115 | 121 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 void* parent_window) { | 187 void* parent_window) { |
| 182 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
| 183 } | 189 } |
| 184 | 190 |
| 185 void BrowserWindowCocoa::DestroyBrowser() { | 191 void BrowserWindowCocoa::DestroyBrowser() { |
| 186 [controller_ destroyBrowser]; | 192 [controller_ destroyBrowser]; |
| 187 | 193 |
| 188 // at this point the controller is dead (autoreleased), so | 194 // at this point the controller is dead (autoreleased), so |
| 189 // make sure we don't try to reference it any more. | 195 // make sure we don't try to reference it any more. |
| 190 } | 196 } |
| OLD | NEW |