Chromium Code Reviews| Index: ui/views/widget/android/android_focus_rules.h |
| diff --git a/ui/views/widget/android/android_focus_rules.h b/ui/views/widget/android/android_focus_rules.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..efb23b90fdec0d4f50644f701c225c80c950d90a |
| --- /dev/null |
| +++ b/ui/views/widget/android/android_focus_rules.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
|
sadrul
2015/11/04 19:00:53
I don't think we use (c) anymore? (too bad we don'
bshe
2015/11/11 00:38:28
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |
| +#define UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |
| + |
| +#include "base/macros.h" |
| +#include "ui/wm/core/base_focus_rules.h" |
| + |
| +namespace views { |
| + |
| +// A set of focus rules for Android using aura. |
| +class AndroidFocusRules : public wm::BaseFocusRules { |
| + public: |
| + AndroidFocusRules(); |
| + ~AndroidFocusRules() override; |
| + |
| + private: |
| + // ::wm::BaseFocusRules: |
|
sadrul
2015/11/04 19:00:53
Just wm
bshe
2015/11/11 00:38:28
Done.
|
| + bool SupportsChildActivation(aura::Window* window) const override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AndroidFocusRules); |
| +}; |
| + |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_WIDGET_ANDROID_ANDROID_FOCUS_RULES_H_ |