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

Side by Side Diff: chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm

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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/cocoa/validation_message_bubble_cocoa.h" 5 #include "chrome/browser/ui/cocoa/validation_message_bubble_cocoa.h"
6 6
7 #include <memory>
8
7 #include "base/mac/foundation_util.h" 9 #include "base/mac/foundation_util.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
10 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 11 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
11 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 12 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
12 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" 13 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h"
13 #include "chrome/browser/ui/validation_message_bubble.h" 14 #include "chrome/browser/ui/validation_message_bubble.h"
14 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/render_widget_host.h" 16 #include "content/public/browser/render_widget_host.h"
16 #include "content/public/browser/render_widget_host_view.h" 17 #include "content/public/browser/render_widget_host_view.h"
17 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
18 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 ValidationMessageBubbleCocoa::~ValidationMessageBubbleCocoa() { 170 ValidationMessageBubbleCocoa::~ValidationMessageBubbleCocoa() {
170 [controller_ close]; 171 [controller_ close];
171 } 172 }
172 173
173 void ValidationMessageBubbleCocoa::SetPositionRelativeToAnchor( 174 void ValidationMessageBubbleCocoa::SetPositionRelativeToAnchor(
174 content::RenderWidgetHost* widget_host, 175 content::RenderWidgetHost* widget_host,
175 const gfx::Rect& anchor_in_root_view) { 176 const gfx::Rect& anchor_in_root_view) {
176 [controller_ setAnchorPoint:GetAnchorPoint(widget_host, anchor_in_root_view)]; 177 [controller_ setAnchorPoint:GetAnchorPoint(widget_host, anchor_in_root_view)];
177 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698