Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / app_list / views / progress_bar_view.h
blob0e618206ebfcd12f35a88b5b00cbb20923a6ae4e
1 // Copyright 2013 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_VIEWS_PROGRESS_BAR_VIEW_H_
6 #define UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/progress_bar.h"
12 namespace views {
13 class Painter;
16 namespace app_list {
18 // ProgressBarView implements an image-based progress bar for app launcher.
19 class ProgressBarView : public views::ProgressBar {
20 public:
21 ProgressBarView();
22 virtual ~ProgressBarView();
24 // views::View overrides:
25 virtual gfx::Size GetPreferredSize() const OVERRIDE;
26 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
28 private:
29 scoped_ptr<views::Painter> background_painter_;
30 scoped_ptr<views::Painter> bar_painter_;
32 DISALLOW_COPY_AND_ASSIGN(ProgressBarView);
35 } // namespace app_list
37 #endif // UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_