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

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

Issue 2816923002: change overlay scrollbar hover show to hover fade in (Closed)
Patch Set: merge FadeInDuration and FadeOutDuration to FadeDuration Created 3 years, 8 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
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 "build/build_config.h" 7 #include "build/build_config.h"
8 #include "skia/ext/platform_canvas.h" 8 #include "skia/ext/platform_canvas.h"
9 #include "third_party/WebKit/public/platform/WebRect.h" 9 #include "third_party/WebKit/public/platform/WebRect.h"
10 #include "third_party/WebKit/public/platform/WebSize.h" 10 #include "third_party/WebKit/public/platform/WebSize.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 part, state, extra_params, &native_theme_extra_params); 241 part, state, extra_params, &native_theme_extra_params);
242 ui::NativeTheme::GetInstanceForWeb()->Paint( 242 ui::NativeTheme::GetInstanceForWeb()->Paint(
243 canvas, NativeThemePart(part), NativeThemeState(state), gfx::Rect(rect), 243 canvas, NativeThemePart(part), NativeThemeState(state), gfx::Rect(rect),
244 native_theme_extra_params); 244 native_theme_extra_params);
245 } 245 }
246 246
247 void WebThemeEngineImpl::GetOverlayScrollbarStyle(ScrollbarStyle* style) { 247 void WebThemeEngineImpl::GetOverlayScrollbarStyle(ScrollbarStyle* style) {
248 style->fade_out_delay_seconds = 248 style->fade_out_delay_seconds =
249 ui::kOverlayScrollbarFadeOutDelay.InSecondsF(); 249 ui::kOverlayScrollbarFadeOutDelay.InSecondsF();
250 style->fade_out_duration_seconds = 250 style->fade_out_duration_seconds =
251 ui::kOverlayScrollbarFadeOutDuration.InSecondsF(); 251 ui::kOverlayScrollbarFadeDuration.InSecondsF();
252 // The other fields in this struct are used only on Android to draw solid 252 // The other fields in this struct are used only on Android to draw solid
253 // color scrollbars. On other platforms the scrollbars are painted in 253 // color scrollbars. On other platforms the scrollbars are painted in
254 // NativeTheme so these fields are unused. 254 // NativeTheme so these fields are unused.
255 } 255 }
256 256
257 bool WebThemeEngineImpl::SupportsNinePatch(Part part) const { 257 bool WebThemeEngineImpl::SupportsNinePatch(Part part) const {
258 return ui::NativeTheme::GetInstanceForWeb()->SupportsNinePatch( 258 return ui::NativeTheme::GetInstanceForWeb()->SupportsNinePatch(
259 NativeThemePart(part)); 259 NativeThemePart(part));
260 } 260 }
261 261
(...skipping 15 matching lines...) Expand all
277 int32_t vertical_arrow_bitmap_height, 277 int32_t vertical_arrow_bitmap_height,
278 int32_t horizontal_arrow_bitmap_width) { 278 int32_t horizontal_arrow_bitmap_width) {
279 g_vertical_scroll_bar_width = vertical_scroll_bar_width; 279 g_vertical_scroll_bar_width = vertical_scroll_bar_width;
280 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; 280 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height;
281 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; 281 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height;
282 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; 282 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width;
283 } 283 }
284 #endif 284 #endif
285 285
286 } // namespace content 286 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698