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

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

Issue 2830643002: [webnfc] Add WebNFC feature flag (Closed)
Patch Set: Rebased to master Created 3 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
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 29 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698