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

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

Issue 77013003: Allows a single tab to be draggable from a maximized browser on ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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 fb7b300fa02953729cddb5c1817e1ef105e4f231..1308d240a57f28d5ff6569fb8f77e5044af05327 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1144,19 +1144,6 @@ void TabStrip::MaybeStartDrag(
}
views::Widget* widget = GetWidget();
-
- // Don't allow detaching from maximized or fullscreen windows (in ash) when
- // all the tabs are selected and there is only one display. Since the window
- // is maximized or fullscreen, we know there are no other tabbed browsers the
- // user can drag to.
- const chrome::HostDesktopType host_desktop_type =
- chrome::GetHostDesktopTypeForNativeView(widget->GetNativeView());
- if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH &&
- (widget->IsMaximized() || widget->IsFullscreen()) &&
- static_cast<int>(tabs.size()) == tab_count() &&
- gfx::Screen::GetScreenFor(widget->GetNativeView())->GetNumDisplays() == 1)
- detach_behavior = TabDragController::NOT_DETACHABLE;
-
#if defined(OS_WIN)
// It doesn't make sense to drag tabs out on Win8's single window Metro mode.
if (win8::IsSingleWindowMetroMode())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698