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

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

Issue 2164733002: mash: Convert ash shelf overflow bubble to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 5 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 | « ash/common/shelf/overflow_bubble_view.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_SHELF_OVERFLOW_BUTTON_H_
6 #define ASH_SHELF_OVERFLOW_BUTTON_H_ 6 #define ASH_COMMON_SHELF_OVERFLOW_BUTTON_H_
7 7
8 #include "ash/common/shelf/shelf_types.h"
9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 8 #include "base/macros.h"
11 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.h"
12 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
13 11
14 namespace ash { 12 namespace ash {
15 class InkDropButtonListener; 13 class InkDropButtonListener;
16 class Shelf; 14 class WmShelf;
17 15
18 // Shelf overflow chevron button. 16 // Shelf overflow chevron button.
19 class OverflowButton : public views::CustomButton { 17 class OverflowButton : public views::CustomButton {
20 public: 18 public:
21 OverflowButton(InkDropButtonListener* listener, Shelf* shelf); 19 OverflowButton(InkDropButtonListener* listener, WmShelf* wm_shelf);
22 ~OverflowButton() override; 20 ~OverflowButton() override;
23 21
24 void OnShelfAlignmentChanged(); 22 void OnShelfAlignmentChanged();
25 23
26 private: 24 private:
27 // views::View: 25 // views::View:
28 void OnPaint(gfx::Canvas* canvas) override; 26 void OnPaint(gfx::Canvas* canvas) override;
29 27
30 // views::CustomButton: 28 // views::CustomButton:
31 void NotifyClick(const ui::Event& event) override; 29 void NotifyClick(const ui::Event& event) override;
(...skipping 19 matching lines...) Expand all
51 // enabled by default. See crbug.com/614453. 49 // enabled by default. See crbug.com/614453.
52 const gfx::ImageSkia* bottom_image_; 50 const gfx::ImageSkia* bottom_image_;
53 gfx::ImageSkia bottom_image_md_; 51 gfx::ImageSkia bottom_image_md_;
54 52
55 // Cached rotations of |bottom_image_| used for left and right shelf 53 // Cached rotations of |bottom_image_| used for left and right shelf
56 // alignments. 54 // alignments.
57 gfx::ImageSkia left_image_; 55 gfx::ImageSkia left_image_;
58 gfx::ImageSkia right_image_; 56 gfx::ImageSkia right_image_;
59 57
60 InkDropButtonListener* listener_; 58 InkDropButtonListener* listener_;
61 Shelf* shelf_; 59 WmShelf* wm_shelf_;
62 60
63 DISALLOW_COPY_AND_ASSIGN(OverflowButton); 61 DISALLOW_COPY_AND_ASSIGN(OverflowButton);
64 }; 62 };
65 63
66 } // namespace ash 64 } // namespace ash
67 65
68 #endif // ASH_SHELF_OVERFLOW_BUTTON_H_ 66 #endif // ASH_COMMON_SHELF_OVERFLOW_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/overflow_bubble_view.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698