Index: content/public/common/web_preferences.h |
diff --git a/webkit/common/webpreferences.h b/content/public/common/web_preferences.h |
similarity index 86% |
rename from webkit/common/webpreferences.h |
rename to content/public/common/web_preferences.h |
index 241fde36a26bbb7b1b7ac50d45dee88719a21627..e012ff53fdf7c14cdc146d62bc6f58741437b375 100644 |
--- a/webkit/common/webpreferences.h |
+++ b/content/public/common/web_preferences.h |
@@ -1,32 +1,24 @@ |
// Copyright 2013 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. |
-// |
-// A struct for managing webkit's settings. |
-// |
-// Adding new values to this class probably involves updating |
-// blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
-// render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
-#ifndef WEBKIT_COMMON_WEBPREFERENCES_H__ |
-#define WEBKIT_COMMON_WEBPREFERENCES_H__ |
+#ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
+#define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
#include <map> |
#include <string> |
#include <vector> |
#include "base/strings/string16.h" |
+#include "content/common/content_export.h" |
#include "net/base/network_change_notifier.h" |
#include "url/gurl.h" |
-#include "webkit/common/webkit_common_export.h" |
namespace blink { |
class WebView; |
} |
-struct WebPreferences; |
- |
-namespace webkit_glue { |
+namespace content { |
// Map of ISO 15924 four-letter script code to font family. For example, |
// "Arab" to "My Arabic Font". |
@@ -43,22 +35,24 @@ enum EditingBehavior { |
EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
}; |
- |
// The ISO 15924 script code for undetermined script aka Common. It's the |
// default used on WebKit's side to get/set a font setting when no script is |
// specified. |
-WEBKIT_COMMON_EXPORT extern const char kCommonScript[]; |
- |
-} // namespace webkit_glue |
- |
-struct WEBKIT_COMMON_EXPORT WebPreferences { |
- webkit_glue::ScriptFontFamilyMap standard_font_family_map; |
- webkit_glue::ScriptFontFamilyMap fixed_font_family_map; |
- webkit_glue::ScriptFontFamilyMap serif_font_family_map; |
- webkit_glue::ScriptFontFamilyMap sans_serif_font_family_map; |
- webkit_glue::ScriptFontFamilyMap cursive_font_family_map; |
- webkit_glue::ScriptFontFamilyMap fantasy_font_family_map; |
- webkit_glue::ScriptFontFamilyMap pictograph_font_family_map; |
+CONTENT_EXPORT extern const char kCommonScript[]; |
+ |
+// A struct for managing blink's settings. |
+// |
+// Adding new values to this class probably involves updating |
+// blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
+// render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
+struct CONTENT_EXPORT WebPreferences { |
+ ScriptFontFamilyMap standard_font_family_map; |
+ ScriptFontFamilyMap fixed_font_family_map; |
+ ScriptFontFamilyMap serif_font_family_map; |
+ ScriptFontFamilyMap sans_serif_font_family_map; |
+ ScriptFontFamilyMap cursive_font_family_map; |
+ ScriptFontFamilyMap fantasy_font_family_map; |
+ ScriptFontFamilyMap pictograph_font_family_map; |
int default_font_size; |
int default_fixed_font_size; |
int minimum_font_size; |
@@ -71,7 +65,7 @@ struct WEBKIT_COMMON_EXPORT WebPreferences { |
bool images_enabled; |
bool plugins_enabled; |
bool dom_paste_enabled; |
- webkit_glue::WebInspectorPreferences inspector_settings; |
+ WebInspectorPreferences inspector_settings; |
bool site_specific_quirks_enabled; |
bool shrinks_standalone_images_to_fit; |
bool uses_universal_detector; |
@@ -135,7 +129,7 @@ struct WEBKIT_COMMON_EXPORT WebPreferences { |
bool deferred_image_decoding_enabled; |
bool should_respect_image_orientation; |
int number_of_cpu_cores; |
- webkit_glue::EditingBehavior editing_behavior; |
+ EditingBehavior editing_behavior; |
bool supports_multiple_windows; |
bool viewport_enabled; |
bool viewport_meta_enabled; |
@@ -188,4 +182,6 @@ struct WEBKIT_COMMON_EXPORT WebPreferences { |
~WebPreferences(); |
}; |
-#endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |