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

Side by Side Diff: chrome/browser/ui/tab_dialogs.h

Issue 1880853002: Convert ValidationMessageBubbleView to BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review 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 <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h"
11 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
12 #include "base/supports_user_data.h" 13 #include "base/supports_user_data.h"
13 #include "chrome/browser/ui/validation_message_bubble.h" 14 #include "chrome/browser/ui/validation_message_bubble.h"
14 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
15 16
16 class Browser; 17 class Browser;
17 class Profile; 18 class Profile;
18 19
19 namespace content { 20 namespace content {
20 class WebContents; 21 class WebContents;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Browser* browser, 57 Browser* browser,
57 Profile* profile, 58 Profile* profile,
58 const std::string& username, 59 const std::string& username,
59 ui::ProfileSigninConfirmationDelegate* delegate) = 0; 60 ui::ProfileSigninConfirmationDelegate* delegate) = 0;
60 61
61 // Shows or hides the ManagePasswords bubble. 62 // Shows or hides the ManagePasswords bubble.
62 // Pass true for |user_action| if this is a user initiated action. 63 // Pass true for |user_action| if this is a user initiated action.
63 virtual void ShowManagePasswordsBubble(bool user_action) = 0; 64 virtual void ShowManagePasswordsBubble(bool user_action) = 0;
64 virtual void HideManagePasswordsBubble() = 0; 65 virtual void HideManagePasswordsBubble() = 0;
65 66
66 virtual std::unique_ptr<ValidationMessageBubble> ShowValidationMessage( 67 virtual base::WeakPtr<ValidationMessageBubble> ShowValidationMessage(
67 const gfx::Rect& anchor_in_root_view, 68 const gfx::Rect& anchor_in_root_view,
68 const base::string16& main_text, 69 const base::string16& main_text,
69 const base::string16& sub_text) = 0; 70 const base::string16& sub_text) = 0;
70 71
71 protected: 72 protected:
72 static const void* UserDataKey(); 73 static const void* UserDataKey();
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_ 76 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698