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

Unified Diff: components/exo/gamepad.h

Issue 2242283002: Add an adapter layer (WMHelper) between exo and ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors. 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 | « components/exo/BUILD.gn ('k') | components/exo/gamepad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/gamepad.h
diff --git a/components/exo/gamepad.h b/components/exo/gamepad.h
index 578a8d12fd9be800bf322c6838992f3dd26b751b..f1991a1fcb0448259b769a10b96e7c37a9db801c 100644
--- a/components/exo/gamepad.h
+++ b/components/exo/gamepad.h
@@ -13,6 +13,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "components/exo/wm_helper.h"
#include "device/gamepad/gamepad_data_fetcher.h"
#include "ui/aura/client/focus_change_observer.h"
@@ -25,7 +26,7 @@ using CreateGamepadDataFetcherCallback =
// This class represents one or more gamepads, it uses a background thread
// for polling gamepad devices and notifies the GamepadDelegate of any
// changes.
-class Gamepad : public aura::client::FocusChangeObserver {
+class Gamepad : public WMHelper::FocusObserver {
public:
// This class will post tasks to invoke the delegate on the thread runner
// which is associated with the thread that is creating this instance.
@@ -38,7 +39,7 @@ class Gamepad : public aura::client::FocusChangeObserver {
CreateGamepadDataFetcherCallback create_fetcher_callback);
~Gamepad() override;
- // Overridden aura::client::FocusChangeObserver:
+ // Overridden WMHelper::FocusObserver:
void OnWindowFocused(aura::Window* gained_focus,
aura::Window* lost_focus) override;
« no previous file with comments | « components/exo/BUILD.gn ('k') | components/exo/gamepad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698