Add CefBrowserSettings.background_color for custom background color assignment on a per-browser basis and fix assignment of the default value (issue #1161).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1656 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-04-15 19:02:30 +00:00
parent 966b64c01f
commit 33e7bb04b3
10 changed files with 101 additions and 8 deletions

View File

@@ -559,6 +559,15 @@ typedef struct _cef_browser_settings_t {
// "disable-accelerated-compositing" command-line switch.
///
cef_state_t accelerated_compositing;
///
// Opaque background color used for the browser before a document is loaded
// and when no document color is specified. By default the background color
// will be the same as CefSettings.background_color. Only the RGB compontents
// of the specified value will be used. The alpha component must greater than
// 0 to enable use of the background color but will be otherwise ignored.
///
cef_color_t background_color;
} cef_browser_settings_t;
///

View File

@@ -451,6 +451,8 @@ struct CefBrowserSettingsTraits {
target->application_cache = src->application_cache;
target->webgl = src->webgl;
target->accelerated_compositing = src->accelerated_compositing;
target->background_color = src->background_color;
}
};