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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/terms_of_service_screen_handler.h

Issue 14208014: Simplify adding callbacks. (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_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H _ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H _
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H _ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H _
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Update the domain name shown in the UI. 46 // Update the domain name shown in the UI.
47 void UpdateDomainInUI(); 47 void UpdateDomainInUI();
48 48
49 // Update the UI to show an error message or the Terms of Service, depending 49 // Update the UI to show an error message or the Terms of Service, depending
50 // on whether the download of the Terms of Service was successful. Does 50 // on whether the download of the Terms of Service was successful. Does
51 // nothing if the download is still in progress. 51 // nothing if the download is still in progress.
52 void UpdateTermsOfServiceInUI(); 52 void UpdateTermsOfServiceInUI();
53 53
54 // Called when the user declines the Terms of Service by clicking the "back" 54 // Called when the user declines the Terms of Service by clicking the "back"
55 // button. 55 // button.
56 void HandleBack(const base::ListValue* args); 56 void HandleBack();
57 57
58 // Called when the user accepts the Terms of Service by clicking the "accept 58 // Called when the user accepts the Terms of Service by clicking the "accept
59 // and continue" button. 59 // and continue" button.
60 void HandleAccept(const base::ListValue* args); 60 void HandleAccept();
61 61
62 TermsOfServiceScreenHandler::Delegate* screen_; 62 TermsOfServiceScreenHandler::Delegate* screen_;
63 63
64 // Whether the screen should be shown right after initialization. 64 // Whether the screen should be shown right after initialization.
65 bool show_on_init_; 65 bool show_on_init_;
66 66
67 // The domain name whose Terms of Service are being shown. 67 // The domain name whose Terms of Service are being shown.
68 std::string domain_; 68 std::string domain_;
69 69
70 // Set to |true| when the download of the Terms of Service fails. 70 // Set to |true| when the download of the Terms of Service fails.
71 bool load_error_; 71 bool load_error_;
72 72
73 // Set to the Terms of Service when the download is successful. 73 // Set to the Terms of Service when the download is successful.
74 std::string terms_of_service_; 74 std::string terms_of_service_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler); 76 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler);
77 }; 77 };
78 78
79 } // namespace chromeos 79 } // namespace chromeos
80 80
81 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLE R_H_ 81 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698