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 15 matching lines...) Expand all Loading... |
83 // GetAutohideEdges().start a new query. | 81 // GetAutohideEdges().start a new query. |
84 bool in_autohide_edges_callback_; | 82 bool in_autohide_edges_callback_; |
85 | 83 |
86 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 84 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
87 #endif | 85 #endif |
88 | 86 |
89 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
90 }; | 88 }; |
91 | 89 |
92 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |