DescriptionRefactor HostSettings class.
There are four main changes:
* Rename HostSettings to HostOptions (since the functionality it provides was previously provided by Host.Options).
* Make all fields optional. This was in response to a comment on https://codereview.chromium.org/1343503002/ that using an empty set of remappings to represent the default doesn't make much sense. I extended it to apply to all settings.
* Move the default key remapping logic into getRemapKeys().
* Move the string->dictionary key remapping logic into setRemapKeys().
Committed: https://crrev.com/5816f58abd0d2b08d118924ed9240195a0a23716
Cr-Commit-Position: refs/heads/master@{#350886}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Use base.copyWithoutNullFields. #Patch Set 3 : Fix indent. #Patch Set 4 : Separate [copy|merge]WithoutNullFields #
Total comments: 1
Patch Set 5 : Rebase #Patch Set 6 : Fix unit tests. #Messages
Total messages: 24 (10 generated)
|