Commit 0bd014c5 authored by mukai@chromium.org's avatar mukai@chromium.org

Use OnPaint() to paint the content of IndicatorView.

BUG=383015
R=xiyuan@chromium.org
TEST=manually

Review URL: https://codereview.chromium.org/342053003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278525 0039d316-1c4b-4281-b951-d872f2087c98
parent fb2fb8ca
...@@ -53,8 +53,7 @@ class SoundLevelIndicator : public views::View { ...@@ -53,8 +53,7 @@ class SoundLevelIndicator : public views::View {
private: private:
// Overridden from views::View: // Overridden from views::View:
virtual void Paint(gfx::Canvas* canvas, virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
const views::CullSet& cull_set) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(SoundLevelIndicator); DISALLOW_COPY_AND_ASSIGN(SoundLevelIndicator);
}; };
...@@ -63,8 +62,7 @@ SoundLevelIndicator::SoundLevelIndicator() {} ...@@ -63,8 +62,7 @@ SoundLevelIndicator::SoundLevelIndicator() {}
SoundLevelIndicator::~SoundLevelIndicator() {} SoundLevelIndicator::~SoundLevelIndicator() {}
void SoundLevelIndicator::Paint(gfx::Canvas* canvas, void SoundLevelIndicator::OnPaint(gfx::Canvas* canvas) {
const views::CullSet& cull_set) {
SkPaint paint; SkPaint paint;
paint.setStyle(SkPaint::kFill_Style); paint.setStyle(SkPaint::kFill_Style);
paint.setColor(kSoundLevelIndicatorColor); paint.setColor(kSoundLevelIndicatorColor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment