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

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

Issue 10828184: ash: Update launcher overflow chevron. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix launcher_view_test_api compile Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_LAUNCHER_OVERFLOW_BUTTON_H_
6 #define ASH_LAUNCHER_OVERFLOW_BUTTON_H_
7
8 #include "ash/wm/shelf_types.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/views/controls/button/custom_button.h"
12
13 namespace gfx {
14 class ImageSkia;
15 }
16
17 namespace ash {
18 namespace internal {
19
20 // Launcher overflow chevron button.
21 class OverflowButton : public views::CustomButton {
22 public:
23 explicit OverflowButton(views::ButtonListener* listener);
24 virtual ~OverflowButton();
25
26 void SetShelfAlignment(ShelfAlignment alignment);
27
28 private:
29 void PaintBackground(gfx::Canvas* canvas, int alpha);
30
31 // views::View overrides:
32 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
33
34 ShelfAlignment alignment_;
35 const gfx::ImageSkia* image_;
36
37 DISALLOW_COPY_AND_ASSIGN(OverflowButton);
38 };
39
40 } // namespace internal
41 } // namespace ash
42
43 #endif // ASH_LAUNCHER_OVERFLOW_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698