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 TouchSelectionMenuRunnerViews; |
44 class ViewsTouchEditingControllerFactory; | 45 class ViewsTouchEditingControllerFactory; |
45 class View; | 46 class View; |
46 class Widget; | 47 class Widget; |
47 namespace internal { | 48 namespace internal { |
48 class NativeWidgetDelegate; | 49 class NativeWidgetDelegate; |
49 } | 50 } |
50 | 51 |
51 // ViewsDelegate is an interface implemented by an object using the views | 52 // ViewsDelegate is an interface implemented by an object using the views |
52 // framework. It is used to obtain various high level application utilities | 53 // framework. It is used to obtain various high level application utilities |
53 // and perform some actions such as window placement saving. | 54 // and perform some actions such as window placement saving. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // | 144 // |
144 // The return value is a bitmask of AppbarAutohideEdge. | 145 // The return value is a bitmask of AppbarAutohideEdge. |
145 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 146 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
146 const base::Closure& callback); | 147 const base::Closure& callback); |
147 #endif | 148 #endif |
148 | 149 |
149 // The active ViewsDelegate used by the views system. | 150 // The active ViewsDelegate used by the views system. |
150 static ViewsDelegate* views_delegate; | 151 static ViewsDelegate* views_delegate; |
151 | 152 |
152 private: | 153 private: |
| 154 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; |
153 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 155 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |
154 | 156 |
155 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 157 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
156 }; | 158 }; |
157 | 159 |
158 } // namespace views | 160 } // namespace views |
159 | 161 |
160 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 162 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
OLD | NEW |