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 UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/views/background.h" | 10 #include "ui/views/background.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 class View; | 13 class View; |
14 } | 14 } |
15 | 15 |
16 namespace app_list { | 16 namespace app_list { |
17 | 17 |
18 class AppListMainView; | 18 class AppListMainView; |
19 | 19 |
20 // A class to paint bubble background. | 20 // A class to paint bubble background. |
21 class AppListBackground : public views::Background { | 21 class AppListBackground : public views::Background { |
22 public: | 22 public: |
23 AppListBackground(int corner_radius, | 23 AppListBackground(int corner_radius, |
24 AppListMainView* main_view); | 24 AppListMainView* main_view); |
25 virtual ~AppListBackground(); | 25 virtual ~AppListBackground(); |
26 | 26 |
27 private: | 27 private: |
28 // views::Background overrides: | 28 // views::Background overrides: |
29 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE; | 29 virtual void Paint(gfx::Canvas* canvas, views::View* view) const override; |
30 | 30 |
31 const int corner_radius_; | 31 const int corner_radius_; |
32 const AppListMainView* main_view_; // Owned by views hierarchy. | 32 const AppListMainView* main_view_; // Owned by views hierarchy. |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(AppListBackground); | 34 DISALLOW_COPY_AND_ASSIGN(AppListBackground); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace app_list | 37 } // namespace app_list |
38 | 38 |
39 #endif // UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ | 39 #endif // UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_ |
OLD | NEW |