Add CefBrowserSettings.load_drops_disabled option for disabling default navigation resulting from drag & drop of URLs (issue #363).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@327 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-19 16:37:31 +00:00
parent 765e7b4c33
commit 026dacda76
5 changed files with 17 additions and 7 deletions

View File

@@ -170,6 +170,11 @@ typedef struct _cef_browser_settings_t
///
bool drag_drop_disabled;
///
// Disable default navigation resulting from drag & drop of URLs.
///
bool load_drops_disabled;
// The below values map to WebPreferences settings.
///

View File

@@ -313,6 +313,7 @@ struct CefBrowserSettingsTraits {
static inline void set(const struct_type* src, struct_type* target, bool copy)
{
target->drag_drop_disabled = src->drag_drop_disabled;
target->load_drops_disabled = src->load_drops_disabled;
cef_string_set(src->standard_font_family.str,
src->standard_font_family.length, &target->standard_font_family, copy);