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

Unified Diff: ash/aura/wm_shell_aura.cc

Issue 2218143002: Adds WmShell::IsTouchDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 6842682dde7c3f89ac7b3cd9e2974c1e975db46f..1881d36b4a3aa3835d67325a8ede5fee068a842a 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -26,6 +26,7 @@
#include "ash/wm/window_util.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/client/focus_client.h"
+#include "ui/aura/env.h"
#include "ui/wm/public/activation_client.h"
#if defined(OS_CHROMEOS)
@@ -214,6 +215,10 @@ void WmShellAura::RemovePointerWatcher(views::PointerWatcher* watcher) {
Shell::GetInstance()->RemovePointerWatcher(watcher);
}
+bool WmShellAura::IsTouchDown() {
+ return aura::Env::GetInstance()->is_touch_down();
+}
+
#if defined(OS_CHROMEOS)
void WmShellAura::ToggleIgnoreExternalKeyboard() {
Shell::GetInstance()
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698