| 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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads( | 681 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads( |
| 682 int download_count, | 682 int download_count, |
| 683 Browser::DownloadClosePreventionType dialog_type, | 683 Browser::DownloadClosePreventionType dialog_type, |
| 684 bool app_modal, | 684 bool app_modal, |
| 685 const base::Callback<void(bool)>& callback) { | 685 const base::Callback<void(bool)>& callback) { |
| 686 callback.Run(true); | 686 callback.Run(true); |
| 687 } | 687 } |
| 688 | 688 |
| 689 void BrowserWindowCocoa::UserChangedTheme() { | 689 void BrowserWindowCocoa::UserChangedTheme() { |
| 690 [controller_ userChangedTheme]; | 690 [controller_ userChangedTheme]; |
| 691 LocationBarViewMac* locationBar = [controller_ locationBarBridge]; |
| 692 if (locationBar) { |
| 693 locationBar->OnThemeChanged(); |
| 694 } |
| 691 } | 695 } |
| 692 | 696 |
| 693 void BrowserWindowCocoa::ShowWebsiteSettings( | 697 void BrowserWindowCocoa::ShowWebsiteSettings( |
| 694 Profile* profile, | 698 Profile* profile, |
| 695 content::WebContents* web_contents, | 699 content::WebContents* web_contents, |
| 696 const GURL& url, | 700 const GURL& url, |
| 697 const security_state::SecurityStateModel::SecurityInfo& security_info) { | 701 const security_state::SecurityStateModel::SecurityInfo& security_info) { |
| 698 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url, | 702 WebsiteSettingsUIBridge::Show(window(), profile, web_contents, url, |
| 699 security_info); | 703 security_info); |
| 700 } | 704 } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 847 |
| 844 void BrowserWindowCocoa::ExecuteExtensionCommand( | 848 void BrowserWindowCocoa::ExecuteExtensionCommand( |
| 845 const extensions::Extension* extension, | 849 const extensions::Extension* extension, |
| 846 const extensions::Command& command) { | 850 const extensions::Command& command) { |
| 847 [cocoa_controller() executeExtensionCommand:extension->id() command:command]; | 851 [cocoa_controller() executeExtensionCommand:extension->id() command:command]; |
| 848 } | 852 } |
| 849 | 853 |
| 850 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { | 854 ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { |
| 851 return [controller_ exclusiveAccessController]; | 855 return [controller_ exclusiveAccessController]; |
| 852 } | 856 } |
| OLD | NEW |