blob: 0e618206ebfcd12f35a88b5b00cbb20923a6ae4e (
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
|
// Copyright 2013 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_PROGRESS_BAR_VIEW_H_
#define UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "ui/views/controls/progress_bar.h"
namespace views {
class Painter;
}
namespace app_list {
// ProgressBarView implements an image-based progress bar for app launcher.
class ProgressBarView : public views::ProgressBar {
public:
ProgressBarView();
virtual ~ProgressBarView();
// views::View overrides:
virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
private:
scoped_ptr<views::Painter> background_painter_;
scoped_ptr<views::Painter> bar_painter_;
DISALLOW_COPY_AND_ASSIGN(ProgressBarView);
};
} // namespace app_list
#endif // UI_APP_LIST_VIEWS_PROGRESS_BAR_VIEW_H_
|