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