| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 int edges); | 72 int edges); |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 // Function to retrieve default opacity value mainly based on platform | 75 // Function to retrieve default opacity value mainly based on platform |
| 76 // and desktop context. | 76 // and desktop context. |
| 77 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( | 77 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( |
| 78 const views::Widget::InitParams& params); | 78 const views::Widget::InitParams& params); |
| 79 | 79 |
| 80 #if defined(OS_WIN) | 80 #if defined(OS_WIN) |
| 81 AppbarAutohideEdgeMap appbar_autohide_edge_map_; | 81 AppbarAutohideEdgeMap appbar_autohide_edge_map_; |
| 82 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | |
| 83 // 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 |
| 84 // GetAutohideEdges().start a new query. | 83 // GetAutohideEdges().start a new query. |
| 85 bool in_autohide_edges_callback_; | 84 bool in_autohide_edges_callback_; |
| 85 |
| 86 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
| 86 #endif | 87 #endif |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 92 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |