Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: ui/views/views_delegate.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test failures on Mac Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
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 ViewsTouchEditingControllerFactory; 44 class ViewsTouchEditingControllerFactory;
45 class View; 45 class View;
46 class Widget; 46 class Widget;
47
48 #if defined(USE_AURA)
49 class TouchSelectionMenuRunnerViews;
50 #endif // defined(USE_AURA)
51
47 namespace internal { 52 namespace internal {
48 class NativeWidgetDelegate; 53 class NativeWidgetDelegate;
49 } 54 }
50 55
51 // ViewsDelegate is an interface implemented by an object using the views 56 // ViewsDelegate is an interface implemented by an object using the views
52 // framework. It is used to obtain various high level application utilities 57 // framework. It is used to obtain various high level application utilities
53 // and perform some actions such as window placement saving. 58 // and perform some actions such as window placement saving.
54 // 59 //
55 // The embedding app must set views_delegate to assign its ViewsDelegate 60 // The embedding app must set views_delegate to assign its ViewsDelegate
56 // implementation. 61 // implementation.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual int GetAppbarAutohideEdges(HMONITOR monitor, 153 virtual int GetAppbarAutohideEdges(HMONITOR monitor,
149 const base::Closure& callback); 154 const base::Closure& callback);
150 #endif 155 #endif
151 156
152 // The active ViewsDelegate used by the views system. 157 // The active ViewsDelegate used by the views system.
153 static ViewsDelegate* views_delegate; 158 static ViewsDelegate* views_delegate;
154 159
155 private: 160 private:
156 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 161 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
157 162
163 #if defined(USE_AURA)
164 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
165 #endif // defined(USE_AURA)
166
158 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 167 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
159 }; 168 };
160 169
161 } // namespace views 170 } // namespace views
162 171
163 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 172 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698