Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 1866523002: [Mac] Update location bar colors when change themes in Material Design. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up for review. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698