| 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 b383490265cf5b56b3acfd268276c884938f810f..31f9eaa40a621705ea8024d37d0f2be343b4a800 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| @@ -595,7 +595,7 @@ TabStrip::TabStrip(TabStripController* controller)
|
| adjust_layout_(false),
|
| reset_to_shrink_on_exit_(false),
|
| mouse_move_count_(0),
|
| - immersive_style_(false) {
|
| + offscreen_(false) {
|
| Init();
|
| SetEventTargeter(
|
| std::unique_ptr<views::ViewTargeter>(new views::ViewTargeter(this)));
|
| @@ -1019,12 +1019,6 @@ void TabStrip::SetBackgroundOffset(const gfx::Point& offset) {
|
| newtab_button_->set_background_offset(offset);
|
| }
|
|
|
| -void TabStrip::SetImmersiveStyle(bool enable) {
|
| - if (immersive_style_ == enable)
|
| - return;
|
| - immersive_style_ = enable;
|
| -}
|
| -
|
| SkAlpha TabStrip::GetInactiveAlpha(bool for_new_tab_button) const {
|
| #if defined(USE_ASH)
|
| static const SkAlpha kInactiveTabAlphaAsh = 230;
|
| @@ -1166,10 +1160,6 @@ void TabStrip::MaybeStartDrag(
|
| return;
|
| }
|
|
|
| - // Do not do any dragging of tabs when using the super short immersive style.
|
| - if (IsImmersiveStyle())
|
| - return;
|
| -
|
| int model_index = GetModelIndexOfTab(tab);
|
| if (!IsValidModelIndex(model_index)) {
|
| CHECK(false);
|
| @@ -1309,18 +1299,14 @@ bool TabStrip::ShouldPaintTab(
|
| bool TabStrip::CanPaintThrobberToLayer() const {
|
| // Disable layer-painting of throbbers if dragging, if any tab animation is in
|
| // progress, or if stacked tabs are enabled. Also disable in fullscreen: when
|
| - // "immersive" the tab strip could be sliding in or out while transitioning to
|
| - // or away from |immersive_style_| and, for other modes, there's no tab strip.
|
| + // "immersive" the tab strip could be sliding in or out; for other modes,
|
| + // there's no tab strip.
|
| const bool dragging = drag_controller_ && drag_controller_->started_drag();
|
| const views::Widget* widget = GetWidget();
|
| return widget && !touch_layout_ && !dragging && !IsAnimating() &&
|
| !widget->IsFullscreen();
|
| }
|
|
|
| -bool TabStrip::IsImmersiveStyle() const {
|
| - return immersive_style_;
|
| -}
|
| -
|
| SkColor TabStrip::GetToolbarTopSeparatorColor() const {
|
| return controller_->GetToolbarTopSeparatorColor();
|
| }
|
| @@ -1516,8 +1502,7 @@ gfx::Size TabStrip::GetPreferredSize() const {
|
| std::max(needed_tab_width, min_selected_width), largest_min_tab_width);
|
| }
|
| return gfx::Size(needed_tab_width + GetNewTabButtonWidth(),
|
| - immersive_style_ ? Tab::GetImmersiveHeight()
|
| - : Tab::GetMinimumInactiveSize().height());
|
| + offscreen_ ? 0 : Tab::GetMinimumInactiveSize().height());
|
| }
|
|
|
| void TabStrip::OnDragEntered(const DropTargetEvent& event) {
|
| @@ -1617,11 +1602,6 @@ views::View* TabStrip::GetTooltipHandlerForPoint(const gfx::Point& point) {
|
| return this;
|
| }
|
|
|
| -// static
|
| -int TabStrip::GetImmersiveHeight() {
|
| - return Tab::GetImmersiveHeight();
|
| -}
|
| -
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // TabStrip, private:
|
|
|
|
|