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::WebCrypto* BlinkPlatformImpl::crypto() { |
| 273 return &web_crypto_; |
| 274 } |
| 275 |
272 blink::WebNotificationManager* | 276 blink::WebNotificationManager* |
273 BlinkPlatformImpl::notificationManager() { | 277 BlinkPlatformImpl::notificationManager() { |
274 return &web_notification_manager_; | 278 return &web_notification_manager_; |
275 } | 279 } |
276 | 280 |
277 // static | 281 // static |
278 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 282 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
279 WebThreadImplForMessageLoop* impl = | 283 WebThreadImplForMessageLoop* impl = |
280 static_cast<WebThreadImplForMessageLoop*>(thread); | 284 static_cast<WebThreadImplForMessageLoop*>(thread); |
281 delete impl; | 285 delete impl; |
282 } | 286 } |
283 | 287 |
284 } // namespace html_viewer | 288 } // namespace html_viewer |
OLD | NEW |