OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_SYNC_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/api/sync/profile_sync_service_observer.h" | 10 #include "chrome/browser/api/sync/profile_sync_service_observer.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual string16 GetBubbleViewMessage() OVERRIDE; | 33 virtual string16 GetBubbleViewMessage() OVERRIDE; |
34 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; | 34 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; |
35 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; | 35 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; |
36 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; | 36 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; |
37 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; | 37 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; |
38 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; | 38 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; |
39 | 39 |
40 // ProfileSyncServiceObserver implementation. | 40 // ProfileSyncServiceObserver implementation. |
41 virtual void OnStateChanged() OVERRIDE; | 41 virtual void OnStateChanged() OVERRIDE; |
42 | 42 |
43 // For non-ChromeOS we customize the "Sign in to sync" wrench menu item | |
44 // instead of adding a new wrench menu item at the bottom. | |
45 bool HasCustomizedSyncMenuItem(); | |
46 | |
47 private: | 43 private: |
48 string16 bubble_accept_label_; | 44 string16 bubble_accept_label_; |
49 string16 bubble_message_; | 45 string16 bubble_message_; |
50 string16 menu_label_; | 46 string16 menu_label_; |
51 ProfileSyncService* service_; | 47 ProfileSyncService* service_; |
52 SigninManager* signin_; | 48 SigninManager* signin_; |
53 | 49 |
54 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); | 50 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); |
55 }; | 51 }; |
56 | 52 |
57 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ | 53 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
OLD | NEW |