Chromium Code Reviews

Unified Diff: chrome/browser/views/toolbar_view.h

Issue 53096: Broadcast a state change notification from the toolbar to the RenderWidgetHos... (Closed) Base URL: svn://chrome-svn/chrome/branches/release_154.next/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/view_ids.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.h
===================================================================
--- chrome/browser/views/toolbar_view.h (revision 12533)
+++ chrome/browser/views/toolbar_view.h (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/views/dom_view.h"
#include "chrome/browser/views/go_button.h"
#include "chrome/browser/views/location_bar_view.h"
+#include "chrome/common/notification_service.h"
#include "chrome/common/pref_member.h"
#include "chrome/views/menu.h"
#include "chrome/views/menu_button.h"
@@ -37,7 +38,8 @@
public views::ViewMenuDelegate,
public views::DragController,
public LocationBarView::Delegate,
- public NotificationObserver {
+ public NotificationObserver,
+ public views::BaseButton::ButtonListener {
public:
BrowserToolbarView(CommandController* controller, Browser* browser);
virtual ~BrowserToolbarView();
@@ -112,6 +114,8 @@
const NotificationSource& source,
const NotificationDetails& details);
+ virtual void ButtonPressed(views::BaseButton* sender);
+
// DragController methods for the star button. These allow the drag if the
// user hasn't edited the text, the url is valid and should be displayed.
virtual void WriteDragData(View* sender,
@@ -171,6 +175,7 @@
views::Button* home_;
ToolbarStarToggle* star_;
LocationBarView* location_bar_;
+ views::ToggleButton* threedee_;
GoButton* go_;
views::MenuButton* page_menu_;
views::MenuButton* app_menu_;
« no previous file with comments | « chrome/browser/view_ids.h ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine