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

Side by Side Diff: chrome/browser/signin/signin_global_error.h

Issue 14262009: Add support for multi-line GlobalError messages to Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_
7 7
8 #include <set> 8 #include <set>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 GoogleServiceAuthError GetLastAuthError() const { return auth_error_; } 48 GoogleServiceAuthError GetLastAuthError() const { return auth_error_; }
49 49
50 // GlobalError implementation. 50 // GlobalError implementation.
51 virtual bool HasMenuItem() OVERRIDE; 51 virtual bool HasMenuItem() OVERRIDE;
52 virtual int MenuItemCommandID() OVERRIDE; 52 virtual int MenuItemCommandID() OVERRIDE;
53 virtual string16 MenuItemLabel() OVERRIDE; 53 virtual string16 MenuItemLabel() OVERRIDE;
54 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; 54 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE;
55 virtual bool HasBubbleView() OVERRIDE; 55 virtual bool HasBubbleView() OVERRIDE;
56 virtual string16 GetBubbleViewTitle() OVERRIDE; 56 virtual string16 GetBubbleViewTitle() OVERRIDE;
57 virtual string16 GetBubbleViewMessage() OVERRIDE; 57 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE;
58 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; 58 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE;
59 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; 59 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE;
60 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; 60 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE;
61 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; 61 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE;
62 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; 62 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE;
63 63
64 private: 64 private:
65 std::set<const AuthStatusProvider*> provider_set_; 65 std::set<const AuthStatusProvider*> provider_set_;
66 66
67 // The auth error detected the last time AuthStatusChanged() was invoked (or 67 // The auth error detected the last time AuthStatusChanged() was invoked (or
68 // NONE if AuthStatusChanged() has never been invoked). 68 // NONE if AuthStatusChanged() has never been invoked).
69 GoogleServiceAuthError auth_error_; 69 GoogleServiceAuthError auth_error_;
70 70
71 // The SigninManager that owns this object. 71 // The SigninManager that owns this object.
72 SigninManager* signin_manager_; 72 SigninManager* signin_manager_;
73 73
74 // The Profile this object belongs to. 74 // The Profile this object belongs to.
75 Profile* profile_; 75 Profile* profile_;
76 }; 76 };
77 77
78 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_ 78 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_GLOBAL_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698