mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
helium/core: disable touch ui
This commit is contained in:
17
patches/helium/core/disable-touch-ui.patch
Normal file
17
patches/helium/core/disable-touch-ui.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
--- a/ui/base/pointer/touch_ui_controller.cc
|
||||
+++ b/ui/base/pointer/touch_ui_controller.cc
|
||||
@@ -175,13 +175,7 @@ void TouchUiController::TouchUiScoperFor
|
||||
// static
|
||||
TouchUiController* TouchUiController::Get() {
|
||||
static base::NoDestructor<TouchUiController> instance([] {
|
||||
- const std::string switch_value =
|
||||
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
||||
- switches::kTopChromeTouchUi);
|
||||
- if (switch_value == switches::kTopChromeTouchUiDisabled)
|
||||
- return TouchUiState::kDisabled;
|
||||
- const bool enabled = switch_value == switches::kTopChromeTouchUiEnabled;
|
||||
- return enabled ? TouchUiState::kEnabled : TouchUiState::kAuto;
|
||||
+ return TouchUiState::kDisabled;
|
||||
}());
|
||||
return instance.get();
|
||||
}
|
||||
@@ -169,6 +169,7 @@ helium/core/reduce-accept-language-headers.patch
|
||||
helium/core/disable-ad-topics-and-etc.patch
|
||||
helium/core/enable-parallel-downloading.patch
|
||||
helium/core/infinite-tab-freezing.patch
|
||||
helium/core/disable-touch-ui.patch
|
||||
|
||||
helium/settings/move-search-suggest.patch
|
||||
helium/settings/remove-autofill.patch
|
||||
|
||||
Reference in New Issue
Block a user