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 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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |