OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void SaveStateToContents(TabContents* contents); | 49 virtual void SaveStateToContents(TabContents* contents); |
50 virtual void Revert(); | 50 virtual void Revert(); |
51 virtual AutocompleteEditView* location_entry() { | 51 virtual AutocompleteEditView* location_entry() { |
52 return edit_view_.get(); | 52 return edit_view_.get(); |
53 } | 53 } |
54 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } | 54 virtual LocationBarTesting* GetLocationBarForTesting() { return this; } |
55 | 55 |
56 // Overriden from LocationBarTesting: | 56 // Overriden from LocationBarTesting: |
57 virtual int PageActionCount(); | 57 virtual int PageActionCount(); |
58 virtual int PageActionVisibleCount(); | 58 virtual int PageActionVisibleCount(); |
| 59 virtual ExtensionAction* GetPageAction(size_t index); |
| 60 virtual ExtensionAction* GetVisiblePageAction(size_t index); |
| 61 virtual void TestPageActionPressed(size_t index); |
59 | 62 |
60 // Updates the location bar. Resets the bar's permanent text and | 63 // Updates the location bar. Resets the bar's permanent text and |
61 // security style, and if |should_restore_state| is true, restores | 64 // security style, and if |should_restore_state| is true, restores |
62 // saved state from the tab (for tab switching). | 65 // saved state from the tab (for tab switching). |
63 void Update(const TabContents* tab, bool should_restore_state); | 66 void Update(const TabContents* tab, bool should_restore_state); |
64 | 67 |
65 virtual void OnAutocompleteAccept(const GURL& url, | 68 virtual void OnAutocompleteAccept(const GURL& url, |
66 WindowOpenDisposition disposition, | 69 WindowOpenDisposition disposition, |
67 PageTransition::Type transition, | 70 PageTransition::Type transition, |
68 const GURL& alternate_nav_url); | 71 const GURL& alternate_nav_url); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Image used in drawing keyword hint. | 113 // Image used in drawing keyword hint. |
111 scoped_nsobject<NSImage> tab_button_image_; | 114 scoped_nsobject<NSImage> tab_button_image_; |
112 | 115 |
113 // The transition type to use for the navigation. | 116 // The transition type to use for the navigation. |
114 PageTransition::Type transition_; | 117 PageTransition::Type transition_; |
115 | 118 |
116 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 119 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
117 }; | 120 }; |
118 | 121 |
119 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 122 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |