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

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

Issue 901843006: Allow the embedder to disable the Notification constructor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 void WebRuntimeFeatures::enableMediaCapture(bool enable) 151 void WebRuntimeFeatures::enableMediaCapture(bool enable)
152 { 152 {
153 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable); 153 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable);
154 } 154 }
155 155
156 void WebRuntimeFeatures::enableMediaSource(bool enable) 156 void WebRuntimeFeatures::enableMediaSource(bool enable)
157 { 157 {
158 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); 158 RuntimeEnabledFeatures::setMediaSourceEnabled(enable);
159 } 159 }
160 160
161 void WebRuntimeFeatures::enableNotificationConstructor(bool enable)
162 {
163 RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable);
164 }
165
161 void WebRuntimeFeatures::enableNotifications(bool enable) 166 void WebRuntimeFeatures::enableNotifications(bool enable)
162 { 167 {
163 RuntimeEnabledFeatures::setNotificationsEnabled(enable); 168 RuntimeEnabledFeatures::setNotificationsEnabled(enable);
164 } 169 }
165 170
166 void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable) 171 void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable)
167 { 172 {
168 RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable); 173 RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable);
169 } 174 }
170 175
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 { 322 {
318 RuntimeEnabledFeatures::setPushMessagingDataEnabled(enable); 323 RuntimeEnabledFeatures::setPushMessagingDataEnabled(enable);
319 } 324 }
320 325
321 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable) 326 void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable)
322 { 327 {
323 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable); 328 RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable);
324 } 329 }
325 330
326 } // namespace blink 331 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698