| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual void Observe(int type, | 155 virtual void Observe(int type, |
| 156 const content::NotificationSource& source, | 156 const content::NotificationSource& source, |
| 157 const content::NotificationDetails& details) OVERRIDE; | 157 const content::NotificationDetails& details) OVERRIDE; |
| 158 | 158 |
| 159 // SearchModelObserver: | 159 // SearchModelObserver: |
| 160 virtual void ModelChanged(const SearchModel::State& old_state, | 160 virtual void ModelChanged(const SearchModel::State& old_state, |
| 161 const SearchModel::State& new_state) OVERRIDE; | 161 const SearchModel::State& new_state) OVERRIDE; |
| 162 | 162 |
| 163 Browser* browser() const { return browser_; } | 163 Browser* browser() const { return browser_; } |
| 164 | 164 |
| 165 // Activates the page action for the extension that has the given id. |
| 166 void ActivatePageAction(const std::string& extension_id); |
| 167 |
| 165 private: | 168 private: |
| 166 friend ZoomDecorationTest; | 169 friend ZoomDecorationTest; |
| 167 | 170 |
| 168 // Posts |notification| to the default notification center. | 171 // Posts |notification| to the default notification center. |
| 169 void PostNotification(NSString* notification); | 172 void PostNotification(NSString* notification); |
| 170 | 173 |
| 171 // Return the decoration for |page_action|. | 174 // Return the decoration for |page_action|. |
| 172 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action); | 175 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action); |
| 173 | 176 |
| 174 // Clear the page-action decorations. | 177 // Clear the page-action decorations. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Used to schedule a task for the first run info bubble. | 249 // Used to schedule a task for the first run info bubble. |
| 247 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 250 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 248 | 251 |
| 249 // Used to change the visibility of the star decoration. | 252 // Used to change the visibility of the star decoration. |
| 250 BooleanPrefMember edit_bookmarks_enabled_; | 253 BooleanPrefMember edit_bookmarks_enabled_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 255 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 258 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |