Index: ui/views/widget/android/android_focus_rules.h |
diff --git a/ui/views/examples/vector_example.h b/ui/views/widget/android/android_focus_rules.h |
similarity index 33% |
copy from ui/views/examples/vector_example.h |
copy to ui/views/widget/android/android_focus_rules.h |
index 3c311b95d4e0df6d52ec64b11590ace371653feb..867d53d48125a9c4257fc5f330e67eb62d5fd3ce 100644 |
--- a/ui/views/examples/vector_example.h |
+++ b/ui/views/widget/android/android_focus_rules.h |
@@ -2,28 +2,27 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef UI_VIEWS_EXAMPLES_VECTOR_EXAMPLE_H_ |
-#define UI_VIEWS_EXAMPLES_VECTOR_EXAMPLE_H_ |
+#ifndef UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |
+#define UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |
#include "base/macros.h" |
-#include "ui/views/examples/example_base.h" |
+#include "ui/wm/core/base_focus_rules.h" |
namespace views { |
-namespace examples { |
-class VIEWS_EXAMPLES_EXPORT VectorExample : public ExampleBase { |
+// A set of focus rules for Android using aura. |
+class AndroidFocusRules : public wm::BaseFocusRules { |
public: |
- VectorExample(); |
- ~VectorExample() override; |
- |
- // ExampleBase: |
- void CreateExampleView(View* container) override; |
+ AndroidFocusRules(); |
+ ~AndroidFocusRules() override; |
private: |
- DISALLOW_COPY_AND_ASSIGN(VectorExample); |
+ // wm::BaseFocusRules: |
+ bool SupportsChildActivation(aura::Window* window) const override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AndroidFocusRules); |
}; |
-} // namespace examples |
} // namespace views |
-#endif // UI_VIEWS_EXAMPLES_VECTOR_EXAMPLE_H_ |
+#endif // UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |