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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (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.cc
diff --git a/ui/wm/android/android_focus_rules.cc b/ui/wm/android/android_focus_rules.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e6376e932e369789dd02373c57a94fc2070a92a1
--- /dev/null
+++ b/ui/wm/android/android_focus_rules.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "ui/wm/android/android_focus_rules.h"
+
+#include "ui/aura/window.h"
+
+namespace wm {
+
+AndroidFocusRules::AndroidFocusRules() {
+}
+
+AndroidFocusRules::~AndroidFocusRules() {
+}
+
+bool AndroidFocusRules::SupportsChildActivation(aura::Window* window) const {
+ if (window->IsRootWindow())
+ return true;
+ else
+ return false;
+}
+
+} // namespace wm

Powered by Google App Engine
This is Rietveld 408576698