Skip to content

Conversation

@fraenke75
Copy link
Contributor

Implement all CEF3 settings which are defined in cef_browser_settings_t struct.
Changed the Nullable to an enumeration _BrowserSettingsState like in CEf3. I think this is easier to read instead of the multiple mixture of xxxDisable/xxxEnabled settings and the assigned bool.

Added missing Browser Settings and replaced the Nullable<bool> with a
human readable BrowserSettingsState like in the CEF3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No regions please. :) @jornh, can you please add this to the contributions guidelines?

@perlun
Copy link
Member

perlun commented Apr 15, 2014

Anyway, the rest of the change (= supporting all settings) is good so let's just try to decide on these things and we can then try to merge this in the near future.

@perlun perlun added this to the 31.0.0 milestone Apr 15, 2014
@fraenke75
Copy link
Contributor Author

Maybe the introduction of a new enum is not necessary here. In the past (CEF1) there were xxxDisabled and xxxEnabled settings, but they do not exist any more in CEF3.
So maybe the better solution would be to use a Nullable bool and use "xxxDisabled" for all boolean settings names.
What do you think?

@perlun
Copy link
Member

perlun commented Apr 16, 2014

Yes, go with that. But I think it should be xxxDisabled sometimes and xxxEnabled sometimes, depending on the setting. Right?

@fraenke75
Copy link
Contributor Author

No, we can decide if we want to use only xxxEnabled or only xxxDisabled. Due to the modified interface in CEF3 the setting itself has no postfix. The enabled/disabled state is set by the enum.

I would propose to use as name always the xxxDisabled.

The used boolean setting names now match the command-line options.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name here should be JavascriptDisabled; we don't capitalize the S.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I think the "disabled" suffix is good, especially since (as you said) the command line options have the same kind of naming.

@perlun
Copy link
Member

perlun commented Apr 20, 2014

Looks good! Please fix these minor suggestions and we're good to merge. (@jornh, you may do it once they are done if I don't show up. 😃)

@jornh jornh merged commit e4e95bb into cefsharp:master May 13, 2014
@jornh
Copy link
Contributor

jornh commented May 13, 2014

Finally able to get back to this one. Thanks @fraenke75 and welcome as a CefSharp committer 😄

@fraenke75 fraenke75 deleted the BrowserSettings branch May 22, 2014 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants