Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: ui/views/controls/glow_hover_controller.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/glow_hover_controller.h" 5 #include "ui/views/controls/glow_hover_controller.h"
6 6
7 #include "third_party/skia/include/core/SkBitmap.h" 7 #include "third_party/skia/include/core/SkBitmap.h"
8 #include "third_party/skia/include/effects/SkGradientShader.h" 8 #include "third_party/skia/include/effects/SkGradientShader.h"
9 #include "ui/gfx/canvas_skia.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/skbitmap_operations.h" 10 #include "ui/gfx/skbitmap_operations.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 // Amount to scale the opacity. 15 // Amount to scale the opacity.
16 static const double kOpacityScale = 0.5; 16 static const double kOpacityScale = 0.5;
17 17
18 // How long the hover state takes. 18 // How long the hover state takes.
19 static const int kHoverDurationMs = 400; 19 static const int kHoverDurationMs = 400;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 void GlowHoverController::AnimationEnded(const ui::Animation* animation) { 105 void GlowHoverController::AnimationEnded(const ui::Animation* animation) {
106 view_->SchedulePaint(); 106 view_->SchedulePaint();
107 } 107 }
108 108
109 void GlowHoverController::AnimationProgressed(const ui::Animation* animation) { 109 void GlowHoverController::AnimationProgressed(const ui::Animation* animation) {
110 view_->SchedulePaint(); 110 view_->SchedulePaint();
111 } 111 }
112 112
113 } // namespace views 113 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698