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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 views::Widget* widget) OVERRIDE; | 44 views::Widget* widget) OVERRIDE; |
45 #endif | 45 #endif |
46 virtual void AddRef() OVERRIDE; | 46 virtual void AddRef() OVERRIDE; |
47 virtual void ReleaseRef() OVERRIDE; | 47 virtual void ReleaseRef() OVERRIDE; |
48 virtual void OnBeforeWidgetInit( | 48 virtual void OnBeforeWidgetInit( |
49 views::Widget::InitParams* params, | 49 views::Widget::InitParams* params, |
50 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; | 50 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; |
51 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 51 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
52 virtual bool WindowManagerProvidesTitleBar(bool maximized) OVERRIDE; | 52 virtual bool WindowManagerProvidesTitleBar(bool maximized) OVERRIDE; |
53 #endif | 53 #endif |
| 54 #if defined(USE_AURA) |
| 55 virtual ui::ContextFactory* GetContextFactory() OVERRIDE; |
| 56 #endif |
54 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
55 virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 58 virtual int GetAppbarAutohideEdges(HMONITOR monitor, |
56 const base::Closure& callback) OVERRIDE; | 59 const base::Closure& callback) OVERRIDE; |
57 #endif | 60 #endif |
58 | 61 |
59 private: | 62 private: |
60 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
61 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; | 64 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; |
62 | 65 |
63 // Callback on main thread with the edges. |returned_edges| is the value that | 66 // Callback on main thread with the edges. |returned_edges| is the value that |
(...skipping 14 matching lines...) Expand all Loading... |
78 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 81 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
79 // If true we're in the process of notifying a callback from | 82 // If true we're in the process of notifying a callback from |
80 // GetAutohideEdges().start a new query. | 83 // GetAutohideEdges().start a new query. |
81 bool in_autohide_edges_callback_; | 84 bool in_autohide_edges_callback_; |
82 #endif | 85 #endif |
83 | 86 |
84 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
85 }; | 88 }; |
86 | 89 |
87 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |