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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 virtual void EndOriginChipAnimations(bool cancel_fade) OVERRIDE; | 159 virtual void EndOriginChipAnimations(bool cancel_fade) OVERRIDE; |
160 virtual InstantController* GetInstant() OVERRIDE; | 160 virtual InstantController* GetInstant() OVERRIDE; |
161 virtual content::WebContents* GetWebContents() OVERRIDE; | 161 virtual content::WebContents* GetWebContents() OVERRIDE; |
162 virtual ToolbarModel* GetToolbarModel() OVERRIDE; | 162 virtual ToolbarModel* GetToolbarModel() OVERRIDE; |
163 virtual const ToolbarModel* GetToolbarModel() const OVERRIDE; | 163 virtual const ToolbarModel* GetToolbarModel() const OVERRIDE; |
164 | 164 |
165 NSImage* GetKeywordImage(const base::string16& keyword); | 165 NSImage* GetKeywordImage(const base::string16& keyword); |
166 | 166 |
167 AutocompleteTextField* GetAutocompleteTextField() { return field_; } | 167 AutocompleteTextField* GetAutocompleteTextField() { return field_; } |
168 | 168 |
| 169 ManagePasswordsDecoration* manage_passwords_decoration() { |
| 170 return manage_passwords_decoration_.get(); |
| 171 } |
169 | 172 |
170 // content::NotificationObserver: | 173 // content::NotificationObserver: |
171 virtual void Observe(int type, | 174 virtual void Observe(int type, |
172 const content::NotificationSource& source, | 175 const content::NotificationSource& source, |
173 const content::NotificationDetails& details) OVERRIDE; | 176 const content::NotificationDetails& details) OVERRIDE; |
174 | 177 |
175 // SearchModelObserver: | 178 // SearchModelObserver: |
176 virtual void ModelChanged(const SearchModel::State& old_state, | 179 virtual void ModelChanged(const SearchModel::State& old_state, |
177 const SearchModel::State& new_state) OVERRIDE; | 180 const SearchModel::State& new_state) OVERRIDE; |
178 | 181 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // Used to schedule a task for the first run info bubble. | 285 // Used to schedule a task for the first run info bubble. |
283 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 286 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
284 | 287 |
285 // Used to change the visibility of the star decoration. | 288 // Used to change the visibility of the star decoration. |
286 BooleanPrefMember edit_bookmarks_enabled_; | 289 BooleanPrefMember edit_bookmarks_enabled_; |
287 | 290 |
288 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 291 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
289 }; | 292 }; |
290 | 293 |
291 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 294 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |