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

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

Issue 1089003003: Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about FILE thread 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)
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "ui/accessibility/ax_enums.h" 15 #include "ui/accessibility/ax_enums.h"
16 #include "ui/base/ui_base_types.h" 16 #include "ui/base/ui_base_types.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "ui/views/views_export.h" 18 #include "ui/views/views_export.h"
19 #include "ui/views/widget/widget.h" 19 #include "ui/views/widget/widget.h"
20 20
21 namespace base { 21 namespace base {
22 class TaskRunner;
22 class TimeDelta; 23 class TimeDelta;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 class WebContents; 27 class WebContents;
27 class BrowserContext; 28 class BrowserContext;
28 class SiteInstance; 29 class SiteInstance;
29 } 30 }
30 31
31 namespace gfx { 32 namespace gfx {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // |remove_standard_frame| in InitParams). If |maximized|, this applies to 132 // |remove_standard_frame| in InitParams). If |maximized|, this applies to
132 // maximized windows; otherwise to restored windows. 133 // maximized windows; otherwise to restored windows.
133 virtual bool WindowManagerProvidesTitleBar(bool maximized); 134 virtual bool WindowManagerProvidesTitleBar(bool maximized);
134 135
135 // Returns the context factory for new windows. 136 // Returns the context factory for new windows.
136 virtual ui::ContextFactory* GetContextFactory(); 137 virtual ui::ContextFactory* GetContextFactory();
137 138
138 // Returns the user-visible name of the application. 139 // Returns the user-visible name of the application.
139 virtual std::string GetApplicationName(); 140 virtual std::string GetApplicationName();
140 141
142 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
143 // Get a task runner suitable for posting initialization tasks for
144 // Aura Linux accessibility.
145 virtual scoped_refptr<base::TaskRunner>
146 GetTaskRunnerForAuraLinuxAccessibilityInit();
147 #endif
148
141 #if defined(OS_WIN) 149 #if defined(OS_WIN)
142 // Starts a query for the appbar autohide edges of the specified monitor and 150 // Starts a query for the appbar autohide edges of the specified monitor and
143 // returns the current value. If the query finds the edges have changed from 151 // returns the current value. If the query finds the edges have changed from
144 // the current value, |callback| is subsequently invoked. If the edges have 152 // the current value, |callback| is subsequently invoked. If the edges have
145 // not changed, |callback| is never run. 153 // not changed, |callback| is never run.
146 // 154 //
147 // The return value is a bitmask of AppbarAutohideEdge. 155 // The return value is a bitmask of AppbarAutohideEdge.
148 virtual int GetAppbarAutohideEdges(HMONITOR monitor, 156 virtual int GetAppbarAutohideEdges(HMONITOR monitor,
149 const base::Closure& callback); 157 const base::Closure& callback);
150 #endif 158 #endif
151 159
152 // The active ViewsDelegate used by the views system. 160 // The active ViewsDelegate used by the views system.
153 static ViewsDelegate* views_delegate; 161 static ViewsDelegate* views_delegate;
154 162
155 private: 163 private:
156 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 164 scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
157 165
158 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 166 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
159 }; 167 };
160 168
161 } // namespace views 169 } // namespace views
162 170
163 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 171 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility_auralinux.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698