| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual string16 GetTitle() const; | 140 virtual string16 GetTitle() const; |
| 141 virtual InstantController* GetInstant(); | 141 virtual InstantController* GetInstant(); |
| 142 virtual TabContentsWrapper* GetTabContentsWrapper() const; | 142 virtual TabContentsWrapper* GetTabContentsWrapper() const; |
| 143 | 143 |
| 144 NSImage* GetKeywordImage(const string16& keyword); | 144 NSImage* GetKeywordImage(const string16& keyword); |
| 145 | 145 |
| 146 AutocompleteTextField* GetAutocompleteTextField() { return field_; } | 146 AutocompleteTextField* GetAutocompleteTextField() { return field_; } |
| 147 | 147 |
| 148 | 148 |
| 149 // Overridden from NotificationObserver. | 149 // Overridden from NotificationObserver. |
| 150 virtual void Observe(NotificationType type, | 150 virtual void Observe(int type, |
| 151 const NotificationSource& source, | 151 const NotificationSource& source, |
| 152 const NotificationDetails& details); | 152 const NotificationDetails& details); |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 // Posts |notification| to the default notification center. | 155 // Posts |notification| to the default notification center. |
| 156 void PostNotification(NSString* notification); | 156 void PostNotification(NSString* notification); |
| 157 | 157 |
| 158 // Return the decoration for |page_action|. | 158 // Return the decoration for |page_action|. |
| 159 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action); | 159 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action); |
| 160 | 160 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // Used to schedule a task for the first run info bubble. | 225 // Used to schedule a task for the first run info bubble. |
| 226 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; | 226 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
| 227 | 227 |
| 228 // Used to change the visibility of the star decoration. | 228 // Used to change the visibility of the star decoration. |
| 229 BooleanPrefMember edit_bookmarks_enabled_; | 229 BooleanPrefMember edit_bookmarks_enabled_; |
| 230 | 230 |
| 231 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 231 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 234 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |