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

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

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Move LocationBarDecoration to cocoa Created 3 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ManagePasswordsDecoration* manage_passwords_decoration() { 185 ManagePasswordsDecoration* manage_passwords_decoration() {
186 return manage_passwords_decoration_.get(); 186 return manage_passwords_decoration_.get();
187 } 187 }
188 188
189 StarDecoration* star_decoration() const { return star_decoration_.get(); } 189 StarDecoration* star_decoration() const { return star_decoration_.get(); }
190 190
191 TranslateDecoration* translate_decoration() const { 191 TranslateDecoration* translate_decoration() const {
192 return translate_decoration_.get(); 192 return translate_decoration_.get();
193 } 193 }
194 194
195 // Returns the content setting decoration at the given screen coordinates
196 // represented by |anchor|.
197 LocationBarDecoration* GetContentSettingDecoration(NSPoint anchor) const;
198
195 Browser* browser() const { return browser_; } 199 Browser* browser() const { return browser_; }
196 200
197 // ZoomManagerObserver: 201 // ZoomManagerObserver:
198 // 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.
199 void OnDefaultZoomLevelChanged() override; 203 void OnDefaultZoomLevelChanged() override;
200 204
201 // Returns the decoration accessibility views for all of this 205 // Returns the decoration accessibility views for all of this
202 // LocationBarViewMac's decorations. The returned NSViews may not have been 206 // LocationBarViewMac's decorations. The returned NSViews may not have been
203 // positioned yet. 207 // positioned yet.
204 std::vector<NSView*> GetDecorationAccessibilityViews(); 208 std::vector<NSView*> GetDecorationAccessibilityViews();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // The security level of the location bar icon. 302 // The security level of the location bar icon.
299 security_state::SecurityLevel security_level_; 303 security_state::SecurityLevel security_level_;
300 304
301 // Used to schedule a task for the first run info bubble. 305 // Used to schedule a task for the first run info bubble.
302 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 306 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
303 307
304 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 308 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
305 }; 309 };
306 310
307 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 311 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698