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 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 430 } |
431 | 431 |
432 bool BrowserWindowCocoa::IsFullscreen() const { | 432 bool BrowserWindowCocoa::IsFullscreen() const { |
433 return [controller_ isInAnyFullscreenMode]; | 433 return [controller_ isInAnyFullscreenMode]; |
434 } | 434 } |
435 | 435 |
436 bool BrowserWindowCocoa::IsFullscreenBubbleVisible() const { | 436 bool BrowserWindowCocoa::IsFullscreenBubbleVisible() const { |
437 return false; // Currently only called from toolkit-views website_settings. | 437 return false; // Currently only called from toolkit-views website_settings. |
438 } | 438 } |
439 | 439 |
440 void BrowserWindowCocoa::MaybeShowNewBackShortcutBubble(bool forward) { | 440 void BrowserWindowCocoa::MaybeShowNewBackShortcutBubble(int command_id) { |
441 [controller_ exclusiveAccessController]->MaybeShowNewBackShortcutBubble( | 441 [controller_ exclusiveAccessController]->MaybeShowNewBackShortcutBubble( |
442 forward); | 442 command_id); |
443 } | 443 } |
444 | 444 |
445 void BrowserWindowCocoa::HideNewBackShortcutBubble() { | 445 void BrowserWindowCocoa::HideNewBackShortcutBubble() { |
446 [controller_ exclusiveAccessController]->HideNewBackShortcutBubble(); | 446 [controller_ exclusiveAccessController]->HideNewBackShortcutBubble(); |
447 } | 447 } |
448 | 448 |
449 LocationBar* BrowserWindowCocoa::GetLocationBar() const { | 449 LocationBar* BrowserWindowCocoa::GetLocationBar() const { |
450 return [controller_ locationBarBridge]; | 450 return [controller_ locationBarBridge]; |
451 } | 451 } |
452 | 452 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { | 832 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { |
833 return [controller_ exclusiveAccessController]; | 833 return [controller_ exclusiveAccessController]; |
834 } | 834 } |
835 | 835 |
836 void BrowserWindowCocoa::ShowImeWarningBubble( | 836 void BrowserWindowCocoa::ShowImeWarningBubble( |
837 const extensions::Extension* extension, | 837 const extensions::Extension* extension, |
838 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& | 838 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& |
839 callback) { | 839 callback) { |
840 NOTREACHED() << "The IME warning bubble is unsupported on this platform."; | 840 NOTREACHED() << "The IME warning bubble is unsupported on this platform."; |
841 } | 841 } |
OLD | NEW |