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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 HMONITOR monitor, | 71 HMONITOR monitor, |
72 int returned_edges, | 72 int returned_edges, |
73 int edges); | 73 int edges); |
74 #endif | 74 #endif |
75 | 75 |
76 // Function to retrieve default opacity value mainly based on platform | 76 // Function to retrieve default opacity value mainly based on platform |
77 // and desktop context. | 77 // and desktop context. |
78 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( | 78 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( |
79 const views::Widget::InitParams& params); | 79 const views::Widget::InitParams& params); |
80 | 80 |
81 scoped_ptr<ScopedKeepAlive> keep_alive_; | 81 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
82 | 82 |
83 #if defined(OS_WIN) | 83 #if defined(OS_WIN) |
84 AppbarAutohideEdgeMap appbar_autohide_edge_map_; | 84 AppbarAutohideEdgeMap appbar_autohide_edge_map_; |
85 // If true we're in the process of notifying a callback from | 85 // If true we're in the process of notifying a callback from |
86 // GetAutohideEdges().start a new query. | 86 // GetAutohideEdges().start a new query. |
87 bool in_autohide_edges_callback_; | 87 bool in_autohide_edges_callback_; |
88 | 88 |
89 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 89 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
90 #endif | 90 #endif |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 92 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
93 }; | 93 }; |
94 | 94 |
95 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 95 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |