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

Side by Side Diff: ash/common/wm/window_cycle_list.cc

Issue 2342673002: Remove blur from CrOS alt-tab shield (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/wm/window_cycle_list.h" 5 #include "ash/common/wm/window_cycle_list.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "ash/common/ash_switches.h" 10 #include "ash/common/ash_switches.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 class WindowCycleView : public views::WidgetDelegateView { 248 class WindowCycleView : public views::WidgetDelegateView {
249 public: 249 public:
250 WindowCycleView(const WindowCycleList::WindowList& windows, 250 WindowCycleView(const WindowCycleList::WindowList& windows,
251 WindowCycleController::Direction initial_direction) 251 WindowCycleController::Direction initial_direction)
252 : initial_direction_(initial_direction), 252 : initial_direction_(initial_direction),
253 mirror_container_(new views::View()), 253 mirror_container_(new views::View()),
254 highlight_view_(new views::View()), 254 highlight_view_(new views::View()),
255 target_window_(nullptr) { 255 target_window_(nullptr) {
256 DCHECK(!windows.empty()); 256 DCHECK(!windows.empty());
257 SetPaintToLayer(true); 257 SetPaintToLayer(true);
258 layer()->SetBackgroundBlur(4);
259 layer()->SetFillsBoundsOpaquely(false); 258 layer()->SetFillsBoundsOpaquely(false);
260 layer()->SetMasksToBounds(true); 259 layer()->SetMasksToBounds(true);
261 layer()->SetOpacity(0.0); 260 layer()->SetOpacity(0.0);
262 { 261 {
263 ui::ScopedLayerAnimationSettings animate_fade(layer()->GetAnimator()); 262 ui::ScopedLayerAnimationSettings animate_fade(layer()->GetAnimator());
264 animate_fade.SetTransitionDuration( 263 animate_fade.SetTransitionDuration(
265 base::TimeDelta::FromMilliseconds(100)); 264 base::TimeDelta::FromMilliseconds(100));
266 layer()->SetOpacity(1.0); 265 layer()->SetOpacity(1.0);
267 } 266 }
268 267
269 set_background(views::Background::CreateSolidBackground( 268 set_background(views::Background::CreateSolidBackground(
270 SkColorSetA(SK_ColorBLACK, 0xCC))); 269 SkColorSetA(SK_ColorBLACK, 0xE6)));
271 270
272 const int kInsideBorderPaddingDip = 64; 271 const int kInsideBorderPaddingDip = 64;
273 const int kBetweenChildPaddingDip = 10; 272 const int kBetweenChildPaddingDip = 10;
274 views::BoxLayout* layout = new views::BoxLayout( 273 views::BoxLayout* layout = new views::BoxLayout(
275 views::BoxLayout::kHorizontal, kInsideBorderPaddingDip, 274 views::BoxLayout::kHorizontal, kInsideBorderPaddingDip,
276 kInsideBorderPaddingDip, kBetweenChildPaddingDip); 275 kInsideBorderPaddingDip, kBetweenChildPaddingDip);
277 layout->set_cross_axis_alignment( 276 layout->set_cross_axis_alignment(
278 views::BoxLayout::CROSS_AXIS_ALIGNMENT_START); 277 views::BoxLayout::CROSS_AXIS_ALIGNMENT_START);
279 mirror_container_->SetLayoutManager(layout); 278 mirror_container_->SetLayoutManager(layout);
280 mirror_container_->SetPaintToLayer(true); 279 mirror_container_->SetPaintToLayer(true);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 widget_rect.set_y((widget_rect.height() - widget_height) / 2); 621 widget_rect.set_y((widget_rect.height() - widget_height) / 2);
623 widget_rect.set_height(widget_height); 622 widget_rect.set_height(widget_height);
624 widget->SetBounds(widget_rect); 623 widget->SetBounds(widget_rect);
625 widget->Show(); 624 widget->Show();
626 widget->SetCapture(cycle_view_); 625 widget->SetCapture(cycle_view_);
627 widget->set_auto_release_capture(false); 626 widget->set_auto_release_capture(false);
628 cycle_ui_widget_ = widget; 627 cycle_ui_widget_ = widget;
629 } 628 }
630 629
631 } // namespace ash 630 } // namespace ash
OLDNEW
« 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