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

Side by Side Diff: chrome/browser/ui/views/app_list/app_list_dialog_container.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/views/app_list/app_list_dialog_container.h" 5 #include "chrome/browser/ui/views/app_list/app_list_dialog_container.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ~NativeDialogContainer() override {} 213 ~NativeDialogContainer() override {}
214 214
215 private: 215 private:
216 // Overridden from views::View: 216 // Overridden from views::View:
217 gfx::Size GetPreferredSize() const override { return size_; } 217 gfx::Size GetPreferredSize() const override { return size_; }
218 218
219 // Overridden from views::WidgetDelegate: 219 // Overridden from views::WidgetDelegate:
220 views::NonClientFrameView* CreateNonClientFrameView( 220 views::NonClientFrameView* CreateNonClientFrameView(
221 views::Widget* widget) override { 221 views::Widget* widget) override {
222 FullSizeBubbleFrameView* frame = new FullSizeBubbleFrameView(); 222 FullSizeBubbleFrameView* frame = new FullSizeBubbleFrameView();
223 scoped_ptr<views::BubbleBorder> border(new views::BubbleBorder( 223 std::unique_ptr<views::BubbleBorder> border(new views::BubbleBorder(
224 views::BubbleBorder::FLOAT, kShadowType, gfx::kPlaceholderColor)); 224 views::BubbleBorder::FLOAT, kShadowType, gfx::kPlaceholderColor));
225 border->set_use_theme_background_color(true); 225 border->set_use_theme_background_color(true);
226 frame->SetBubbleBorder(std::move(border)); 226 frame->SetBubbleBorder(std::move(border));
227 return frame; 227 return frame;
228 } 228 }
229 229
230 const gfx::Size size_; 230 const gfx::Size size_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(NativeDialogContainer); 232 DISALLOW_COPY_AND_ASSIGN(NativeDialogContainer);
233 }; 233 };
234 234
235 } // namespace 235 } // namespace
236 236
237 views::DialogDelegateView* CreateAppListContainerForView( 237 views::DialogDelegateView* CreateAppListContainerForView(
238 views::View* view, 238 views::View* view,
239 const base::Closure& close_callback) { 239 const base::Closure& close_callback) {
240 return new AppListDialogContainer(view, close_callback); 240 return new AppListDialogContainer(view, close_callback);
241 } 241 }
242 242
243 views::DialogDelegateView* CreateDialogContainerForView( 243 views::DialogDelegateView* CreateDialogContainerForView(
244 views::View* view, 244 views::View* view,
245 const gfx::Size& size, 245 const gfx::Size& size,
246 const base::Closure& close_callback) { 246 const base::Closure& close_callback) {
247 return new NativeDialogContainer(view, size, close_callback); 247 return new NativeDialogContainer(view, size, close_callback);
248 } 248 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/validation_message_bubble.h ('k') | chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698