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

Side by Side Diff: content/shell/shell_webpreferences.cc

Issue 11565036: [content shell] use WebTestRunner::WebPreferences for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/shell_webpreferences.h" 5 #include "content/shell/shell_webpreferences.h"
6 6
7 #include "webkit/glue/webpreferences.h" 7 #include "webkit/glue/webpreferences.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 ShellWebPreferences::ShellWebPreferences() 11 void ShellWebPreferences::Export(webkit_glue::WebPreferences* prefs) const {
12 : allow_universal_access_from_file_urls(true),
13 dom_paste_enabled(true),
14 javascript_can_access_clipboard(true),
15 xss_auditor_enabled(true) {
16 }
17
18 ShellWebPreferences::~ShellWebPreferences() {}
19
20 void ShellWebPreferences::Apply(webkit_glue::WebPreferences* prefs) const {
21 prefs->allow_universal_access_from_file_urls = 12 prefs->allow_universal_access_from_file_urls =
22 allow_universal_access_from_file_urls; 13 allowUniversalAccessFromFileURLs;
23 prefs->dom_paste_enabled = dom_paste_enabled; 14 prefs->dom_paste_enabled = DOMPasteAllowed;
24 prefs->javascript_can_access_clipboard = javascript_can_access_clipboard; 15 prefs->javascript_can_access_clipboard = javaScriptCanAccessClipboard;
25 prefs->xss_auditor_enabled = xss_auditor_enabled; 16 prefs->xss_auditor_enabled = XSSAuditorEnabled;
26 #if !defined(OS_MACOSX) 17 prefs->editing_behavior =
27 prefs->editing_behavior = webkit_glue::WebPreferences::EDITING_BEHAVIOR_WIN; 18 static_cast<webkit_glue::WebPreferences::EditingBehavior>(
28 #endif 19 editingBehavior);
29 } 20 }
30 21
31 } // namespace content 22 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698