OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 namespace ui { | 36 namespace ui { |
37 class ContextFactory; | 37 class ContextFactory; |
38 } | 38 } |
39 | 39 |
40 namespace views { | 40 namespace views { |
41 | 41 |
42 class NativeWidget; | 42 class NativeWidget; |
43 class NonClientFrameView; | 43 class NonClientFrameView; |
44 class ViewsTouchSelectionControllerFactory; | 44 class ViewsTouchEditingControllerFactory; |
45 class View; | 45 class View; |
46 class Widget; | 46 class Widget; |
47 namespace internal { | 47 namespace internal { |
48 class NativeWidgetDelegate; | 48 class NativeWidgetDelegate; |
49 } | 49 } |
50 | 50 |
51 // ViewsDelegate is an interface implemented by an object using the views | 51 // ViewsDelegate is an interface implemented by an object using the views |
52 // framework. It is used to obtain various high level application utilities | 52 // framework. It is used to obtain various high level application utilities |
53 // and perform some actions such as window placement saving. | 53 // and perform some actions such as window placement saving. |
54 // | 54 // |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // | 141 // |
142 // The return value is a bitmask of AppbarAutohideEdge. | 142 // The return value is a bitmask of AppbarAutohideEdge. |
143 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 143 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
144 const base::Closure& callback); | 144 const base::Closure& callback); |
145 #endif | 145 #endif |
146 | 146 |
147 // The active ViewsDelegate used by the views system. | 147 // The active ViewsDelegate used by the views system. |
148 static ViewsDelegate* views_delegate; | 148 static ViewsDelegate* views_delegate; |
149 | 149 |
150 private: | 150 private: |
151 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 151 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 153 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
154 }; | 154 }; |
155 | 155 |
156 } // namespace views | 156 } // namespace views |
157 | 157 |
158 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 158 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |