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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } else { | 218 } else { |
219 [NSApp cancelUserAttentionRequest:attention_request_id_]; | 219 [NSApp cancelUserAttentionRequest:attention_request_id_]; |
220 attention_request_id_ = 0; | 220 attention_request_id_ = 0; |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 bool BrowserWindowCocoa::IsAlwaysOnTop() const { | 224 bool BrowserWindowCocoa::IsAlwaysOnTop() const { |
225 return false; | 225 return false; |
226 } | 226 } |
227 | 227 |
| 228 gfx::Rect BrowserWindowCocoa::ContentBoundsForWindowBounds( |
| 229 const gfx::Rect& window_bounds) const { |
| 230 NOTIMPLEMENTED() |
| 231 return gfx::Rect(); |
| 232 } |
| 233 |
| 234 gfx::Rect BrowserWindowCocoa::WindowBoundsForContentBounds( |
| 235 const gfx::Rect& content_bounds) const { |
| 236 NOTIMPLEMENTED() |
| 237 return gfx::Rect(); |
| 238 } |
| 239 |
228 bool BrowserWindowCocoa::IsActive() const { | 240 bool BrowserWindowCocoa::IsActive() const { |
229 return [window() isKeyWindow]; | 241 return [window() isKeyWindow]; |
230 } | 242 } |
231 | 243 |
232 gfx::NativeWindow BrowserWindowCocoa::GetNativeWindow() { | 244 gfx::NativeWindow BrowserWindowCocoa::GetNativeWindow() { |
233 return window(); | 245 return window(); |
234 } | 246 } |
235 | 247 |
236 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { | 248 BrowserWindowTesting* BrowserWindowCocoa::GetBrowserWindowTesting() { |
237 return NULL; | 249 return NULL; |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 AvatarMenuBubbleController* menu = | 669 AvatarMenuBubbleController* menu = |
658 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 670 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
659 anchoredAt:point]; | 671 anchoredAt:point]; |
660 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 672 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
661 [menu showWindow:nil]; | 673 [menu showWindow:nil]; |
662 } | 674 } |
663 | 675 |
664 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 676 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
665 [[controller_ avatarButtonController] showAvatarBubble]; | 677 [[controller_ avatarButtonController] showAvatarBubble]; |
666 } | 678 } |
OLD | NEW |