Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 | 45 |
| 46 // Observer to notify UI event. | 46 // Observer to notify UI event. |
| 47 class Observer { | 47 class Observer { |
| 48 public: | 48 public: |
| 49 virtual ~Observer() = default; | 49 virtual ~Observer() = default; |
| 50 | 50 |
| 51 // Called when the ARC support window is closed. | 51 // Called when the ARC support window is closed. |
| 52 virtual void OnWindowClosed() {} | 52 virtual void OnWindowClosed() {} |
| 53 | 53 |
| 54 // Called when the user press AGREE button on ToS page. | 54 // Called when the user press AGREE button on ToS page. |
| 55 virtual void OnTermsAgreed(bool is_metrics_enabled, | 55 virtual void OnTermsAccepted(bool is_metrics_enabled, |
|
hidehiko
2016/12/20 15:20:45
Thank you for the refactoring. Could you make anot
khmel
2016/12/20 16:27:58
If we are renaming comments in this CL why not to
| |
| 56 bool is_backup_and_restore_enabled, | 56 bool is_backup_and_restore_enabled, |
| 57 bool is_location_service_enabled) {} | 57 bool is_location_service_enabled) {} |
| 58 | 58 |
| 59 // Called when LSO auth token fetch is successfully completed. | 59 // Called when LSO auth token fetch is successfully completed. |
| 60 virtual void OnAuthSucceeded(const std::string& auth_code) {} | 60 virtual void OnAuthSucceeded(const std::string& auth_code) {} |
| 61 | 61 |
| 62 // Called when "RETRY" button on the error page is clicked. | 62 // Called when "RETRY" button on the error page is clicked. |
| 63 virtual void OnRetryClicked() {} | 63 virtual void OnRetryClicked() {} |
| 64 | 64 |
| 65 // Called when send feedback button on error page is clicked. | 65 // Called when send feedback button on error page is clicked. |
| 66 virtual void OnSendFeedbackClicked() {} | 66 virtual void OnSendFeedbackClicked() {} |
| 67 }; | 67 }; |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 94 | 94 |
| 95 // Requests to close the extension window. | 95 // Requests to close the extension window. |
| 96 void Close(); | 96 void Close(); |
| 97 | 97 |
| 98 // Requests to show the "Terms Of Service" page. | 98 // Requests to show the "Terms Of Service" page. |
| 99 void ShowTermsOfService(); | 99 void ShowTermsOfService(); |
| 100 | 100 |
| 101 // Requests to show the LSO page. | 101 // Requests to show the LSO page. |
| 102 void ShowLso(); | 102 void ShowLso(); |
| 103 | 103 |
| 104 // Requests to show the "ARC is loading" page. | 104 // Requests to show the "ARC is loading" page. If |force_activate| is set to |
| 105 void ShowArcLoading(); | 105 // true and UI is not shown this call activates UI first. If |force_activate| |
| 106 // is set to false then this call does not activate UI and stores ui_page_ | |
| 107 // state only. | |
| 108 void ShowArcLoading(bool force_activate); | |
|
hidehiko
2016/12/20 15:20:45
The flag looks unnecessary complexity to me. Clien
khmel
2016/12/20 16:27:58
Responded in cc file.
| |
| 106 | 109 |
| 107 // Requests to show the error page | 110 // Requests to show the error page |
| 108 void ShowError(Error error, bool should_show_send_feedback); | 111 void ShowError(Error error, bool should_show_send_feedback); |
| 109 | 112 |
| 110 void SetMetricsPreferenceCheckbox(bool is_enabled, bool is_managed); | 113 void SetMetricsPreferenceCheckbox(bool is_enabled, bool is_managed); |
| 111 void SetBackupAndRestorePreferenceCheckbox(bool is_enabled, bool is_managed); | 114 void SetBackupAndRestorePreferenceCheckbox(bool is_enabled, bool is_managed); |
| 112 void SetLocationServicesPreferenceCheckbox(bool is_enabled, bool is_managed); | 115 void SetLocationServicesPreferenceCheckbox(bool is_enabled, bool is_managed); |
| 113 | 116 |
| 114 // arc::ArcSupportMessageHost::Observer override: | 117 // arc::ArcSupportMessageHost::Observer override: |
| 115 void OnMessage(const base::DictionaryValue& message) override; | 118 void OnMessage(const base::DictionaryValue& message) override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 bool is_arc_managed_ = false; | 186 bool is_arc_managed_ = false; |
| 184 | 187 |
| 185 PreferenceCheckboxData metrics_checkbox_; | 188 PreferenceCheckboxData metrics_checkbox_; |
| 186 PreferenceCheckboxData backup_and_restore_checkbox_; | 189 PreferenceCheckboxData backup_and_restore_checkbox_; |
| 187 PreferenceCheckboxData location_services_checkbox_; | 190 PreferenceCheckboxData location_services_checkbox_; |
| 188 | 191 |
| 189 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 192 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
| 190 }; | 193 }; |
| 191 | 194 |
| 192 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| OLD | NEW |