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

Side by Side Diff: chrome/browser/ui/views/chrome_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: Created 5 years, 8 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 CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void AddRef() override; 42 void AddRef() override;
43 void ReleaseRef() override; 43 void ReleaseRef() override;
44 void OnBeforeWidgetInit( 44 void OnBeforeWidgetInit(
45 views::Widget::InitParams* params, 45 views::Widget::InitParams* params,
46 views::internal::NativeWidgetDelegate* delegate) override; 46 views::internal::NativeWidgetDelegate* delegate) override;
47 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 47 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
48 bool WindowManagerProvidesTitleBar(bool maximized) override; 48 bool WindowManagerProvidesTitleBar(bool maximized) override;
49 #endif 49 #endif
50 ui::ContextFactory* GetContextFactory() override; 50 ui::ContextFactory* GetContextFactory() override;
51 std::string GetApplicationName() override; 51 std::string GetApplicationName() override;
52 scoped_refptr<base::TaskRunner> GetInitializationTaskRunner() override;
sky 2015/04/24 20:52:28 GetInitializationTaskRunner is very generic. The t
dmazzoni 2015/04/24 21:23:43 OK, if we want to be really specific, we should sp
52 #if defined(OS_WIN) 53 #if defined(OS_WIN)
53 virtual int GetAppbarAutohideEdges(HMONITOR monitor, 54 virtual int GetAppbarAutohideEdges(HMONITOR monitor,
54 const base::Closure& callback) override; 55 const base::Closure& callback) override;
55 #endif 56 #endif
56 57
57 private: 58 private:
58 #if defined(OS_WIN) 59 #if defined(OS_WIN)
59 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; 60 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap;
60 61
61 // Callback on main thread with the edges. |returned_edges| is the value that 62 // Callback on main thread with the edges. |returned_edges| is the value that
(...skipping 15 matching lines...) Expand all
77 // GetAutohideEdges().start a new query. 78 // GetAutohideEdges().start a new query.
78 bool in_autohide_edges_callback_; 79 bool in_autohide_edges_callback_;
79 80
80 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; 81 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
81 #endif 82 #endif
82 83
83 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 84 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
84 }; 85 };
85 86
86 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 87 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_delegate.cc » ('j') | chrome/browser/ui/views/chrome_views_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698