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

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 { 177 {
178 #if ENABLE(WEB_AUDIO) 178 #if ENABLE(WEB_AUDIO)
179 return RuntimeEnabledFeatures::webkitAudioContextEnabled(); 179 return RuntimeEnabledFeatures::webkitAudioContextEnabled();
180 #else 180 #else
181 return false; 181 return false;
182 #endif 182 #endif
183 } 183 }
184 184
185 void WebRuntimeFeatures::enableTouch(bool enable) 185 void WebRuntimeFeatures::enableTouch(bool enable)
186 { 186 {
187 #if ENABLE(TOUCH_EVENTS)
188 RuntimeEnabledFeatures::setTouchEnabled(enable); 187 RuntimeEnabledFeatures::setTouchEnabled(enable);
189 #endif
190 } 188 }
191 189
192 bool WebRuntimeFeatures::isTouchEnabled() 190 bool WebRuntimeFeatures::isTouchEnabled()
193 { 191 {
194 #if ENABLE(TOUCH_EVENTS)
195 return RuntimeEnabledFeatures::touchEnabled(); 192 return RuntimeEnabledFeatures::touchEnabled();
196 #else
197 return false;
198 #endif
199 } 193 }
200 194
201 void WebRuntimeFeatures::enableDeviceMotion(bool enable) 195 void WebRuntimeFeatures::enableDeviceMotion(bool enable)
202 { 196 {
203 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); 197 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable);
204 } 198 }
205 199
206 bool WebRuntimeFeatures::isDeviceMotionEnabled() 200 bool WebRuntimeFeatures::isDeviceMotionEnabled()
207 { 201 {
208 return RuntimeEnabledFeatures::deviceMotionEnabled(); 202 return RuntimeEnabledFeatures::deviceMotionEnabled();
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 { 578 {
585 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); 579 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable);
586 } 580 }
587 581
588 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled() 582 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled()
589 { 583 {
590 return RuntimeEnabledFeatures::experimentalWebSocketEnabled(); 584 return RuntimeEnabledFeatures::experimentalWebSocketEnabled();
591 } 585 }
592 586
593 } // namespace WebKit 587 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebPopupMenuImpl.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698