| 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 option optimize_for = LITE_RUNTIME; |
| 9 |
| 10 package userfeedback; |
| 11 |
| 12 import "common.proto"; |
| 13 import "chrome.proto"; |
| 14 import "dom.proto"; |
| 15 import "math.proto"; |
| 16 import "web.proto"; |
| 17 |
| 18 // Sent along with request for extension page when user attempts to open |
| 19 // feedback tab. |
| 20 message ExtensionPageRequestParams { |
| 21 |
| 22 required ExtensionDetails extension_details = 1; |
| 23 |
| 24 // Url of the page (without request params) that user wants to open |
| 25 // feedback tool for. |
| 26 required string url = 2; |
| 27 }; |
| 28 |
| 29 message PostedScreenshot { |
| 30 |
| 31 required string mime_type = 1; |
| 32 |
| 33 required Dimensions dimensions = 2; |
| 34 |
| 35 optional string base64_content = 3; |
| 36 |
| 37 optional bytes binary_content = 4; |
| 38 }; |
| 39 |
| 40 // Contains data about possible errors on the client side. |
| 41 // Describes number of attempts to send feedback and possible error codes/ |
| 42 // exceptions which occured. |
| 43 message ExtensionErrors { |
| 44 |
| 45 required int32 number_of_attempts = 1; |
| 46 |
| 47 required string errors = 2; |
| 48 }; |
| 49 |
| 50 // Sent when user hits final submit button. |
| 51 message ExtensionSubmit { |
| 52 |
| 53 required CommonData common_data = 1; |
| 54 |
| 55 required WebData web_data = 2; |
| 56 |
| 57 required int32 type_id = 3; |
| 58 |
| 59 optional PostedScreenshot screenshot = 4; |
| 60 |
| 61 optional ChromeData chrome_data = 14; |
| 62 |
| 63 repeated ProductSpecificBinaryData product_specific_binary_data = 15; |
| 64 |
| 65 optional string category_tag = 16; |
| 66 }; |
| 67 |
| 68 // A query for suggestions, sent when the user hits the preview button. |
| 69 message SuggestQuery { |
| 70 |
| 71 required CommonData common_data = 1; |
| 72 |
| 73 required WebData web_data = 2; |
| 74 |
| 75 required int32 type_id = 3; |
| 76 |
| 77 optional HtmlDocument html_document_structure = 4; |
| 78 |
| 79 optional ChromeData chrome_data = 5; |
| 80 }; |
| OLD | NEW |