blob: 14c89f0a37091d629f420c41a0e4328fb9546745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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 "ppapi/shared_impl/ppapi_preferences.h"
namespace ppapi {
Preferences::Preferences()
: default_font_size(0),
default_fixed_font_size(0),
is_3d_supported(true) {
}
Preferences::Preferences(const webkit_glue::WebPreferences& prefs)
: standard_font_family_map(prefs.standard_font_family_map),
fixed_font_family_map(prefs.fixed_font_family_map),
serif_font_family_map(prefs.serif_font_family_map),
sans_serif_font_family_map(prefs.sans_serif_font_family_map),
default_font_size(prefs.default_font_size),
default_fixed_font_size(prefs.default_fixed_font_size),
// Pepper 3D support keys off of WebGL which is what the GPU blacklist
// is applied to.
is_3d_supported(prefs.experimental_webgl_enabled) {
}
Preferences::~Preferences() {
}
} // namespace ppapi
|