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

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

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/shelf/overflow_bubble_view.h ('k') | ash/shelf/shelf_alignment_menu.h » ('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_SHELF_OVERFLOW_BUTTON_H_
6 #define ASH_SHELF_OVERFLOW_BUTTON_H_ 6 #define ASH_SHELF_OVERFLOW_BUTTON_H_
7 7
8 #include "ash/shelf/shelf_types.h" 8 #include "ash/shelf/shelf_types.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.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 15
16 // Shelf overflow chevron button. 16 // Shelf overflow chevron button.
17 class OverflowButton : public views::CustomButton { 17 class OverflowButton : public views::CustomButton {
18 public: 18 public:
19 explicit OverflowButton(views::ButtonListener* listener); 19 explicit OverflowButton(views::ButtonListener* listener);
20 virtual ~OverflowButton(); 20 virtual ~OverflowButton();
21 21
22 void OnShelfAlignmentChanged(); 22 void OnShelfAlignmentChanged();
23 23
24 private: 24 private:
25 void PaintBackground(gfx::Canvas* canvas, int alpha); 25 void PaintBackground(gfx::Canvas* canvas, int alpha);
26 26
27 // views::View overrides: 27 // views::View overrides:
28 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 28 virtual void OnPaint(gfx::Canvas* canvas) override;
29 29
30 // Left and right images are rotations of bottom_image and are 30 // Left and right images are rotations of bottom_image and are
31 // owned by the overflow button. 31 // owned by the overflow button.
32 gfx::ImageSkia left_image_; 32 gfx::ImageSkia left_image_;
33 gfx::ImageSkia right_image_; 33 gfx::ImageSkia right_image_;
34 // Bottom image is owned by the resource bundle. 34 // Bottom image is owned by the resource bundle.
35 const gfx::ImageSkia* bottom_image_; 35 const gfx::ImageSkia* bottom_image_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(OverflowButton); 37 DISALLOW_COPY_AND_ASSIGN(OverflowButton);
38 }; 38 };
39 39
40 } // namespace ash 40 } // namespace ash
41 41
42 #endif // ASH_SHELF_OVERFLOW_BUTTON_H_ 42 #endif // ASH_SHELF_OVERFLOW_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/shelf/overflow_bubble_view.h ('k') | ash/shelf/shelf_alignment_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698