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

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

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { 149 {
150 #if ENABLE(WEB_AUDIO) 150 #if ENABLE(WEB_AUDIO)
151 return RuntimeEnabledFeatures::webkitAudioContextEnabled(); 151 return RuntimeEnabledFeatures::webkitAudioContextEnabled();
152 #else 152 #else
153 return false; 153 return false;
154 #endif 154 #endif
155 } 155 }
156 156
157 void WebRuntimeFeatures::enableTouch(bool enable) 157 void WebRuntimeFeatures::enableTouch(bool enable)
158 { 158 {
159 #if ENABLE(TOUCH_EVENTS)
159 RuntimeEnabledFeatures::setTouchEnabled(enable); 160 RuntimeEnabledFeatures::setTouchEnabled(enable);
161 #endif
160 } 162 }
161 163
162 bool WebRuntimeFeatures::isTouchEnabled() 164 bool WebRuntimeFeatures::isTouchEnabled()
163 { 165 {
166 #if ENABLE(TOUCH_EVENTS)
164 return RuntimeEnabledFeatures::touchEnabled(); 167 return RuntimeEnabledFeatures::touchEnabled();
168 #else
169 return false;
170 #endif
165 } 171 }
166 172
167 void WebRuntimeFeatures::enableDeviceMotion(bool enable) 173 void WebRuntimeFeatures::enableDeviceMotion(bool enable)
168 { 174 {
169 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable); 175 RuntimeEnabledFeatures::setDeviceMotionEnabled(enable);
170 } 176 }
171 177
172 bool WebRuntimeFeatures::isDeviceMotionEnabled() 178 bool WebRuntimeFeatures::isDeviceMotionEnabled()
173 { 179 {
174 return RuntimeEnabledFeatures::deviceMotionEnabled(); 180 return RuntimeEnabledFeatures::deviceMotionEnabled();
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 { 566 {
561 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable); 567 return RuntimeEnabledFeatures::setWebMIDIEnabled(enable);
562 } 568 }
563 569
564 bool WebRuntimeFeatures::isWebMIDIEnabled() 570 bool WebRuntimeFeatures::isWebMIDIEnabled()
565 { 571 {
566 return RuntimeEnabledFeatures::webMIDIEnabled(); 572 return RuntimeEnabledFeatures::webMIDIEnabled();
567 } 573 }
568 574
569 } // namespace WebKit 575 } // 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