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

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

Issue 272543003: Remove unused code for the metro window switcher button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 764eaa212170b85da048d3edd374b22ae445fc80..52f80244925bf80ecb624317a55812498c5af8e4 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -248,10 +248,6 @@ class BrowserViewLayoutDelegateImpl : public BrowserViewLayoutDelegate {
return browser_view_->contents_web_view_;
}
- virtual views::View* GetWindowSwitcherButton() const OVERRIDE {
- return browser_view_->window_switcher_button();
- }
-
virtual bool DownloadShelfNeedsLayout() const OVERRIDE {
DownloadShelfView* download_shelf = browser_view_->download_shelf_.get();
// Re-layout the shelf either if it is visible or if its close animation
@@ -394,7 +390,6 @@ BrowserView::BrowserView()
top_container_(NULL),
tabstrip_(NULL),
toolbar_(NULL),
- window_switcher_button_(NULL),
find_bar_host_view_(NULL),
infobar_container_(NULL),
contents_web_view_(NULL),
@@ -938,12 +933,6 @@ void BrowserView::RestoreFocus() {
selected_web_contents->RestoreFocus();
}
-void BrowserView::SetWindowSwitcherButton(views::Button* button) {
- if (window_switcher_button_)
- RemoveChildView(window_switcher_button_);
- window_switcher_button_ = button;
-}
-
void BrowserView::FullscreenStateChanged() {
CHECK(!IsFullscreen());
ProcessFullscreen(false, NORMAL_FULLSCREEN, GURL(), FEB_TYPE_NONE);
@@ -1962,9 +1951,6 @@ void BrowserView::InitViews() {
find_bar_host_view_ = new View();
AddChildView(find_bar_host_view_);
- if (window_switcher_button_)
- AddChildView(window_switcher_button_);
-
immersive_mode_controller_->Init(this);
BrowserViewLayout* browser_view_layout = new BrowserViewLayout;
« 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