OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 5 #ifndef UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
6 #define UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 6 #define UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/aura_shell/launcher/launcher_types.h" | 9 #include "ui/aura_shell/launcher/launcher_types.h" |
10 #include "views/controls/button/custom_button.h" | 10 #include "views/controls/button/custom_button.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 33 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
34 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 34 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
35 virtual void OnMouseCaptureLost() OVERRIDE; | 35 virtual void OnMouseCaptureLost() OVERRIDE; |
36 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 36 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
37 | 37 |
38 private: | 38 private: |
39 LauncherTabbedImages images_; | 39 LauncherTabbedImages images_; |
40 | 40 |
41 LauncherButtonHost* host_; | 41 LauncherButtonHost* host_; |
42 | 42 |
43 static SkBitmap* bg_image_; | 43 // Background images. Which one is chosen depends upon how many images are |
| 44 // provided. |
| 45 static SkBitmap* bg_image_1_; |
| 46 static SkBitmap* bg_image_2_; |
| 47 static SkBitmap* bg_image_3_; |
44 | 48 |
45 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton); | 49 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton); |
46 }; | 50 }; |
47 | 51 |
48 } // namespace internal | 52 } // namespace internal |
49 } // namespace aura_shell | 53 } // namespace aura_shell |
50 | 54 |
51 #endif // UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ | 55 #endif // UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ |
OLD | NEW |