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

Side by Side Diff: chrome/browser/ui/views/toolbar_view.h

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add 'Try again' button; rename enum names Created 7 years, 2 months 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
OLDNEW
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_VIEWS_TOOLBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void AddMenuListener(views::MenuListener* listener); 69 void AddMenuListener(views::MenuListener* listener);
70 70
71 // Remove a menu listener. 71 // Remove a menu listener.
72 void RemoveMenuListener(views::MenuListener* listener); 72 void RemoveMenuListener(views::MenuListener* listener);
73 73
74 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel); 74 virtual bool GetAcceleratorInfo(int id, ui::Accelerator* accel);
75 75
76 // Returns the view to which the bookmark bubble should be anchored. 76 // Returns the view to which the bookmark bubble should be anchored.
77 views::View* GetBookmarkBubbleAnchor(); 77 views::View* GetBookmarkBubbleAnchor();
78 78
79 // Returns the view to which the Translate bubble should be anchored.
80 views::View* GetTranslateBubbleAnchor();
81
79 // Accessors... 82 // Accessors...
80 Browser* browser() const { return browser_; } 83 Browser* browser() const { return browser_; }
81 BrowserActionsContainer* browser_actions() const { return browser_actions_; } 84 BrowserActionsContainer* browser_actions() const { return browser_actions_; }
82 ReloadButton* reload_button() const { return reload_; } 85 ReloadButton* reload_button() const { return reload_; }
83 LocationBarView* location_bar() const { return location_bar_; } 86 LocationBarView* location_bar() const { return location_bar_; }
84 views::MenuButton* app_menu() const; 87 views::MenuButton* app_menu() const;
85 88
86 // Overridden from AccessiblePaneView 89 // Overridden from AccessiblePaneView
87 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE; 90 virtual bool SetPaneFocus(View* initial_focus) OVERRIDE;
88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 91 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 222
220 // A list of listeners to call when the menu opens. 223 // A list of listeners to call when the menu opens.
221 ObserverList<views::MenuListener> menu_listeners_; 224 ObserverList<views::MenuListener> menu_listeners_;
222 225
223 content::NotificationRegistrar registrar_; 226 content::NotificationRegistrar registrar_;
224 227
225 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); 228 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView);
226 }; 229 };
227 230
228 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ 231 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698