| 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/cocoa/browser_window_cocoa.h" | 7 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| 8 #include "chrome/browser/cocoa/browser_window_controller.h" | 8 #include "chrome/browser/cocoa/browser_window_controller.h" |
| 9 | 9 |
| 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, | 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 void BrowserWindowCocoa::FlashFrame() { | 46 void BrowserWindowCocoa::FlashFrame() { |
| 47 [[NSApplication sharedApplication] | 47 [[NSApplication sharedApplication] |
| 48 requestUserAttention:NSInformationalRequest]; | 48 requestUserAttention:NSInformationalRequest]; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool BrowserWindowCocoa::IsActive() const { | 51 bool BrowserWindowCocoa::IsActive() const { |
| 52 return [window_ isKeyWindow]; | 52 return [window_ isKeyWindow]; |
| 53 } | 53 } |
| 54 | 54 |
| 55 void* BrowserWindowCocoa::GetNativeHandle() { | 55 gfx::NativeWindow BrowserWindowCocoa::GetNativeHandle() { |
| 56 return [controller_ window]; | 56 return [controller_ window]; |
| 57 } | 57 } |
| 58 | 58 |
| 59 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { | 59 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { |
| 60 return NULL; | 60 return NULL; |
| 61 } | 61 } |
| 62 | 62 |
| 63 StatusBubble* BrowserWindowCocoa::GetStatusBubble() { | 63 StatusBubble* BrowserWindowCocoa::GetStatusBubble() { |
| 64 return NULL; | 64 return NULL; |
| 65 } | 65 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void* parent_window) { | 189 void* parent_window) { |
| 190 NOTIMPLEMENTED(); | 190 NOTIMPLEMENTED(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void BrowserWindowCocoa::DestroyBrowser() { | 193 void BrowserWindowCocoa::DestroyBrowser() { |
| 194 [controller_ destroyBrowser]; | 194 [controller_ destroyBrowser]; |
| 195 | 195 |
| 196 // at this point the controller is dead (autoreleased), so | 196 // at this point the controller is dead (autoreleased), so |
| 197 // make sure we don't try to reference it any more. | 197 // make sure we don't try to reference it any more. |
| 198 } | 198 } |
| OLD | NEW |