Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698