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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) | 50 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) |
51 { | 51 { |
52 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); | 52 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); |
53 } | 53 } |
54 | 54 |
55 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable) | 55 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable) |
56 { | 56 { |
57 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable); | 57 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable); |
58 } | 58 } |
59 | 59 |
| 60 bool WebRuntimeFeatures::setFeatureEnabled(const WebString& feature, bool enable
) |
| 61 { |
| 62 return RuntimeEnabledFeatures::setFeatureEnabled(feature, enable); |
| 63 } |
| 64 |
60 void WebRuntimeFeatures::enableApplicationCache(bool enable) | 65 void WebRuntimeFeatures::enableApplicationCache(bool enable) |
61 { | 66 { |
62 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); | 67 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); |
63 } | 68 } |
64 | 69 |
65 bool WebRuntimeFeatures::isApplicationCacheEnabled() | 70 bool WebRuntimeFeatures::isApplicationCacheEnabled() |
66 { | 71 { |
67 return RuntimeEnabledFeatures::applicationCacheEnabled(); | 72 return RuntimeEnabledFeatures::applicationCacheEnabled(); |
68 } | 73 } |
69 | 74 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 { | 601 { |
597 RuntimeEnabledFeatures::setInputTypeColorEnabled(enable); | 602 RuntimeEnabledFeatures::setInputTypeColorEnabled(enable); |
598 } | 603 } |
599 | 604 |
600 bool WebRuntimeFeatures::isInputTypeColorEnabled() | 605 bool WebRuntimeFeatures::isInputTypeColorEnabled() |
601 { | 606 { |
602 return RuntimeEnabledFeatures::inputTypeColorEnabled(); | 607 return RuntimeEnabledFeatures::inputTypeColorEnabled(); |
603 } | 608 } |
604 | 609 |
605 } // namespace WebKit | 610 } // namespace WebKit |
OLD | NEW |