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

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

Issue 867323005: MacViews: Fix duplicate definition of ValidationMessageBubble::ShowAndCreate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FirstResponder
Patch Set: Created 5 years, 11 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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h"
10 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "chrome/browser/ui/validation_message_bubble.h"
11 14
12 class Browser; 15 class Browser;
13 class Profile; 16 class Profile;
14 17
15 namespace content { 18 namespace content {
16 class WebContents; 19 class WebContents;
17 } 20 }
18 21
22 namespace gfx {
23 class Rect;
24 }
25
19 namespace ui { 26 namespace ui {
20 class ProfileSigninConfirmationDelegate; 27 class ProfileSigninConfirmationDelegate;
21 } 28 }
22 29
23 // A cross-platform interface for invoking various tab modal dialogs/bubbles. 30 // A cross-platform interface for invoking various tab modal dialogs/bubbles.
24 class TabDialogs : public base::SupportsUserData::Data { 31 class TabDialogs : public base::SupportsUserData::Data {
25 public: 32 public:
26 ~TabDialogs() override {} 33 ~TabDialogs() override {}
27 34
28 // Creates a platform specific instance, and attaches it to |contents|. 35 // Creates a platform specific instance, and attaches it to |contents|.
(...skipping 16 matching lines...) Expand all
45 Browser* browser, 52 Browser* browser,
46 Profile* profile, 53 Profile* profile,
47 const std::string& username, 54 const std::string& username,
48 ui::ProfileSigninConfirmationDelegate* delegate) = 0; 55 ui::ProfileSigninConfirmationDelegate* delegate) = 0;
49 56
50 // Shows or hides the ManagePasswords bubble. 57 // Shows or hides the ManagePasswords bubble.
51 // Pass true for |user_action| if this is a user initiated action. 58 // Pass true for |user_action| if this is a user initiated action.
52 virtual void ShowManagePasswordsBubble(bool user_action) = 0; 59 virtual void ShowManagePasswordsBubble(bool user_action) = 0;
53 virtual void HideManagePasswordsBubble() = 0; 60 virtual void HideManagePasswordsBubble() = 0;
54 61
62 virtual scoped_ptr<ValidationMessageBubble> ShowValidationMessage(
63 const gfx::Rect& anchor_in_root_view,
64 const base::string16& main_text,
65 const base::string16& sub_text) = 0;
66
55 protected: 67 protected:
56 static const void* UserDataKey(); 68 static const void* UserDataKey();
57 }; 69 };
58 70
59 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_ 71 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm ('k') | chrome/browser/ui/validation_message_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698