summaryrefslogtreecommitdiffstats
path: root/ui/app_list/views/app_list_background.h
blob: 900e698f1192014aabac35dcfd5c0c56f9187a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_
#define UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/views/background.h"

namespace views {
class View;
}

namespace app_list {

class AppListMainView;

// A class to paint bubble background.
class AppListBackground : public views::Background {
 public:
  AppListBackground(int corner_radius,
                    AppListMainView* main_view);
  virtual ~AppListBackground();

 private:
  // views::Background overrides:
  virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE;

  const int corner_radius_;
  const AppListMainView* main_view_;  // Owned by views hierarchy.

  DISALLOW_COPY_AND_ASSIGN(AppListBackground);
};

}  // namespace app_list

#endif  // UI_APP_LIST_VIEWS_APP_LIST_BACKGROUND_H_