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

Side by Side Diff: chrome/browser/ui/tab_dialogs.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 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 #ifndef CHROME_BROWSER_UI_TAB_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_DIALOGS_H_
6 #define CHROME_BROWSER_UI_TAB_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_TAB_DIALOGS_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "chrome/browser/ui/validation_message_bubble.h" 13 #include "chrome/browser/ui/validation_message_bubble.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 15
16 class Browser; 16 class Browser;
17 class Profile; 17 class Profile;
18 18
19 namespace content { 19 namespace content {
20 class WebContents; 20 class WebContents;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Browser* browser, 56 Browser* browser,
57 Profile* profile, 57 Profile* profile,
58 const std::string& username, 58 const std::string& username,
59 ui::ProfileSigninConfirmationDelegate* delegate) = 0; 59 ui::ProfileSigninConfirmationDelegate* delegate) = 0;
60 60
61 // Shows or hides the ManagePasswords bubble. 61 // Shows or hides the ManagePasswords bubble.
62 // Pass true for |user_action| if this is a user initiated action. 62 // Pass true for |user_action| if this is a user initiated action.
63 virtual void ShowManagePasswordsBubble(bool user_action) = 0; 63 virtual void ShowManagePasswordsBubble(bool user_action) = 0;
64 virtual void HideManagePasswordsBubble() = 0; 64 virtual void HideManagePasswordsBubble() = 0;
65 65
66 virtual scoped_ptr<ValidationMessageBubble> ShowValidationMessage( 66 virtual std::unique_ptr<ValidationMessageBubble> ShowValidationMessage(
67 const gfx::Rect& anchor_in_root_view, 67 const gfx::Rect& anchor_in_root_view,
68 const base::string16& main_text, 68 const base::string16& main_text,
69 const base::string16& sub_text) = 0; 69 const base::string16& sub_text) = 0;
70 70
71 protected: 71 protected:
72 static const void* UserDataKey(); 72 static const void* UserDataKey();
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_ 75 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_iterator_unittest.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698