| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 package org.chromium.chromoting.help; | 5 package org.chromium.chromoting.help; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 | 8 |
| 9 /** Common interface for help-and-feedback implementations. */ | 9 /** Common interface for help-and-feedback implementations. */ |
| 10 public interface HelpAndFeedback { | 10 public interface HelpAndFeedback { |
| 11 /** | 11 /** |
| 12 * Launches a new activity for displaying a Help screen. The implementation
will show | 12 * Launches a new activity for displaying a Help screen. The implementation
will show |
| 13 * information depending on the context, and will allow the user to submit a
Feedback | 13 * information depending on the context, and will allow the user to submit a
Feedback |
| 14 * report. The implementation may also grab a screenshot, so the caller shou
ld take | 14 * report. The implementation may also grab a screenshot, so the caller shou
ld take |
| 15 * any steps to prepare the display before calling this method (for example,
closing | 15 * any steps to prepare the display before calling this method (for example,
closing |
| 16 * navigation drawers). | 16 * navigation drawers). |
| 17 * @param activity Parent activity of the Help screen. | 17 * @param activity Parent activity of the Help screen. |
| 18 * @param helpContext String used by the implementation to show context-base
d help. | 18 * @param helpContext String used by the implementation to show context-base
d help. |
| 19 */ | 19 */ |
| 20 void launchHelp(Activity activity, HelpContext helpContext); | 20 void launchHelp(Activity activity, HelpContext helpContext); |
| 21 |
| 22 /** |
| 23 * Launches a new activity for displaying the feedback screen. The implement
ation may grab |
| 24 * a screenshot. |
| 25 * @param activity Parent activity of the feedback screen. |
| 26 */ |
| 27 void launchFeedback(Activity activity); |
| 21 } | 28 } |
| OLD | NEW |