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

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

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ViewsDelegate Created 5 years, 1 month 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 20 matching lines...) Expand all
31 class SiteInstance; 31 class SiteInstance;
32 } 32 }
33 33
34 namespace gfx { 34 namespace gfx {
35 class ImageSkia; 35 class ImageSkia;
36 class Rect; 36 class Rect;
37 } 37 }
38 38
39 namespace ui { 39 namespace ui {
40 class ContextFactory; 40 class ContextFactory;
41 class NativeTheme;
41 } 42 }
42 43
43 namespace views { 44 namespace views {
44 45
45 class NativeWidget; 46 class NativeWidget;
46 class NonClientFrameView; 47 class NonClientFrameView;
47 class ViewsTouchEditingControllerFactory; 48 class ViewsTouchEditingControllerFactory;
48 class View; 49 class View;
49 class Widget; 50 class Widget;
50 51
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // not changed, |callback| is never run. 185 // not changed, |callback| is never run.
185 // 186 //
186 // The return value is a bitmask of AppbarAutohideEdge. 187 // The return value is a bitmask of AppbarAutohideEdge.
187 virtual int GetAppbarAutohideEdges(HMONITOR monitor, 188 virtual int GetAppbarAutohideEdges(HMONITOR monitor,
188 const base::Closure& callback); 189 const base::Closure& callback);
189 #endif 190 #endif
190 191
191 // Returns a blocking pool task runner given a TaskRunnerType. 192 // Returns a blocking pool task runner given a TaskRunnerType.
192 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); 193 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner();
193 194
195 // Returns a value which, if non-null, will be used as the NativeTheme for
196 // |widget| in place of the platform default native theme.
197 virtual ui::NativeTheme* GetNonDefaultNativeTheme(const Widget* widget);
Peter Kasting 2015/11/11 00:34:46 Can this return the platform default native theme
Evan Stade 2015/11/11 01:05:32 I don't know how we'd do this because ViewsDelegat
Peter Kasting 2015/11/11 01:25:47 I meant for Widget to so something like: return
198
194 protected: 199 protected:
195 ViewsDelegate(); 200 ViewsDelegate();
196 201
197 private: 202 private:
198 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 203 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
199 204
200 #if defined(USE_AURA) 205 #if defined(USE_AURA)
201 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; 206 scoped_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
202 #endif 207 #endif
203 208
204 NativeWidgetFactory native_widget_factory_; 209 NativeWidgetFactory native_widget_factory_;
205 210
206 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 211 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
207 }; 212 };
208 213
209 } // namespace views 214 } // namespace views
210 215
211 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 216 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698