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

Unified Diff: ui/wm/android/android_focus_rules.h

Issue 1403293003: Introduce AndroidFocusRules and NativeWidgetAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: ui/wm/android/android_focus_rules.h
diff --git a/ui/wm/android/android_focus_rules.h b/ui/wm/android/android_focus_rules.h
new file mode 100644
index 0000000000000000000000000000000000000000..b857d68a173c0ade0f8f4330e87f5638ff35198e
--- /dev/null
+++ b/ui/wm/android/android_focus_rules.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_WM_ANDROID_ANDROID_FOCUS_RULES_H_
+#define UI_WM_ANDROID_ANDROID_FOCUS_RULES_H_
+
+#include "ui/wm/core/base_focus_rules.h"
+
+namespace wm {
+
+// A set of focus rules for Android using aura.
+class AndroidFocusRules : public BaseFocusRules {
+ public:
+ AndroidFocusRules();
+ ~AndroidFocusRules() override;
+
+ private:
+ // ::wm::BaseFocusRules:
+ bool SupportsChildActivation(aura::Window* window) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(AndroidFocusRules);
+};
+
+} // namespace wm
+
+#endif // UI_WM_ANDROID_ANDROID_FOCUS_RULES_H_

Powered by Google App Engine
This is Rietveld 408576698