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

Unified Diff: ui/views/widget/desktop_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
Index: ui/views/widget/desktop_android/android_focus_rules.h
diff --git a/ui/views/examples/vector_example.h b/ui/views/widget/desktop_android/android_focus_rules.h
similarity index 32%
copy from ui/views/examples/vector_example.h
copy to ui/views/widget/desktop_android/android_focus_rules.h
index 3c311b95d4e0df6d52ec64b11590ace371653feb..c468791ca7964ed0457a299bc5a706bc0f377b8f 100644
--- a/ui/views/examples/vector_example.h
+++ b/ui/views/widget/desktop_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_DESKTOP_ANDROID_ANDROID_FOCUS_RULES_H_
+#define UI_VIEWS_WIDGET_DESKTOP_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 {
sky 2015/11/16 22:06:54 We generally have the platform as the suffix, eng
bshe 2015/11/17 16:44:31 I originally want to use suffix too. But later I f
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_DESKTOP_ANDROID_ANDROID_FOCUS_RULES_H_

Powered by Google App Engine
This is Rietveld 408576698