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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 LocationBarViewMac* locationBar = [controller_ locationBarBridge]; | 671 LocationBarViewMac* locationBar = [controller_ locationBarBridge]; |
672 if (locationBar) { | 672 if (locationBar) { |
673 locationBar->OnThemeChanged(); | 673 locationBar->OnThemeChanged(); |
674 } | 674 } |
675 } | 675 } |
676 | 676 |
677 void BrowserWindowCocoa::ShowWebsiteSettings( | 677 void BrowserWindowCocoa::ShowWebsiteSettings( |
678 Profile* profile, | 678 Profile* profile, |
679 content::WebContents* web_contents, | 679 content::WebContents* web_contents, |
680 const GURL& virtual_url, | 680 const GURL& virtual_url, |
681 const security_state::SecurityStateModel::SecurityInfo& security_info) { | 681 const security_state::SecurityInfo& security_info) { |
682 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, virtual_url, | 682 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, virtual_url, |
683 security_info); | 683 security_info); |
684 } | 684 } |
685 | 685 |
686 void BrowserWindowCocoa::ShowAppMenu() { | 686 void BrowserWindowCocoa::ShowAppMenu() { |
687 // No-op. Mac doesn't support showing the menus via alt keys. | 687 // No-op. Mac doesn't support showing the menus via alt keys. |
688 } | 688 } |
689 | 689 |
690 bool BrowserWindowCocoa::PreHandleKeyboardEvent( | 690 bool BrowserWindowCocoa::PreHandleKeyboardEvent( |
691 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { | 691 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { | 830 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { |
831 return [controller_ exclusiveAccessController]; | 831 return [controller_ exclusiveAccessController]; |
832 } | 832 } |
833 | 833 |
834 void BrowserWindowCocoa::ShowImeWarningBubble( | 834 void BrowserWindowCocoa::ShowImeWarningBubble( |
835 const extensions::Extension* extension, | 835 const extensions::Extension* extension, |
836 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& | 836 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& |
837 callback) { | 837 callback) { |
838 NOTREACHED() << "The IME warning bubble is unsupported on this platform."; | 838 NOTREACHED() << "The IME warning bubble is unsupported on this platform."; |
839 } | 839 } |
OLD | NEW |