Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 20 matching lines...) Expand all Loading... | |
| 31 class ManagePasswordsDecoration; | 31 class ManagePasswordsDecoration; |
| 32 class MicSearchDecoration; | 32 class MicSearchDecoration; |
| 33 class PageActionDecoration; | 33 class PageActionDecoration; |
| 34 class Profile; | 34 class Profile; |
| 35 class SelectedKeywordDecoration; | 35 class SelectedKeywordDecoration; |
| 36 class StarDecoration; | 36 class StarDecoration; |
| 37 class TranslateDecoration; | 37 class TranslateDecoration; |
| 38 class ZoomDecoration; | 38 class ZoomDecoration; |
| 39 class ZoomDecorationTest; | 39 class ZoomDecorationTest; |
| 40 | 40 |
| 41 namespace chrome { | |
| 42 | |
| 43 // Names of the notifications used to indicate whether the location bar should | |
| 44 // be shown or hidden. | |
| 45 extern NSString* const kShowToolbarNotification; | |
| 46 extern NSString* const kHideToolbarNotification; | |
| 47 | |
| 48 } // namespace chrome | |
| 49 | |
| 41 // A C++ bridge class that represents the location bar UI element to | 50 // A C++ bridge class that represents the location bar UI element to |
| 42 // the portable code. Wires up an OmniboxViewMac instance to | 51 // the portable code. Wires up an OmniboxViewMac instance to |
| 43 // the location bar text field, which handles most of the work. | 52 // the location bar text field, which handles most of the work. |
| 44 | 53 |
| 45 class LocationBarViewMac : public LocationBar, | 54 class LocationBarViewMac : public LocationBar, |
| 46 public LocationBarTesting, | 55 public LocationBarTesting, |
| 47 public ChromeOmniboxEditController, | 56 public ChromeOmniboxEditController, |
| 48 public SearchModelObserver, | 57 public SearchModelObserver, |
| 49 public ui_zoom::ZoomEventManagerObserver { | 58 public ui_zoom::ZoomEventManagerObserver { |
| 50 public: | 59 public: |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 scoped_ptr<MicSearchDecoration> mic_search_decoration_; | 268 scoped_ptr<MicSearchDecoration> mic_search_decoration_; |
| 260 | 269 |
| 261 // The right-hand-side button to manage passwords associated with a page. | 270 // The right-hand-side button to manage passwords associated with a page. |
| 262 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_; | 271 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_; |
| 263 | 272 |
| 264 Browser* browser_; | 273 Browser* browser_; |
| 265 | 274 |
| 266 // Used to change the visibility of the star decoration. | 275 // Used to change the visibility of the star decoration. |
| 267 BooleanPrefMember edit_bookmarks_enabled_; | 276 BooleanPrefMember edit_bookmarks_enabled_; |
| 268 | 277 |
| 278 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.
| |
| 279 | |
| 269 // Used to schedule a task for the first run info bubble. | 280 // Used to schedule a task for the first run info bubble. |
| 270 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 281 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 271 | 282 |
| 272 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 283 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 273 }; | 284 }; |
| 274 | 285 |
| 275 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 286 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |