| OLD | NEW |
| 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 "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 } | 1318 } |
| 1319 #endif | 1319 #endif |
| 1320 | 1320 |
| 1321 #if defined(OS_MACOSX) | 1321 #if defined(OS_MACOSX) |
| 1322 void RenderThreadImpl::OnUpdateScrollbarTheme( | 1322 void RenderThreadImpl::OnUpdateScrollbarTheme( |
| 1323 float initial_button_delay, | 1323 float initial_button_delay, |
| 1324 float autoscroll_button_delay, | 1324 float autoscroll_button_delay, |
| 1325 bool jump_on_track_click, | 1325 bool jump_on_track_click, |
| 1326 blink::ScrollerStyle preferred_scroller_style, | 1326 blink::ScrollerStyle preferred_scroller_style, |
| 1327 bool redraw) { | 1327 bool redraw) { |
| 1328 EnsureWebKitInitialized(); |
| 1328 static_cast<WebScrollbarBehaviorImpl*>( | 1329 static_cast<WebScrollbarBehaviorImpl*>( |
| 1329 webkit_platform_support_->scrollbarBehavior())->set_jump_on_track_click( | 1330 webkit_platform_support_->scrollbarBehavior())->set_jump_on_track_click( |
| 1330 jump_on_track_click); | 1331 jump_on_track_click); |
| 1331 blink::WebScrollbarTheme::updateScrollbars(initial_button_delay, | 1332 blink::WebScrollbarTheme::updateScrollbars(initial_button_delay, |
| 1332 autoscroll_button_delay, | 1333 autoscroll_button_delay, |
| 1333 preferred_scroller_style, | 1334 preferred_scroller_style, |
| 1334 redraw); | 1335 redraw); |
| 1335 } | 1336 } |
| 1336 #endif | 1337 #endif |
| 1337 | 1338 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1424 hidden_widget_count_--; | 1425 hidden_widget_count_--; |
| 1425 | 1426 |
| 1426 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1427 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1427 return; | 1428 return; |
| 1428 } | 1429 } |
| 1429 | 1430 |
| 1430 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1431 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1431 } | 1432 } |
| 1432 | 1433 |
| 1433 } // namespace content | 1434 } // namespace content |
| OLD | NEW |