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

Side by Side Diff: content/common/renderer_preferences.h

Issue 8432011: Move RendererPreferences to content/public/common and also put in the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/common/renderer_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit.
8 //
9 // Adding new values to this class probably involves updating
10 // common/render_messages.h, browser/browser.cc, etc.
11
12 #ifndef CONTENT_COMMON_RENDERER_PREFERENCES_H_
13 #define CONTENT_COMMON_RENDERER_PREFERENCES_H_
14 #pragma once
15
16 #include "content/common/content_export.h"
17 #include "third_party/skia/include/core/SkColor.h"
18
19 enum RendererPreferencesHintingEnum {
20 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0,
21 RENDERER_PREFERENCES_HINTING_NONE,
22 RENDERER_PREFERENCES_HINTING_SLIGHT,
23 RENDERER_PREFERENCES_HINTING_MEDIUM,
24 RENDERER_PREFERENCES_HINTING_FULL,
25 };
26
27 enum RendererPreferencesSubpixelRenderingEnum {
28 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT = 0,
29 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_NONE,
30 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_RGB,
31 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_BGR,
32 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VRGB,
33 RENDERER_PREFERENCES_SUBPIXEL_RENDERING_VBGR,
34 };
35
36 struct CONTENT_EXPORT RendererPreferences {
37 RendererPreferences();
38
39 // Whether the renderer's current browser context accept drops from the OS
40 // that result in navigations away from the current page.
41 bool can_accept_load_drops;
42
43 // Whether text should be antialiased.
44 // Currently only used by Linux.
45 bool should_antialias_text;
46
47 // The level of hinting to use when rendering text.
48 // Currently only used by Linux.
49 RendererPreferencesHintingEnum hinting;
50
51 // The type of subpixel rendering to use for text.
52 // Currently only used by Linux.
53 RendererPreferencesSubpixelRenderingEnum subpixel_rendering;
54
55 // The color of the focus ring. Currently only used on Linux.
56 SkColor focus_ring_color;
57
58 // The color of different parts of the scrollbar. Currently only used on
59 // Linux.
60 SkColor thumb_active_color;
61 SkColor thumb_inactive_color;
62 SkColor track_color;
63
64 // The colors used in selection text. Currently only used on Linux.
65 SkColor active_selection_bg_color;
66 SkColor active_selection_fg_color;
67 SkColor inactive_selection_bg_color;
68 SkColor inactive_selection_fg_color;
69
70 // Browser wants a look at all top level requests
71 bool browser_handles_top_level_requests;
72
73 // Cursor blink rate in seconds.
74 // Currently only changed from default on Linux. Uses |gtk-cursor-blink|
75 // from GtkSettings.
76 double caret_blink_interval;
77
78 // Set to false to not send referrers.
79 bool enable_referrers;
80 };
81
82 #endif // CONTENT_COMMON_RENDERER_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/common/renderer_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698