| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool BrowserWindowCocoa::IsAlwaysOnTop() const { | 195 bool BrowserWindowCocoa::IsAlwaysOnTop() const { |
| 196 return false; | 196 return false; |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool BrowserWindowCocoa::IsActive() const { | 199 bool BrowserWindowCocoa::IsActive() const { |
| 200 return [window() isKeyWindow]; | 200 return [window() isKeyWindow]; |
| 201 } | 201 } |
| 202 | 202 |
| 203 gfx::NativeWindow BrowserWindowCocoa::GetNativeHandle() { | 203 gfx::NativeWindow BrowserWindowCocoa::GetNativeWindow() { |
| 204 return window(); | 204 return window(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { | 207 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { |
| 208 return NULL; | 208 return NULL; |
| 209 } | 209 } |
| 210 | 210 |
| 211 StatusBubble* BrowserWindowCocoa::GetStatusBubble() { | 211 StatusBubble* BrowserWindowCocoa::GetStatusBubble() { |
| 212 return [controller_ statusBubble]; | 212 return [controller_ statusBubble]; |
| 213 } | 213 } |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 AvatarMenuBubbleController* menu = | 652 AvatarMenuBubbleController* menu = |
| 653 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 653 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
| 654 anchoredAt:point]; | 654 anchoredAt:point]; |
| 655 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 655 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
| 656 [menu showWindow:nil]; | 656 [menu showWindow:nil]; |
| 657 } | 657 } |
| 658 | 658 |
| 659 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 659 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
| 660 [[controller_ avatarButtonController] showAvatarBubble]; | 660 [[controller_ avatarButtonController] showAvatarBubble]; |
| 661 } | 661 } |
| OLD | NEW |