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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

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
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 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Updates the controller, and, if |contents| is non-null, restores saved 155 // Updates the controller, and, if |contents| is non-null, restores saved
156 // state that the tab holds. 156 // state that the tab holds.
157 void Update(const content::WebContents* contents); 157 void Update(const content::WebContents* contents);
158 158
159 // Clears any location bar state stored for |contents|. 159 // Clears any location bar state stored for |contents|.
160 void ResetTabState(content::WebContents* contents); 160 void ResetTabState(content::WebContents* contents);
161 161
162 // Set the location bar's icon to the correct image for the current URL. 162 // Set the location bar's icon to the correct image for the current URL.
163 void UpdateLocationIcon(); 163 void UpdateLocationIcon();
164 164
165 // Set the location bar's controls to visibly match the current theme.
166 void UpdateColorsToMatchTheme();
167
165 // Notify the location bar that it was added to the browser window. Provides 168 // Notify the location bar that it was added to the browser window. Provides
166 // an update point for interface objects that need to set their appearance 169 // an update point for interface objects that need to set their appearance
167 // based on the window's theme. 170 // based on the window's theme.
168 void OnAddedToWindow(); 171 void OnAddedToWindow();
169 172
173 // Notify the location bar that the browser window theme has changed. Provides
174 // an update point for interface objects that need to set their appearance
175 // based on the window's theme.
176 void OnThemeChanged();
177
170 // ChromeOmniboxEditController: 178 // ChromeOmniboxEditController:
171 void UpdateWithoutTabRestore() override; 179 void UpdateWithoutTabRestore() override;
172 void OnChanged() override; 180 void OnChanged() override;
173 void OnSetFocus() override; 181 void OnSetFocus() override;
174 void ShowURL() override; 182 void ShowURL() override;
175 ToolbarModel* GetToolbarModel() override; 183 ToolbarModel* GetToolbarModel() override;
176 const ToolbarModel* GetToolbarModel() const override; 184 const ToolbarModel* GetToolbarModel() const override;
177 content::WebContents* GetWebContents() override; 185 content::WebContents* GetWebContents() override;
178 186
179 bool ShouldShowEVBubble() const; 187 bool ShouldShowEVBubble() const;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Indicates whether or not the location bar is currently visible. 283 // Indicates whether or not the location bar is currently visible.
276 bool location_bar_visible_; 284 bool location_bar_visible_;
277 285
278 // Used to schedule a task for the first run info bubble. 286 // Used to schedule a task for the first run info bubble.
279 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 287 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
280 288
281 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 289 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
282 }; 290 };
283 291
284 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 292 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698