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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 1305143008: [Mac] Implement LocationBarViewMac::UpdateLocationBarVisibility() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index 1459ea60f5679c23a6dac863aa92af47f8127bf6..9e7fee57b49be1e6d46d8578e1e462c68b2db5a0 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -38,6 +38,15 @@ class TranslateDecoration;
class ZoomDecoration;
class ZoomDecorationTest;
+namespace chrome {
+
+// Names of the notifications used to indicate whether the location bar should
+// be shown or hidden.
+extern NSString* const kShowToolbarNotification;
+extern NSString* const kHideToolbarNotification;
+
+} // namespace chrome
+
// A C++ bridge class that represents the location bar UI element to
// the portable code. Wires up an OmniboxViewMac instance to
// the location bar text field, which handles most of the work.
@@ -266,6 +275,8 @@ class LocationBarViewMac : public LocationBar,
// Used to change the visibility of the star decoration.
BooleanPrefMember edit_bookmarks_enabled_;
+ bool show_location_bar_;
tapted 2015/09/08 05:55:06 Can you just infer this from [field_ isHidden]?
dominickn 2015/10/09 06:37:02 Done.
+
// Used to schedule a task for the first run info bubble.
base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698