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

Unified Diff: chrome/browser/ui/views/frame/browser_view.h

Issue 10388156: Adding the flip windows button to the browser window (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.h
===================================================================
--- chrome/browser/ui/views/frame/browser_view.h (revision 136912)
+++ chrome/browser/ui/views/frame/browser_view.h (working copy)
@@ -24,6 +24,7 @@
#include "ui/base/models/simple_menu_model.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/sys_color_change_listener.h"
+#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/single_split_view_listener.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/window/client_view.h"
@@ -79,6 +80,7 @@
public views::ClientView,
public InfoBarContainer::Delegate,
public views::SingleSplitViewListener,
+ public views::ButtonListener,
public gfx::SysColorChangeListener {
public:
// The browser view's class name.
@@ -381,6 +383,10 @@
// views::SingleSplitViewListener overrides:
virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE;
+ // views::ImageButton override:
+ virtual void ButtonPressed(views::Button* sender,
+ const views::Event& event) OVERRIDE;
+
// gfx::ScopedSysColorChangeListener overrides:
virtual void OnSysColorChange() OVERRIDE;
@@ -583,6 +589,11 @@
// The Toolbar containing the navigation buttons, menus and the address bar.
ToolbarView* toolbar_;
+ // This button sits next to the tabs on the right hand side and it is used
+ // only in windows metro metro mode to allow the user to flip among browser
+ // windows.
+ views::ImageButton* window_switcher_button_;
+
// The Bookmark Bar View for this window. Lazily created.
scoped_ptr<BookmarkBarView> bookmark_bar_view_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | chrome/browser/ui/views/frame/browser_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698