OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Use the <code>chrome.feedbackPrivate</code> API to provide Chrome [OS] | 5 // Use the <code>chrome.feedbackPrivate</code> API to provide Chrome [OS] |
6 // feedback to the Google Feedback servers. | 6 // feedback to the Google Feedback servers. |
7 namespace feedbackPrivate { | 7 namespace feedbackPrivate { |
8 | 8 |
9 dictionary AttachedFile { | 9 dictionary AttachedFile { |
10 DOMString name; | 10 DOMString name; |
11 [instanceOf=Blob] object? data; | 11 [instanceOf=Blob] object? data; |
12 }; | 12 }; |
13 | 13 |
14 dictionary SystemInformation { | 14 dictionary SystemInformation { |
15 DOMString key; | 15 DOMString key; |
16 DOMString value; | 16 DOMString value; |
17 }; | 17 }; |
18 | 18 |
19 // Supported feedback flows. | 19 // Supported feedback flows. |
20 enum FeedbackFlow { | 20 enum FeedbackFlow { |
21 // Flow for regular user. This is the default. | 21 // Flow for regular user. This is the default. |
22 regular, | 22 regular, |
23 | 23 |
24 // Flow on the ChromeOS login screen. URL entry, file attaching and landing | 24 // Flow on the ChromeOS login screen. URL entry, file attaching and landing |
25 // page is disabled for this flow. | 25 // page is disabled for this flow. |
26 login, | 26 login, |
27 | 27 |
28 // Flow where a prompt to download the Chrome Cleanup Tool is displayed | 28 // Flow where a prompt to download the Chrome Cleanup Tool is displayed |
29 // prior to showing the feedback form. | 29 // prior to showing the feedback form. |
30 showSrtPrompt | 30 showSrtPrompt, |
31 | |
32 // Flow when the feedback is requested from the sad tab ("Aw, Sanp!") page | |
lazyboy
2017/05/23 18:24:09
s/Sanp/Snap
afakhry
2017/05/24 17:40:20
Done.
| |
33 // when the renderer crashes. | |
34 sadTabCrash | |
31 }; | 35 }; |
32 | 36 |
33 dictionary FeedbackInfo { | 37 dictionary FeedbackInfo { |
34 // File to attach to the feedback report. | 38 // File to attach to the feedback report. |
35 AttachedFile? attachedFile; | 39 AttachedFile? attachedFile; |
36 | 40 |
37 // An optional tag to label what type this feedback is. | 41 // An optional tag to label what type this feedback is. |
38 DOMString? categoryTag; | 42 DOMString? categoryTag; |
39 | 43 |
40 // The feedback text describing the user issue. | 44 // The feedback text describing the user issue. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 // Returns the system information dictionary. | 108 // Returns the system information dictionary. |
105 static void getSystemInformation(GetSystemInformationCallback callback); | 109 static void getSystemInformation(GetSystemInformationCallback callback); |
106 | 110 |
107 // Sends a feedback report. | 111 // Sends a feedback report. |
108 static void sendFeedback(FeedbackInfo feedback, | 112 static void sendFeedback(FeedbackInfo feedback, |
109 SendFeedbackCallback callback); | 113 SendFeedbackCallback callback); |
110 | 114 |
111 // Gets localized translated strings for feedback. It returns the | 115 // Gets localized translated strings for feedback. It returns the |
112 // strings as a dictionary mapping from string identifier to the | 116 // strings as a dictionary mapping from string identifier to the |
113 // translated string to use in the feedback app UI. | 117 // translated string to use in the feedback app UI. |
114 static void getStrings(GetStringsCallback callback); | 118 static void getStrings(FeedbackFlow flow, GetStringsCallback callback); |
115 | 119 |
116 // Logs whether the user accepted a prompt to try the Software Removal | 120 // Logs whether the user accepted a prompt to try the Software Removal |
117 // Tool. | 121 // Tool. |
118 static void logSrtPromptResult(SrtPromptResult result); | 122 static void logSrtPromptResult(SrtPromptResult result); |
119 }; | 123 }; |
120 | 124 |
121 interface Events { | 125 interface Events { |
122 // Fired when the a user requests the launch of the feedback UI. We're | 126 // Fired when the a user requests the launch of the feedback UI. We're |
123 // using an event for this versus using the override API since we want | 127 // using an event for this versus using the override API since we want |
124 // to be invoked, but not showing a UI, so the feedback extension can | 128 // to be invoked, but not showing a UI, so the feedback extension can |
125 // take a screenshot of the user's desktop. | 129 // take a screenshot of the user's desktop. |
126 static void onFeedbackRequested(FeedbackInfo feedback); | 130 static void onFeedbackRequested(FeedbackInfo feedback); |
127 }; | 131 }; |
128 }; | 132 }; |
OLD | NEW |