OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 void WebRuntimeFeatures::EnableWebBluetooth(bool enable) { | 42 void WebRuntimeFeatures::EnableWebBluetooth(bool enable) { |
43 RuntimeEnabledFeatures::setWebBluetoothEnabled(enable); | 43 RuntimeEnabledFeatures::setWebBluetoothEnabled(enable); |
44 } | 44 } |
45 | 45 |
46 void WebRuntimeFeatures::EnableWebAssemblyStreaming(bool enable) { | 46 void WebRuntimeFeatures::EnableWebAssemblyStreaming(bool enable) { |
47 RuntimeEnabledFeatures::setWebAssemblyStreamingEnabled(enable); | 47 RuntimeEnabledFeatures::setWebAssemblyStreamingEnabled(enable); |
48 } | 48 } |
49 | 49 |
| 50 void WebRuntimeFeatures::EnableWebNfc(bool enable) { |
| 51 RuntimeEnabledFeatures::setWebNFCEnabled(enable); |
| 52 } |
| 53 |
50 void WebRuntimeFeatures::EnableWebUsb(bool enable) { | 54 void WebRuntimeFeatures::EnableWebUsb(bool enable) { |
51 RuntimeEnabledFeatures::setWebUSBEnabled(enable); | 55 RuntimeEnabledFeatures::setWebUSBEnabled(enable); |
52 } | 56 } |
53 | 57 |
54 void WebRuntimeFeatures::EnableFeatureFromString(const std::string& name, | 58 void WebRuntimeFeatures::EnableFeatureFromString(const std::string& name, |
55 bool enable) { | 59 bool enable) { |
56 RuntimeEnabledFeatures::setFeatureEnabledFromString(name, enable); | 60 RuntimeEnabledFeatures::setFeatureEnabledFromString(name, enable); |
57 } | 61 } |
58 | 62 |
59 void WebRuntimeFeatures::EnableTestOnlyFeatures(bool enable) { | 63 void WebRuntimeFeatures::EnableTestOnlyFeatures(bool enable) { |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 394 |
391 void WebRuntimeFeatures::EnableVideoFullscreenDetection(bool enable) { | 395 void WebRuntimeFeatures::EnableVideoFullscreenDetection(bool enable) { |
392 RuntimeEnabledFeatures::setVideoFullscreenDetectionEnabled(enable); | 396 RuntimeEnabledFeatures::setVideoFullscreenDetectionEnabled(enable); |
393 } | 397 } |
394 | 398 |
395 void WebRuntimeFeatures::EnableMediaControlsOverlayPlayButton(bool enable) { | 399 void WebRuntimeFeatures::EnableMediaControlsOverlayPlayButton(bool enable) { |
396 RuntimeEnabledFeatures::setMediaControlsOverlayPlayButtonEnabled(enable); | 400 RuntimeEnabledFeatures::setMediaControlsOverlayPlayButtonEnabled(enable); |
397 } | 401 } |
398 | 402 |
399 } // namespace blink | 403 } // namespace blink |
OLD | NEW |