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 10 matching lines...) Expand all Loading... |
21 #include "components/content_settings/core/common/content_settings_types.h" | 21 #include "components/content_settings/core/common/content_settings_types.h" |
22 | 22 |
23 @class AutocompleteTextField; | 23 @class AutocompleteTextField; |
24 class CommandUpdater; | 24 class CommandUpdater; |
25 class ContentSettingDecoration; | 25 class ContentSettingDecoration; |
26 class EVBubbleDecoration; | 26 class EVBubbleDecoration; |
27 class GeneratedCreditCardDecoration; | 27 class GeneratedCreditCardDecoration; |
28 class KeywordHintDecoration; | 28 class KeywordHintDecoration; |
29 class LocationBarDecoration; | 29 class LocationBarDecoration; |
30 class LocationIconDecoration; | 30 class LocationIconDecoration; |
| 31 class ManagePasswordsDecoration; |
31 class MicSearchDecoration; | 32 class MicSearchDecoration; |
32 class OriginChipDecoration; | 33 class OriginChipDecoration; |
33 class PageActionDecoration; | 34 class PageActionDecoration; |
34 class Profile; | 35 class Profile; |
35 class SearchButtonDecoration; | 36 class SearchButtonDecoration; |
36 class SelectedKeywordDecoration; | 37 class SelectedKeywordDecoration; |
37 class StarDecoration; | 38 class StarDecoration; |
38 class TranslateDecoration; | 39 class TranslateDecoration; |
39 class ZoomDecoration; | 40 class ZoomDecoration; |
40 class ZoomDecorationTest; | 41 class ZoomDecorationTest; |
(...skipping 16 matching lines...) Expand all Loading... |
57 | 58 |
58 // Overridden from LocationBar: | 59 // Overridden from LocationBar: |
59 virtual void ShowFirstRunBubble() OVERRIDE; | 60 virtual void ShowFirstRunBubble() OVERRIDE; |
60 virtual GURL GetDestinationURL() const OVERRIDE; | 61 virtual GURL GetDestinationURL() const OVERRIDE; |
61 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; | 62 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; |
62 virtual content::PageTransition GetPageTransition() const OVERRIDE; | 63 virtual content::PageTransition GetPageTransition() const OVERRIDE; |
63 virtual void AcceptInput() OVERRIDE; | 64 virtual void AcceptInput() OVERRIDE; |
64 virtual void FocusLocation(bool select_all) OVERRIDE; | 65 virtual void FocusLocation(bool select_all) OVERRIDE; |
65 virtual void FocusSearch() OVERRIDE; | 66 virtual void FocusSearch() OVERRIDE; |
66 virtual void UpdateContentSettingsIcons() OVERRIDE; | 67 virtual void UpdateContentSettingsIcons() OVERRIDE; |
67 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE {}; | 68 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE; |
68 virtual void UpdatePageActions() OVERRIDE; | 69 virtual void UpdatePageActions() OVERRIDE; |
69 virtual void InvalidatePageActions() OVERRIDE; | 70 virtual void InvalidatePageActions() OVERRIDE; |
70 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; | 71 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; |
71 virtual void UpdateGeneratedCreditCardView() OVERRIDE; | 72 virtual void UpdateGeneratedCreditCardView() OVERRIDE; |
72 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; | 73 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; |
73 virtual void Revert() OVERRIDE; | 74 virtual void Revert() OVERRIDE; |
74 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; | 75 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; |
75 virtual OmniboxView* GetOmniboxView() OVERRIDE; | 76 virtual OmniboxView* GetOmniboxView() OVERRIDE; |
76 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; | 77 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; |
77 | 78 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 // Generated CC hint decoration. | 261 // Generated CC hint decoration. |
261 scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_; | 262 scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_; |
262 | 263 |
263 // The right-hand-side search button that is shown on search result pages. | 264 // The right-hand-side search button that is shown on search result pages. |
264 scoped_ptr<SearchButtonDecoration> search_button_decoration_; | 265 scoped_ptr<SearchButtonDecoration> search_button_decoration_; |
265 | 266 |
266 // The left-hand-side origin chip. | 267 // The left-hand-side origin chip. |
267 scoped_ptr<OriginChipDecoration> origin_chip_decoration_; | 268 scoped_ptr<OriginChipDecoration> origin_chip_decoration_; |
268 | 269 |
| 270 // The right-hand-side button to manage passwords associated with a page. |
| 271 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_; |
| 272 |
269 Browser* browser_; | 273 Browser* browser_; |
270 | 274 |
271 // Used to register for notifications received by NotificationObserver. | 275 // Used to register for notifications received by NotificationObserver. |
272 content::NotificationRegistrar registrar_; | 276 content::NotificationRegistrar registrar_; |
273 | 277 |
274 // Used to schedule a task for the first run info bubble. | 278 // Used to schedule a task for the first run info bubble. |
275 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 279 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
276 | 280 |
277 // Used to change the visibility of the star decoration. | 281 // Used to change the visibility of the star decoration. |
278 BooleanPrefMember edit_bookmarks_enabled_; | 282 BooleanPrefMember edit_bookmarks_enabled_; |
279 | 283 |
280 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 284 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
281 }; | 285 }; |
282 | 286 |
283 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 287 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |