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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 6576004: Build WebKit Full Screen API. Support is disabled by default; enable with --enable-fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit and synced. Created 9 years, 9 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 | « build/features_override.gypi ('k') | chrome/common/chrome_switches.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 web_prefs.accelerated_plugins_enabled = 300 web_prefs.accelerated_plugins_enabled =
301 command_line.HasSwitch(switches::kEnableAcceleratedPlugins); 301 command_line.HasSwitch(switches::kEnableAcceleratedPlugins);
302 web_prefs.accelerated_video_enabled = 302 web_prefs.accelerated_video_enabled =
303 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 303 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
304 web_prefs.memory_info_enabled = 304 web_prefs.memory_info_enabled =
305 command_line.HasSwitch(switches::kEnableMemoryInfo); 305 command_line.HasSwitch(switches::kEnableMemoryInfo);
306 web_prefs.hyperlink_auditing_enabled = 306 web_prefs.hyperlink_auditing_enabled =
307 !command_line.HasSwitch(switches::kNoPings); 307 !command_line.HasSwitch(switches::kNoPings);
308 web_prefs.interactive_form_validation_enabled = 308 web_prefs.interactive_form_validation_enabled =
309 !command_line.HasSwitch(switches::kDisableInteractiveFormValidation); 309 !command_line.HasSwitch(switches::kDisableInteractiveFormValidation);
310 web_prefs.fullscreen_enabled =
311 command_line.HasSwitch(switches::kEnableFullScreen);
312
310 // The user stylesheet watcher may not exist in a testing profile. 313 // The user stylesheet watcher may not exist in a testing profile.
311 if (profile->GetUserStyleSheetWatcher()) { 314 if (profile->GetUserStyleSheetWatcher()) {
312 web_prefs.user_style_sheet_enabled = true; 315 web_prefs.user_style_sheet_enabled = true;
313 web_prefs.user_style_sheet_location = 316 web_prefs.user_style_sheet_location =
314 profile->GetUserStyleSheetWatcher()->user_style_sheet(); 317 profile->GetUserStyleSheetWatcher()->user_style_sheet();
315 } else { 318 } else {
316 web_prefs.user_style_sheet_enabled = false; 319 web_prefs.user_style_sheet_enabled = false;
317 } 320 }
318 } 321 }
319 322
(...skipping 28 matching lines...) Expand all
348 inspector_settings->SetWithoutPathExpansion(key, 351 inspector_settings->SetWithoutPathExpansion(key,
349 Value::CreateStringValue(value)); 352 Value::CreateStringValue(value));
350 } 353 }
351 354
352 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) { 355 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
353 DictionaryValue* inspector_settings = 356 DictionaryValue* inspector_settings =
354 profile->GetPrefs()->GetMutableDictionary( 357 profile->GetPrefs()->GetMutableDictionary(
355 prefs::kWebKitInspectorSettings); 358 prefs::kWebKitInspectorSettings);
356 inspector_settings->Clear(); 359 inspector_settings->Clear();
357 } 360 }
OLDNEW
« no previous file with comments | « build/features_override.gypi ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698