Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Side by Side Diff: chrome/browser/cocoa/location_bar_view_mac.h

Issue 347016: Implement page action popups. (Closed)
Patch Set: fixed failing test Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/browser_list.h ('k') | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser_list.h ('k') | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698