Merge ~santoshbit2007/oxide:scrollbar_work into oxide:master
Proposed by
Santosh
Status: | Needs review |
---|---|
Proposed branch: | ~santoshbit2007/oxide:scrollbar_work |
Merge into: | oxide:master |
Diff against target: |
368 lines (+195/-3) 10 files modified
shared/BUILD.gn (+4/-0) shared/browser/oxide_content_browser_client.cc (+6/-1) shared/browser/scrollbar_type.cc (+37/-0) shared/browser/scrollbar_type.h (+27/-0) shared/browser/web_contents_helper.cc (+9/-0) shared/common/oxide_messages.h (+2/-0) shared/renderer/oxide_content_renderer_client.cc (+7/-2) shared/renderer/oxide_content_renderer_client.h (+2/-0) shared/renderer/oxide_scrollbar_state.cc (+54/-0) shared/renderer/oxide_scrollbar_state.h (+47/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Coulson | Needs Fixing | ||
Review via email:
|
Description of the change
Implement scrollbar switch when shell mode is changed.
When shell mode is window mode it shows desktop style scrollbar in mobile
Switching happens dynamically.
To post a comment you must log in.
overlay scrollbar is controlled by cmd flags --enable- overlay- scrollbar( disable) . Disabling overlay scrollbar using cmd require renderer process restart. so I am not changing command line parameter at runtime instead using the blink Runtime setting to disable overlay scrollbar which is enough to disable the overlayscrollbar from blink.
But outside blink chromium checks for cmd params to find type of scrollbar.
So internal of blink may know overlay scrollbar is disabled but at the same time outside of blink
may see its enabled.
But as of now its all fine, as outside blink there is only one place of checking of "type of scrollbar" which is overridden in oxide_content_ render_ client: :OverrideCompos itorSettings.
So now ui::IsOverlaySc rollbarEnabled( ); will return wrong value when convergence is in picture.