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

Side by Side Diff: ash/system/tray/tray_background_view.cc

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/system/tray/tray_background_view.h" 5 #include "ash/system/tray/tray_background_view.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/screen_util.h" 8 #include "ash/screen_util.h"
9 #include "ash/shelf/shelf_layout_manager.h" 9 #include "ash/shelf/shelf_layout_manager.h"
10 #include "ash/shelf/shelf_widget.h" 10 #include "ash/shelf/shelf_widget.h"
(...skipping 20 matching lines...) Expand all
31 #include "ui/gfx/canvas.h" 31 #include "ui/gfx/canvas.h"
32 #include "ui/gfx/geometry/rect.h" 32 #include "ui/gfx/geometry/rect.h"
33 #include "ui/gfx/image/image_skia.h" 33 #include "ui/gfx/image/image_skia.h"
34 #include "ui/gfx/image/image_skia_operations.h" 34 #include "ui/gfx/image/image_skia_operations.h"
35 #include "ui/gfx/nine_image_painter.h" 35 #include "ui/gfx/nine_image_painter.h"
36 #include "ui/gfx/screen.h" 36 #include "ui/gfx/screen.h"
37 #include "ui/gfx/skia_util.h" 37 #include "ui/gfx/skia_util.h"
38 #include "ui/gfx/transform.h" 38 #include "ui/gfx/transform.h"
39 #include "ui/views/background.h" 39 #include "ui/views/background.h"
40 #include "ui/views/layout/box_layout.h" 40 #include "ui/views/layout/box_layout.h"
41 #include "ui/wm/core/window_animations.h"
41 42
42 namespace { 43 namespace {
43 44
44 const int kTrayBackgroundAlpha = 100; 45 const int kTrayBackgroundAlpha = 100;
45 const int kTrayBackgroundHoverAlpha = 150; 46 const int kTrayBackgroundHoverAlpha = 150;
46 const SkColor kTrayBackgroundPressedColor = SkColorSetRGB(66, 129, 244); 47 const SkColor kTrayBackgroundPressedColor = SkColorSetRGB(66, 129, 244);
47 48
48 const int kAnimationDurationForPopupMs = 200; 49 const int kAnimationDurationForPopupMs = 200;
49 50
50 // Duration of opacity animation for visibility changes. 51 // Duration of opacity animation for visibility changes.
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 background_->set_alpha(kTrayBackgroundAlpha); 587 background_->set_alpha(kTrayBackgroundAlpha);
587 SchedulePaint(); 588 SchedulePaint();
588 } 589 }
589 590
590 void TrayBackgroundView::UpdateBubbleViewArrow( 591 void TrayBackgroundView::UpdateBubbleViewArrow(
591 views::TrayBubbleView* bubble_view) { 592 views::TrayBubbleView* bubble_view) {
592 // Nothing to do here. 593 // Nothing to do here.
593 } 594 }
594 595
595 } // namespace ash 596 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/toplevel_window.cc ('k') | ash/system/web_notification/web_notification_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698