Add CefBrowserSettings.history_disabled option to disable history back/forward navigation (issue #419).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@393 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-23 17:55:33 +00:00
parent 605753c3b8
commit 8c5b56cbf5
7 changed files with 28 additions and 9 deletions

View File

@@ -190,6 +190,11 @@ typedef struct _cef_browser_settings_t
///
bool load_drops_disabled;
///
// Disable history back/forward navigation.
///
bool history_disabled;
// The below values map to WebPreferences settings.
///

View File

@@ -324,6 +324,7 @@ struct CefBrowserSettingsTraits {
{
target->drag_drop_disabled = src->drag_drop_disabled;
target->load_drops_disabled = src->load_drops_disabled;
target->history_disabled = src->history_disabled;
cef_string_set(src->standard_font_family.str,
src->standard_font_family.length, &target->standard_font_family, copy);