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

Side by Side Diff: content/child/webthemeengine_impl_default.cc

Issue 238723004: Paint state transition for overlay 9 patch scrollbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « content/child/webthemeengine_impl_default.h ('k') | ui/native_theme/native_theme.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/webthemeengine_impl_default.h" 5 #include "content/child/webthemeengine_impl_default.h"
6 6
7 #include "skia/ext/platform_canvas.h" 7 #include "skia/ext/platform_canvas.h"
8 #include "third_party/WebKit/public/platform/WebRect.h" 8 #include "third_party/WebKit/public/platform/WebRect.h"
9 #include "third_party/WebKit/public/platform/WebSize.h" 9 #include "third_party/WebKit/public/platform/WebSize.h"
10 #include "ui/native_theme/native_theme.h" 10 #include "ui/native_theme/native_theme.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 GetNativeThemeExtraParams( 177 GetNativeThemeExtraParams(
178 part, state, extra_params, &native_theme_extra_params); 178 part, state, extra_params, &native_theme_extra_params);
179 ui::NativeTheme::instance()->Paint( 179 ui::NativeTheme::instance()->Paint(
180 canvas, 180 canvas,
181 NativeThemePart(part), 181 NativeThemePart(part),
182 NativeThemeState(state), 182 NativeThemeState(state),
183 gfx::Rect(rect), 183 gfx::Rect(rect),
184 native_theme_extra_params); 184 native_theme_extra_params);
185 } 185 }
186 186
187 void WebThemeEngineImpl::paintStateTransition(blink::WebCanvas* canvas,
188 WebThemeEngine::Part part,
189 WebThemeEngine::State startState,
190 WebThemeEngine::State endState,
191 double progress,
192 const blink::WebRect& rect) {
193 ui::NativeTheme::instance()->PaintStateTransition(
194 canvas,
195 NativeThemePart(part),
196 NativeThemeState(startState),
197 NativeThemeState(endState),
198 progress,
199 gfx::Rect(rect));
200 }
201
187 } // namespace content 202 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webthemeengine_impl_default.h ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698