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

Side by Side Diff: mojo/services/html_viewer/blink_platform_impl.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 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
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.h ('k') | no next file » | 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 "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
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
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698