Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2533373002: Enabled/disable touch screen in TabletPowerButtonController (Closed)
Patch Set: add SetTouchscreenEnabled and OnLoginStateChanged Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 8e2fceacf5eac1fa20f0ab562ae3e160f06ff650..4d741f94492420116eb1e0541e2726a67a39ab1b 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -86,6 +86,7 @@ TestShellDelegate::TestShellDelegate()
: num_exit_requests_(0),
multi_profiles_enabled_(false),
force_maximize_on_first_run_(false),
+ touch_screen_enabled_(true),
app_list_presenter_delegate_factory_(new AppListPresenterDelegateFactory(
base::WrapUnique(new AppListViewDelegateFactoryImpl))) {}
@@ -184,6 +185,14 @@ gfx::Image TestShellDelegate::GetDeprecatedAcceleratorImage() const {
return gfx::Image();
}
+bool TestShellDelegate::IsTouchscreenEnabled() const {
+ return touch_screen_enabled_;
+}
+
+void TestShellDelegate::SetTouchscreenEnabled(bool enabled) {
+ touch_screen_enabled_ = enabled;
+}
+
void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) {
#if defined(OS_CHROMEOS)
static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate())

Powered by Google App Engine
This is Rietveld 408576698