OLD | NEW |
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 "chrome/browser/renderer_preferences_util.h" | 5 #include "chrome/browser/renderer_preferences_util.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "build/build_config.h" |
9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
11 #include "content/public/browser/host_zoom_map.h" | 12 #include "content/public/browser/host_zoom_map.h" |
12 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
13 #include "content/public/common/renderer_preferences.h" | 14 #include "content/public/common/renderer_preferences.h" |
14 #include "content/public/common/webrtc_ip_handling_policy.h" | 15 #include "content/public/common/webrtc_ip_handling_policy.h" |
15 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
16 | 17 |
17 #if defined(OS_LINUX) || defined(OS_ANDROID) | 18 #if defined(OS_LINUX) || defined(OS_ANDROID) |
18 #include "ui/gfx/font_render_params.h" | 19 #include "ui/gfx/font_render_params.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 prefs->subpixel_rendering = params.subpixel_rendering; | 128 prefs->subpixel_rendering = params.subpixel_rendering; |
128 #endif | 129 #endif |
129 | 130 |
130 #if !defined(OS_MACOSX) | 131 #if !defined(OS_MACOSX) |
131 prefs->plugin_fullscreen_allowed = | 132 prefs->plugin_fullscreen_allowed = |
132 pref_service->GetBoolean(prefs::kFullscreenAllowed); | 133 pref_service->GetBoolean(prefs::kFullscreenAllowed); |
133 #endif | 134 #endif |
134 } | 135 } |
135 | 136 |
136 } // namespace renderer_preferences_util | 137 } // namespace renderer_preferences_util |
OLD | NEW |