OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_RULES_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_FOCUS_RULES_H_ |
6 #define MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_RULES_H_ | 6 #define SERVICES_WINDOW_MANAGER_FOCUS_RULES_H_ |
7 | 7 |
8 #include "mojo/services/public/cpp/view_manager/types.h" | 8 #include "mojo/services/public/cpp/view_manager/types.h" |
9 #include "mojo/services/public/cpp/view_manager/view.h" | 9 #include "mojo/services/public/cpp/view_manager/view.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 | 12 |
13 // Implemented by an object that establishes the rules about what can be | 13 // Implemented by an object that establishes the rules about what can be |
14 // focused or activated. | 14 // focused or activated. |
15 class FocusRules { | 15 class FocusRules { |
16 public: | 16 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // - it or its parent hierarchy is being hidden, or removed from the | 52 // - it or its parent hierarchy is being hidden, or removed from the |
53 // RootView. | 53 // RootView. |
54 // - it is being destroyed. | 54 // - it is being destroyed. |
55 // - it is being explicitly deactivated. | 55 // - it is being explicitly deactivated. |
56 // |ignore| cannot be null. | 56 // |ignore| cannot be null. |
57 virtual View* GetNextActivatableView(View* ignore) const = 0; | 57 virtual View* GetNextActivatableView(View* ignore) const = 0; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace mojo | 60 } // namespace mojo |
61 | 61 |
62 #endif // MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_RULES_H_ | 62 #endif // SERVICES_WINDOW_MANAGER_FOCUS_RULES_H_ |
OLD | NEW |