Mailbox support for texture layers.
[chromium-blink-merge.git] / ui / app_list / app_list_background.h
blob66be8785d967d3c6d62848c4a619ac2236644378
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.
5 #ifndef UI_APP_LIST_APP_LIST_BACKGROUND_H_
6 #define UI_APP_LIST_APP_LIST_BACKGROUND_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/background.h"
12 namespace views {
13 class View;
16 namespace app_list {
18 // A class to paint bubble background.
19 class AppListBackground : public views::Background {
20 public:
21 AppListBackground(int corner_radius,
22 views::View* search_box_view);
23 virtual ~AppListBackground();
25 private:
26 // views::Background overrides:
27 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE;
29 const int corner_radius_;
30 const views::View* search_box_view_; // Owned by views hierarchy.
32 DISALLOW_COPY_AND_ASSIGN(AppListBackground);
35 } // namespace app_list
37 #endif // UI_APP_LIST_APP_LIST_BACKGROUND_H_