blob: 0df2a58be78e2eb85dd57e986745c87c177c5410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/shell/shell_webpreferences.h"
#include "webkit/glue/webpreferences.h"
namespace content {
void ShellWebPreferences::Export(webkit_glue::WebPreferences* prefs) const {
prefs->allow_universal_access_from_file_urls =
allowUniversalAccessFromFileURLs;
prefs->dom_paste_enabled = DOMPasteAllowed;
prefs->javascript_can_access_clipboard = javaScriptCanAccessClipboard;
prefs->xss_auditor_enabled = XSSAuditorEnabled;
prefs->editing_behavior =
static_cast<webkit_glue::WebPreferences::EditingBehavior>(
editingBehavior);
}
} // namespace content
|