Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 namespace feedbackPrivate { | |
| 6 | |
| 7 dictionary AttachedFile { | |
| 8 DOMString name; | |
| 9 [instanceOf=Blob] object data; | |
| 10 }; | |
| 11 | |
| 12 dictionary SystemInformation { | |
| 13 DOMString key; | |
| 14 DOMString value; | |
| 15 }; | |
| 16 | |
| 17 dictionary FeedbackInfo { | |
| 18 // File to attach to the feedback report. | |
| 19 AttachedFile? attachedFile; | |
| 20 | |
| 21 // An optional tag to label what type this feedback is. | |
| 22 DOMString? categoryTag; | |
| 23 | |
| 24 // The feedback text describing the user issue. | |
| 25 DOMString description; | |
| 26 | |
| 27 // The e-mail of the user that initiated this feedback. | |
| 28 DOMString? email; | |
| 29 | |
| 30 // The URL of the page that this issue was being experienced on. | |
| 31 DOMString? pageUrl; | |
| 32 | |
| 33 // Optional product ID to override the Chrome [OS] product id that is | |
| 34 // usually passed to the feedback server. | |
| 35 DOMString? productId; | |
| 36 | |
| 37 // Screenshot to send with this feedback. This need to be a base64 encoded | |
|
asargent_no_longer_on_chrome
2013/06/17 19:32:40
typo: "This need" -> "This needs"
Also, is the "b
rkc
2013/06/17 21:48:19
Ah, old comment, changed.
I had originally started
| |
| 38 // png image. | |
| 39 [instanceOf=Blob] object? screenshot; | |
| 40 | |
| 41 // An array of key/value pairs providing system information for this | |
| 42 // feedback report. | |
| 43 SystemInformation[]? systemInformation; | |
| 44 | |
| 45 // TODO(rkc): Remove these once we have bindings to send blobs to Chrome. | |
| 46 // Used internally to store the blob Url after parameter customization. | |
| 47 DOMString attachedFileBlobUrl; | |
| 48 DOMString screenshotBlobUrl; | |
| 49 }; | |
| 50 | |
| 51 // Status of the sending of a feedback report. | |
| 52 enum Status {success, delayed}; | |
| 53 | |
| 54 callback GetUserEmailCallback = void(DOMString email); | |
| 55 callback GetSystemInformationCallback = | |
| 56 void(SystemInformation[] systemInformation); | |
|
asargent_no_longer_on_chrome
2013/06/17 19:32:40
Since this is a private API it's ok for this to be
rkc
2013/06/17 21:48:19
I'll think about how to integrate this information
| |
| 57 callback SendFeedbackCallback = void(Status status); | |
| 58 callback GetStringsCallback = void(object result); | |
| 59 | |
| 60 interface Functions { | |
| 61 // Returns the email of the currently active or logged in user. | |
| 62 static void getUserEmail(GetUserEmailCallback callback); | |
| 63 | |
| 64 // Returns the system information dictionary. | |
| 65 static void getSystemInformation(GetSystemInformationCallback callback); | |
| 66 | |
| 67 // Sends a feedback report. | |
| 68 static void sendFeedback(FeedbackInfo feedback, | |
| 69 SendFeedbackCallback callback); | |
| 70 }; | |
| 71 | |
| 72 interface Events { | |
| 73 // Fired when the a user requests the launch of the feedback UI. We're | |
| 74 // using an event for this versus using the override API since we want | |
| 75 // to be invoked, but not showing a UI, so the feedback extension can | |
| 76 // take a screenshot of the user's desktop. | |
| 77 static void onFeedbackRequested(FeedbackInfo feedback); | |
| 78 }; | |
| 79 }; | |
| OLD | NEW |