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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 243703003: Removes win8_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 6 years, 8 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/tabs/tab.cc ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index de351f57f4eca42fa4c7d3c09eade630fe508b78..0904445148216babf4e93a3354eeba10c21c9f8c 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -59,7 +59,6 @@
#include "ui/gfx/win/hwnd_util.h"
#include "ui/views/widget/monitor_win.h"
#include "ui/views/win/hwnd_util.h"
-#include "win8/util/win8_util.h"
#endif
using base::UserMetricsAction;
@@ -440,10 +439,6 @@ gfx::ImageSkia NewTabButton::GetBackgroundImage(
background_id = IDR_THEME_TAB_BACKGROUND_V;
} else if (tab_strip_->controller()->IsIncognito()) {
background_id = IDR_THEME_TAB_BACKGROUND_INCOGNITO;
-#if defined(OS_WIN)
- } else if (win8::IsSingleWindowMetroMode()) {
- background_id = IDR_THEME_TAB_BACKGROUND_V;
-#endif
} else {
background_id = IDR_THEME_TAB_BACKGROUND;
}
@@ -1141,11 +1136,6 @@ void TabStrip::MaybeStartDrag(
move_behavior = TabDragController::MOVE_VISIBILE_TABS;
}
-#if defined(OS_WIN)
- // It doesn't make sense to drag tabs out on Win8's single window Metro mode.
- if (win8::IsSingleWindowMetroMode())
- detach_behavior = TabDragController::NOT_DETACHABLE;
-#endif
drag_controller_.reset(new TabDragController);
drag_controller_->Init(
this, tab, tabs, gfx::Point(x, y), event.x(), selection_model,
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698