| OLD | NEW |
| 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 "mojo/services/html_viewer/blink_platform_impl.h" | 5 #include "mojo/services/html_viewer/blink_platform_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 blink::WebGestureDevice device_source, | 262 blink::WebGestureDevice device_source, |
| 263 const blink::WebFloatPoint& velocity, | 263 const blink::WebFloatPoint& velocity, |
| 264 const blink::WebSize& cumulative_scroll) { | 264 const blink::WebSize& cumulative_scroll) { |
| 265 const bool is_main_thread = true; | 265 const bool is_main_thread = true; |
| 266 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve( | 266 return ui::WebGestureCurveImpl::CreateFromDefaultPlatformCurve( |
| 267 gfx::Vector2dF(velocity.x, velocity.y), | 267 gfx::Vector2dF(velocity.x, velocity.y), |
| 268 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height), | 268 gfx::Vector2dF(cumulative_scroll.width, cumulative_scroll.height), |
| 269 is_main_thread).release(); | 269 is_main_thread).release(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 blink::WebNotificationManager* |
| 273 BlinkPlatformImpl::notificationManager() { |
| 274 return &web_notification_manager_; |
| 275 } |
| 276 |
| 272 // static | 277 // static |
| 273 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 278 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
| 274 WebThreadImplForMessageLoop* impl = | 279 WebThreadImplForMessageLoop* impl = |
| 275 static_cast<WebThreadImplForMessageLoop*>(thread); | 280 static_cast<WebThreadImplForMessageLoop*>(thread); |
| 276 delete impl; | 281 delete impl; |
| 277 } | 282 } |
| 278 | 283 |
| 279 } // namespace html_viewer | 284 } // namespace html_viewer |
| OLD | NEW |