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

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

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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 137335)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -297,6 +297,7 @@
active_bookmark_bar_(NULL),
tabstrip_(NULL),
toolbar_(NULL),
+ window_switcher_button_(NULL),
infobar_container_(NULL),
contents_container_(NULL),
devtools_container_(NULL),
@@ -798,6 +799,13 @@
selected_web_contents->GetView()->RestoreFocus();
}
+void BrowserView::SetWindowSwitcherButton(views::Button* button) {
+ if (window_switcher_button_)
+ RemoveChildView(window_switcher_button_);
+ window_switcher_button_ = button;
+ AddChildView(button);
+}
+
LocationBar* BrowserView::GetLocationBar() const {
return GetLocationBarView();
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698