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 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 53 scoped_refptr<base::TaskRunner> |
| 54 GetTaskRunnerForAuraLinuxAccessibilityInit() override; |
| 55 #endif |
52 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
53 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 57 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
54 const base::Closure& callback) override; | 58 const base::Closure& callback) override; |
55 #endif | 59 #endif |
56 | 60 |
57 private: | 61 private: |
58 #if defined(OS_WIN) | 62 #if defined(OS_WIN) |
59 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; | 63 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; |
60 | 64 |
61 // Callback on main thread with the edges. |returned_edges| is the value that | 65 // 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. | 81 // GetAutohideEdges().start a new query. |
78 bool in_autohide_edges_callback_; | 82 bool in_autohide_edges_callback_; |
79 | 83 |
80 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 84 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
81 #endif | 85 #endif |
82 | 86 |
83 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
84 }; | 88 }; |
85 | 89 |
86 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |