| 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 "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" | 8 #include "chrome/app/chrome_dll_resource.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_utils.h" | 9 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 10 #include "chrome/browser/cocoa/browser_window_cocoa.h" | 10 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 void BrowserWindowCocoa::SetFullscreen(bool fullscreen) { | 160 void BrowserWindowCocoa::SetFullscreen(bool fullscreen) { |
| 161 [controller_ setFullscreen:fullscreen]; | 161 [controller_ setFullscreen:fullscreen]; |
| 162 } | 162 } |
| 163 | 163 |
| 164 bool BrowserWindowCocoa::IsFullscreen() const { | 164 bool BrowserWindowCocoa::IsFullscreen() const { |
| 165 return !![controller_ isFullscreen]; | 165 return !![controller_ isFullscreen]; |
| 166 } | 166 } |
| 167 | 167 |
| 168 bool BrowserWindowCocoa::IsFullscreenBubbleVisible() const { |
| 169 return false; |
| 170 } |
| 171 |
| 168 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { | 172 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { |
| 169 NSRect tabRect = [controller_ selectedTabGrowBoxRect]; | 173 NSRect tabRect = [controller_ selectedTabGrowBoxRect]; |
| 170 return gfx::Rect(NSRectToCGRect(tabRect)); | 174 return gfx::Rect(NSRectToCGRect(tabRect)); |
| 171 } | 175 } |
| 172 | 176 |
| 173 void BrowserWindowCocoa::ConfirmAddSearchProvider( | 177 void BrowserWindowCocoa::ConfirmAddSearchProvider( |
| 174 const TemplateURL* template_url, | 178 const TemplateURL* template_url, |
| 175 Profile* profile) { | 179 Profile* profile) { |
| 176 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
| 177 } | 181 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 break; | 430 break; |
| 427 } | 431 } |
| 428 } | 432 } |
| 429 | 433 |
| 430 void BrowserWindowCocoa::DestroyBrowser() { | 434 void BrowserWindowCocoa::DestroyBrowser() { |
| 431 [controller_ destroyBrowser]; | 435 [controller_ destroyBrowser]; |
| 432 | 436 |
| 433 // at this point the controller is dead (autoreleased), so | 437 // at this point the controller is dead (autoreleased), so |
| 434 // make sure we don't try to reference it any more. | 438 // make sure we don't try to reference it any more. |
| 435 } | 439 } |
| OLD | NEW |