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

Unified Diff: ui/views/widget/android/android_focus_rules.h

Issue 1403293003: Introduce AndroidFocusRules and NativeWidgetAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 5 years, 1 month 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 | « ui/views/views.gyp ('k') | ui/views/widget/android/android_focus_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/android/android_focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698