| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2009 Google Inc. All Rights Reserved. |
| 2 // Author: morgwai@google.com (Morgwai Kotarbinski) |
| 3 // |
| 4 // Messages sent from extension to feedback server as JSON. |
| 5 |
| 6 syntax = "proto2"; |
| 7 |
| 8 package userfeedback; |
| 9 |
| 10 import "common.proto"; |
| 11 import "dom.proto"; |
| 12 import "math.proto"; |
| 13 import "web.proto"; |
| 14 |
| 15 // Sent along with request for extension page when user attempts to open |
| 16 // feedback tab. |
| 17 message ExtensionPageRequestParams { |
| 18 |
| 19 required ExtensionDetails extension_details = 1; |
| 20 |
| 21 // Url of the page (without request params) that user wants to open |
| 22 // feedback tool for. |
| 23 required string url = 2; |
| 24 }; |
| 25 |
| 26 message PostedScreenshot { |
| 27 |
| 28 required string mime_type = 1; |
| 29 |
| 30 required Dimensions dimensions = 2; |
| 31 |
| 32 optional string base64_content = 3; |
| 33 |
| 34 optional bytes binary_content = 4; |
| 35 }; |
| 36 |
| 37 // Contains data about possible errors on the client side. |
| 38 // Describes number of attempts to send feedback and possible error codes/ |
| 39 // exceptions which occured. |
| 40 message ExtensionErrors { |
| 41 |
| 42 required int32 number_of_attempts = 1; |
| 43 |
| 44 required string errors = 2; |
| 45 }; |
| 46 |
| 47 // Sent when user hits final submit button in external extension. |
| 48 // NOTE: Field numbers for ExternalExtensionSubmit and InternalExtensionSubmit |
| 49 // share the same number space, because we don't want submission from internal |
| 50 // extension to the external address, or submission from external extension to |
| 51 // internal address, work by accident, partially work, or break in an odd way. |
| 52 // If the field numbers were overlapping for both protos, such cross-submission |
| 53 // might work, due to the specifics of JsPbLite. |
| 54 message ExternalExtensionSubmit { |
| 55 |
| 56 required CommonData common_data = 1; |
| 57 |
| 58 required WebData web_data = 2; |
| 59 |
| 60 required int32 type_id = 3; |
| 61 |
| 62 optional PostedScreenshot screenshot = 4; |
| 63 |
| 64 optional HtmlDocument html_document_structure = 5; |
| 65 |
| 66 optional ExtensionErrors extension_errors = 13; |
| 67 }; |
| 68 |
| 69 // Sent when user hits final submit button in internal extension. |
| 70 // NOTE: Field numbers for ExternalExtensionSubmit and InternalExtensionSubmit |
| 71 // share the same number space. See comment for ExternalExtensionSubmit. |
| 72 message InternalExtensionSubmit { |
| 73 |
| 74 required CommonData common_data = 6; |
| 75 |
| 76 required WebData web_data = 7; |
| 77 |
| 78 optional int32 type_id = 8; |
| 79 |
| 80 optional PostedScreenshot screenshot = 9; |
| 81 |
| 82 optional HtmlDocument html_document_structure = 10; |
| 83 |
| 84 optional InternalWebData internal_data = 11; |
| 85 |
| 86 optional ExtensionErrors extension_errors = 12; |
| 87 }; |
| 88 |
| 89 // A query for suggestions, sent when the user hits the preview button. |
| 90 message SuggestQuery { |
| 91 |
| 92 required CommonData common_data = 1; |
| 93 |
| 94 required WebData web_data = 2; |
| 95 |
| 96 required int32 type_id = 3; |
| 97 |
| 98 optional HtmlDocument html_document_structure = 4; |
| 99 }; |
| OLD | NEW |