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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual GURL GetDestinationURL() const OVERRIDE; | 61 virtual GURL GetDestinationURL() const OVERRIDE; |
62 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; | 62 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; |
63 virtual content::PageTransition GetPageTransition() const OVERRIDE; | 63 virtual content::PageTransition GetPageTransition() const OVERRIDE; |
64 virtual void AcceptInput() OVERRIDE; | 64 virtual void AcceptInput() OVERRIDE; |
65 virtual void FocusLocation(bool select_all) OVERRIDE; | 65 virtual void FocusLocation(bool select_all) OVERRIDE; |
66 virtual void FocusSearch() OVERRIDE; | 66 virtual void FocusSearch() OVERRIDE; |
67 virtual void UpdateContentSettingsIcons() OVERRIDE; | 67 virtual void UpdateContentSettingsIcons() OVERRIDE; |
68 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE; | 68 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE; |
69 virtual void UpdatePageActions() OVERRIDE; | 69 virtual void UpdatePageActions() OVERRIDE; |
70 virtual void InvalidatePageActions() OVERRIDE; | 70 virtual void InvalidatePageActions() OVERRIDE; |
| 71 virtual bool ShowPageActionPopup(const extensions::Extension* extension, |
| 72 bool grant_active_tab) OVERRIDE; |
71 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; | 73 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; |
72 virtual void UpdateGeneratedCreditCardView() OVERRIDE; | 74 virtual void UpdateGeneratedCreditCardView() OVERRIDE; |
73 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; | 75 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; |
74 virtual void Revert() OVERRIDE; | 76 virtual void Revert() OVERRIDE; |
75 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; | 77 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; |
76 virtual OmniboxView* GetOmniboxView() OVERRIDE; | 78 virtual OmniboxView* GetOmniboxView() OVERRIDE; |
77 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; | 79 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; |
78 | 80 |
79 // Overridden from LocationBarTesting: | 81 // Overridden from LocationBarTesting: |
80 virtual int PageActionCount() OVERRIDE; | 82 virtual int PageActionCount() OVERRIDE; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 virtual void Observe(int type, | 173 virtual void Observe(int type, |
172 const content::NotificationSource& source, | 174 const content::NotificationSource& source, |
173 const content::NotificationDetails& details) OVERRIDE; | 175 const content::NotificationDetails& details) OVERRIDE; |
174 | 176 |
175 // SearchModelObserver: | 177 // SearchModelObserver: |
176 virtual void ModelChanged(const SearchModel::State& old_state, | 178 virtual void ModelChanged(const SearchModel::State& old_state, |
177 const SearchModel::State& new_state) OVERRIDE; | 179 const SearchModel::State& new_state) OVERRIDE; |
178 | 180 |
179 Browser* browser() const { return browser_; } | 181 Browser* browser() const { return browser_; } |
180 | 182 |
181 // Activates the page action for the extension that has the given id. | |
182 void ActivatePageAction(const std::string& extension_id); | |
183 | |
184 protected: | 183 protected: |
185 // OmniboxEditController: | 184 // OmniboxEditController: |
186 virtual void HideURL() OVERRIDE; | 185 virtual void HideURL() OVERRIDE; |
187 | 186 |
188 private: | 187 private: |
189 friend ZoomDecorationTest; | 188 friend ZoomDecorationTest; |
190 | 189 |
191 // Posts |notification| to the default notification center. | 190 // Posts |notification| to the default notification center. |
192 void PostNotification(NSString* notification); | 191 void PostNotification(NSString* notification); |
193 | 192 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Used to schedule a task for the first run info bubble. | 282 // Used to schedule a task for the first run info bubble. |
284 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 283 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
285 | 284 |
286 // Used to change the visibility of the star decoration. | 285 // Used to change the visibility of the star decoration. |
287 BooleanPrefMember edit_bookmarks_enabled_; | 286 BooleanPrefMember edit_bookmarks_enabled_; |
288 | 287 |
289 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 288 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
290 }; | 289 }; |
291 | 290 |
292 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 291 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |