Chromium Code Reviews| 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_ |