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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/overflow_button.h
diff --git a/ash/launcher/overflow_button.h b/ash/launcher/overflow_button.h
new file mode 100644
index 0000000000000000000000000000000000000000..4a911f11906b108909067890f12e816002498309
--- /dev/null
+++ b/ash/launcher/overflow_button.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_LAUNCHER_OVERFLOW_BUTTON_H_
+#define ASH_LAUNCHER_OVERFLOW_BUTTON_H_
+
+#include "ash/wm/shelf_types.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/views/controls/button/custom_button.h"
+
+namespace gfx {
+class ImageSkia;
+}
+
+namespace ash {
+namespace internal {
+
+// Launcher overflow chevron button.
+class OverflowButton : public views::CustomButton {
+ public:
+ explicit OverflowButton(views::ButtonListener* listener);
+ virtual ~OverflowButton();
+
+ void SetShelfAlignment(ShelfAlignment alignment);
+
+ private:
+ void PaintBackground(gfx::Canvas* canvas, int alpha);
+
+ // views::View overrides:
+ virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
+
+ ShelfAlignment alignment_;
+ const gfx::ImageSkia* image_;
+
+ DISALLOW_COPY_AND_ASSIGN(OverflowButton);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_LAUNCHER_OVERFLOW_BUTTON_H_
« 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