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

Side by Side Diff: Source/web/WebRuntimeFeatures.cpp

Issue 20598008: Add maxTouchPoints for pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add maxTouchPoints for pointer events Created 7 years, 2 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 | « Source/core/page/Settings.in ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void WebRuntimeFeatures::enableTouch(bool enable) 347 void WebRuntimeFeatures::enableTouch(bool enable)
348 { 348 {
349 RuntimeEnabledFeatures::setTouchEnabled(enable); 349 RuntimeEnabledFeatures::setTouchEnabled(enable);
350 } 350 }
351 351
352 bool WebRuntimeFeatures::isTouchEnabled() 352 bool WebRuntimeFeatures::isTouchEnabled()
353 { 353 {
354 return RuntimeEnabledFeatures::touchEnabled(); 354 return RuntimeEnabledFeatures::touchEnabled();
355 } 355 }
356 356
357 void WebRuntimeFeatures::enablePointerEventsMaxTouchPoints(bool enable)
358 {
359 RuntimeEnabledFeatures::setPointerEventsMaxTouchPointsEnabled(enable);
360 }
361
362 bool WebRuntimeFeatures::isPointerEventsMaxTouchPointsEnabled()
363 {
364 return RuntimeEnabledFeatures::pointerEventsMaxTouchPointsEnabled();
365 }
366
357 void WebRuntimeFeatures::enableWebAnimationsCSS() 367 void WebRuntimeFeatures::enableWebAnimationsCSS()
358 { 368 {
359 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); 369 RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
360 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true); 370 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true);
361 } 371 }
362 372
363 void WebRuntimeFeatures::enableWebAnimationsSVG() 373 void WebRuntimeFeatures::enableWebAnimationsSVG()
364 { 374 {
365 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); 375 RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
366 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true); 376 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 { 445 {
436 RuntimeEnabledFeatures::setInputModeAttributeEnabled(enable); 446 RuntimeEnabledFeatures::setInputModeAttributeEnabled(enable);
437 } 447 }
438 448
439 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable) 449 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable)
440 { 450 {
441 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable); 451 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable);
442 } 452 }
443 453
444 } // namespace WebKit 454 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/core/page/Settings.in ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698