mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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;
|
||||
|
||||
///
|
||||
|
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user