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

Side by Side Diff: ash/shelf/overflow_button.h

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: cleanup Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef ASH_SHELF_OVERFLOW_BUTTON_H_ 5 #ifndef ASH_SHELF_OVERFLOW_BUTTON_H_
6 #define ASH_SHELF_OVERFLOW_BUTTON_H_ 6 #define ASH_SHELF_OVERFLOW_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
12 #include "ui/views/controls/button/custom_button.h" 12 #include "ui/views/controls/button/custom_button.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace test { 15 namespace test {
16 class OverflowButtonTestApi; 16 class OverflowButtonTestApi;
17 } // namespace test 17 } // namespace test
18 18
19 class Shelf;
19 class ShelfView; 20 class ShelfView;
20 class WmShelf;
21 21
22 // Shelf overflow chevron button. 22 // Shelf overflow chevron button.
23 class ASH_EXPORT OverflowButton : public views::CustomButton { 23 class ASH_EXPORT OverflowButton : public views::CustomButton {
24 public: 24 public:
25 // |shelf_view| is the view containing this button. 25 // |shelf_view| is the view containing this button.
26 OverflowButton(ShelfView* shelf_view, WmShelf* wm_shelf); 26 OverflowButton(ShelfView* shelf_view, Shelf* shelf);
27 ~OverflowButton() override; 27 ~OverflowButton() override;
28 28
29 void OnShelfAlignmentChanged(); 29 void OnShelfAlignmentChanged();
30 void OnOverflowBubbleShown(); 30 void OnOverflowBubbleShown();
31 void OnOverflowBubbleHidden(); 31 void OnOverflowBubbleHidden();
32 32
33 // Updates background and schedules a paint. 33 // Updates background and schedules a paint.
34 void UpdateShelfItemBackground(SkColor color); 34 void UpdateShelfItemBackground(SkColor color);
35 35
36 private: 36 private:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Cached rotations of |upward_image_|. 68 // Cached rotations of |upward_image_|.
69 gfx::ImageSkia downward_image_; 69 gfx::ImageSkia downward_image_;
70 gfx::ImageSkia leftward_image_; 70 gfx::ImageSkia leftward_image_;
71 gfx::ImageSkia rightward_image_; 71 gfx::ImageSkia rightward_image_;
72 72
73 // Current chevron image which is a pointer to one of the above images 73 // Current chevron image which is a pointer to one of the above images
74 // according to current shelf alignment and overflow shelf visibility. 74 // according to current shelf alignment and overflow shelf visibility.
75 const gfx::ImageSkia* chevron_image_; 75 const gfx::ImageSkia* chevron_image_;
76 76
77 ShelfView* shelf_view_; 77 ShelfView* shelf_view_;
78 WmShelf* wm_shelf_; 78 Shelf* shelf_;
79 79
80 // Color used to paint the background. 80 // Color used to paint the background.
81 SkColor background_color_; 81 SkColor background_color_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(OverflowButton); 83 DISALLOW_COPY_AND_ASSIGN(OverflowButton);
84 }; 84 };
85 85
86 } // namespace ash 86 } // namespace ash
87 87
88 #endif // ASH_SHELF_OVERFLOW_BUTTON_H_ 88 #endif // ASH_SHELF_OVERFLOW_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698