| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void UpdatePageActions(); | 65 virtual void UpdatePageActions(); |
| 66 virtual void InvalidatePageActions(); | 66 virtual void InvalidatePageActions(); |
| 67 virtual void SaveStateToContents(TabContents* contents); | 67 virtual void SaveStateToContents(TabContents* contents); |
| 68 virtual void Revert(); | 68 virtual void Revert(); |
| 69 virtual const AutocompleteEditView* location_entry() const { | 69 virtual const AutocompleteEditView* location_entry() const { |
| 70 return edit_view_.get(); | 70 return edit_view_.get(); |
| 71 } | 71 } |
| 72 virtual AutocompleteEditView* location_entry() { | 72 virtual AutocompleteEditView* location_entry() { |
| 73 return edit_view_.get(); | 73 return edit_view_.get(); |
| 74 } | 74 } |
| 75 virtual void PushForceHidden() {} | |
| 76 virtual void PopForceHidden() {} | |
| 77 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } | 75 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } |
| 78 | 76 |
| 79 // Overridden from LocationBarTesting: | 77 // Overridden from LocationBarTesting: |
| 80 virtual int PageActionCount(); | 78 virtual int PageActionCount(); |
| 81 virtual int PageActionVisibleCount(); | 79 virtual int PageActionVisibleCount(); |
| 82 virtual ExtensionAction* GetPageAction(size_t index); | 80 virtual ExtensionAction* GetPageAction(size_t index); |
| 83 virtual ExtensionAction* GetVisiblePageAction(size_t index); | 81 virtual ExtensionAction* GetVisiblePageAction(size_t index); |
| 84 virtual void TestPageActionPressed(size_t index); | 82 virtual void TestPageActionPressed(size_t index); |
| 85 | 83 |
| 86 // Set/Get the editable state of the field. | 84 // Set/Get the editable state of the field. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Used to register for notifications received by NotificationObserver. | 203 // Used to register for notifications received by NotificationObserver. |
| 206 NotificationRegistrar registrar_; | 204 NotificationRegistrar registrar_; |
| 207 | 205 |
| 208 // Used to schedule a task for the first run info bubble. | 206 // Used to schedule a task for the first run info bubble. |
| 209 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; | 207 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
| 210 | 208 |
| 211 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 209 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 212 }; | 210 }; |
| 213 | 211 |
| 214 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 212 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |