OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ | 5 #ifndef UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ |
6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ | 6 #define UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 class FocusManager; | 13 class FocusManager; |
14 class Widget; | 14 class Widget; |
15 | 15 |
16 // A factory to create FocusManager. This is used in unit tests | 16 // A factory to create FocusManager. This is used in unit tests |
17 // to inject a custom factory. | 17 // to inject a custom factory. |
18 class VIEWS_EXPORT FocusManagerFactory { | 18 class VIEWS_EXPORT FocusManagerFactory { |
(...skipping 15 matching lines...) Expand all Loading... |
34 virtual FocusManager* CreateFocusManager(Widget* widget, | 34 virtual FocusManager* CreateFocusManager(Widget* widget, |
35 bool desktop_widget) = 0; | 35 bool desktop_widget) = 0; |
36 | 36 |
37 private: | 37 private: |
38 DISALLOW_COPY_AND_ASSIGN(FocusManagerFactory); | 38 DISALLOW_COPY_AND_ASSIGN(FocusManagerFactory); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace views | 41 } // namespace views |
42 | 42 |
43 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ | 43 #endif // UI_VIEWS_FOCUS_FOCUS_MANAGER_FACTORY_H_ |
OLD | NEW |