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

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

Issue 1955083003: [Material Design] Update Website Setting Icons in Omnibox on OSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch for shrike's review Created 4 years, 7 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 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void ShowURL() override; 182 void ShowURL() override;
183 ToolbarModel* GetToolbarModel() override; 183 ToolbarModel* GetToolbarModel() override;
184 const ToolbarModel* GetToolbarModel() const override; 184 const ToolbarModel* GetToolbarModel() const override;
185 content::WebContents* GetWebContents() override; 185 content::WebContents* GetWebContents() override;
186 186
187 bool ShouldShowEVBubble() const; 187 bool ShouldShowEVBubble() const;
188 NSImage* GetKeywordImage(const base::string16& keyword); 188 NSImage* GetKeywordImage(const base::string16& keyword);
189 189
190 AutocompleteTextField* GetAutocompleteTextField() { return field_; } 190 AutocompleteTextField* GetAutocompleteTextField() { return field_; }
191 191
192 // Returns true if the location bar is dark.
Nico 2016/05/11 19:13:33 comment just repeats the method name
spqchan 2016/05/12 17:40:05 Done.
193 bool IsLocationBarDark() const;
194
192 ManagePasswordsDecoration* manage_passwords_decoration() { 195 ManagePasswordsDecoration* manage_passwords_decoration() {
193 return manage_passwords_decoration_.get(); 196 return manage_passwords_decoration_.get();
194 } 197 }
195 198
196 Browser* browser() const { return browser_; } 199 Browser* browser() const { return browser_; }
197 200
198 // ZoomManagerObserver: 201 // ZoomManagerObserver:
199 // Updates the view for the zoom icon when default zoom levels change. 202 // Updates the view for the zoom icon when default zoom levels change.
200 void OnDefaultZoomLevelChanged() override; 203 void OnDefaultZoomLevelChanged() override;
201 204
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Indicates whether or not the location bar is currently visible. 286 // Indicates whether or not the location bar is currently visible.
284 bool location_bar_visible_; 287 bool location_bar_visible_;
285 288
286 // Used to schedule a task for the first run info bubble. 289 // Used to schedule a task for the first run info bubble.
287 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 290 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
288 291
289 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 292 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
290 }; 293 };
291 294
292 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 295 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698