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

Unified Diff: ash/wm/user_activity_detector.cc

Issue 10828037: ash: Remove wm::GetRootWindowController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/wm/system_gesture_event_filter.cc ('k') | ash/wm/window_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/user_activity_detector.cc
diff --git a/ash/wm/user_activity_detector.cc b/ash/wm/user_activity_detector.cc
index d11d171d4935011e9db963a85432216bc3ae2e82..3fd845a5fdcca6a822ada94d2cf8ade7a221e2de 100644
--- a/ash/wm/user_activity_detector.cc
+++ b/ash/wm/user_activity_detector.cc
@@ -4,6 +4,7 @@
#include "ash/wm/user_activity_detector.h"
+#include "ash/wm/property_util.h"
#include "ash/wm/user_activity_observer.h"
#include "ash/wm/window_util.h"
#include "ui/aura/event.h"
@@ -31,7 +32,7 @@ bool UserActivityDetector::PreHandleKeyEvent(aura::Window* target,
aura::KeyEvent* event) {
// Ignore input events on secondary displays in non extended desktop
// mode. Remove this once this mode is gone. crbug.com/135245.
- if (!wm::GetRootWindowController(target->GetRootWindow()))
+ if (!GetRootWindowController(target->GetRootWindow()))
return true;
MaybeNotify();
return false;
@@ -39,7 +40,7 @@ bool UserActivityDetector::PreHandleKeyEvent(aura::Window* target,
bool UserActivityDetector::PreHandleMouseEvent(aura::Window* target,
aura::MouseEvent* event) {
- if (!wm::GetRootWindowController(target->GetRootWindow()))
+ if (!GetRootWindowController(target->GetRootWindow()))
return true;
if (!(event->flags() & ui::EF_IS_SYNTHESIZED))
MaybeNotify();
@@ -49,7 +50,7 @@ bool UserActivityDetector::PreHandleMouseEvent(aura::Window* target,
ui::TouchStatus UserActivityDetector::PreHandleTouchEvent(
aura::Window* target,
aura::TouchEvent* event) {
- if (!wm::GetRootWindowController(target->GetRootWindow()))
+ if (!GetRootWindowController(target->GetRootWindow()))
return ui::TOUCH_STATUS_END;
MaybeNotify();
return ui::TOUCH_STATUS_UNKNOWN;
@@ -58,7 +59,7 @@ ui::TouchStatus UserActivityDetector::PreHandleTouchEvent(
ui::GestureStatus UserActivityDetector::PreHandleGestureEvent(
aura::Window* target,
aura::GestureEvent* event) {
- if (!wm::GetRootWindowController(target->GetRootWindow()))
+ if (!GetRootWindowController(target->GetRootWindow()))
return ui::GESTURE_STATUS_CONSUMED;
MaybeNotify();
return ui::GESTURE_STATUS_UNKNOWN;
« no previous file with comments | « ash/wm/system_gesture_event_filter.cc ('k') | ash/wm/window_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698