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