OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 5 #ifndef ASH_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
6 #define ASH_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 6 #define ASH_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual ~TabbedLauncherButton(); | 29 virtual ~TabbedLauncherButton(); |
30 | 30 |
31 // Notification that the images are about to change. Kicks off an animation. | 31 // Notification that the images are about to change. Kicks off an animation. |
32 void PrepareForImageChange(); | 32 void PrepareForImageChange(); |
33 | 33 |
34 // Sets the images to display for this entry. | 34 // Sets the images to display for this entry. |
35 void SetTabImage(const SkBitmap& image, int count); | 35 void SetTabImage(const SkBitmap& image, int count); |
36 | 36 |
37 protected: | 37 protected: |
38 // View overrides: | 38 // View overrides: |
39 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 39 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
40 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 40 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
41 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 41 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
42 virtual void OnMouseCaptureLost() OVERRIDE; | 42 virtual void OnMouseCaptureLost() OVERRIDE; |
43 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 43 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
44 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 44 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
45 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 45 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
46 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 46 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
47 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 47 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
48 | 48 |
49 private: | 49 private: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 views::GlowHoverController hover_controller_; | 98 views::GlowHoverController hover_controller_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton); | 100 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace internal | 103 } // namespace internal |
104 } // namespace ash | 104 } // namespace ash |
105 | 105 |
106 #endif // ASH_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 106 #endif // ASH_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
OLD | NEW |