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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 2127303002: Make the crashed web platform pointerevent tests pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ScrollTo to move the target into the view bound Created 4 years, 5 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 | « no previous file | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/gpu/gpu_benchmarking_extension.h" 5 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 1, 302 1,
303 argv); 303 argv);
304 } 304 }
305 } 305 }
306 306
307 void OnSyntheticGestureCompleted(CallbackAndContext* callback_and_context) { 307 void OnSyntheticGestureCompleted(CallbackAndContext* callback_and_context) {
308 v8::Isolate* isolate = callback_and_context->isolate(); 308 v8::Isolate* isolate = callback_and_context->isolate();
309 v8::HandleScope scope(isolate); 309 v8::HandleScope scope(isolate);
310 v8::Local<v8::Context> context = callback_and_context->GetContext(); 310 v8::Local<v8::Context> context = callback_and_context->GetContext();
311 v8::Context::Scope context_scope(context); 311 v8::Context::Scope context_scope(context);
312 v8::Local<v8::Function> callback = callback_and_context->GetCallback();
312 WebLocalFrame* frame = WebLocalFrame::frameForContext(context); 313 WebLocalFrame* frame = WebLocalFrame::frameForContext(context);
313 if (frame) { 314 if (frame && !callback.IsEmpty()) {
314 frame->callFunctionEvenIfScriptDisabled( 315 frame->callFunctionEvenIfScriptDisabled(
315 callback_and_context->GetCallback(), v8::Object::New(isolate), 0, NULL); 316 callback, v8::Object::New(isolate), 0, NULL);
316 } 317 }
317 } 318 }
318 319
319 bool BeginSmoothScroll(v8::Isolate* isolate, 320 bool BeginSmoothScroll(v8::Isolate* isolate,
320 float pixels_to_scroll, 321 float pixels_to_scroll,
321 v8::Local<v8::Function> callback, 322 v8::Local<v8::Function> callback,
322 int gesture_source_type, 323 int gesture_source_type,
323 const std::string& direction, 324 const std::string& direction,
324 float speed_in_pixels_s, 325 float speed_in_pixels_s,
325 bool prevent_fling, 326 bool prevent_fling,
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 &gpu_driver_bug_workarounds))) { 960 &gpu_driver_bug_workarounds))) {
960 return; 961 return;
961 } 962 }
962 963
963 v8::Local<v8::Value> result; 964 v8::Local<v8::Value> result;
964 if (gin::TryConvertToV8(args->isolate(), gpu_driver_bug_workarounds, &result)) 965 if (gin::TryConvertToV8(args->isolate(), gpu_driver_bug_workarounds, &result))
965 args->Return(result); 966 args->Return(result);
966 } 967 }
967 968
968 } // namespace content 969 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698