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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #endif | 47 #endif |
48 void AddRef() override; | 48 void AddRef() override; |
49 void ReleaseRef() override; | 49 void ReleaseRef() override; |
50 void OnBeforeWidgetInit( | 50 void OnBeforeWidgetInit( |
51 views::Widget::InitParams* params, | 51 views::Widget::InitParams* params, |
52 views::internal::NativeWidgetDelegate* delegate) override; | 52 views::internal::NativeWidgetDelegate* delegate) override; |
53 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 53 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
54 bool WindowManagerProvidesTitleBar(bool maximized) override; | 54 bool WindowManagerProvidesTitleBar(bool maximized) override; |
55 #endif | 55 #endif |
56 ui::ContextFactory* GetContextFactory() override; | 56 ui::ContextFactory* GetContextFactory() override; |
| 57 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; |
57 std::string GetApplicationName() override; | 58 std::string GetApplicationName() override; |
58 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
59 int GetAppbarAutohideEdges(HMONITOR monitor, | 60 int GetAppbarAutohideEdges(HMONITOR monitor, |
60 const base::Closure& callback) override; | 61 const base::Closure& callback) override; |
61 #endif | 62 #endif |
62 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; | 63 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; |
63 | 64 |
64 gfx::Insets GetDialogButtonInsets() override; | 65 gfx::Insets GetDialogButtonInsets() override; |
65 int GetDialogRelatedButtonHorizontalSpacing() override; | 66 int GetDialogRelatedButtonHorizontalSpacing() override; |
66 gfx::Insets GetDialogFrameViewInsets() override; | 67 gfx::Insets GetDialogFrameViewInsets() override; |
(...skipping 28 matching lines...) Expand all Loading... |
95 // GetAutohideEdges().start a new query. | 96 // GetAutohideEdges().start a new query. |
96 bool in_autohide_edges_callback_; | 97 bool in_autohide_edges_callback_; |
97 | 98 |
98 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 99 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
99 #endif | 100 #endif |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 102 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |