| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2009 Google Inc. All Rights Reserved. |
| 2 // Author: micapolos@google.com (Michal Pociecha-Los) |
| 3 // |
| 4 // Messages containing DOM data captured from the browser. |
| 5 // It includes the structure of the HTML document and Navigator data. |
| 6 |
| 7 syntax = "proto2"; |
| 8 |
| 9 package userfeedback; |
| 10 |
| 11 // Data captured from HTMLDocument DOM object. |
| 12 message HtmlDocument { |
| 13 |
| 14 // The value of document.URL property. |
| 15 required string url = 1; |
| 16 |
| 17 // The value of document.title property. |
| 18 optional string title = 2; |
| 19 |
| 20 // The value of document.documentElement property. |
| 21 optional HtmlElement document_element = 3; |
| 22 }; |
| 23 |
| 24 // Data captured from HTMLElement DOM object. |
| 25 message HtmlElement { |
| 26 |
| 27 // The value of element.tagName property. |
| 28 required string tag_name = 1; |
| 29 |
| 30 // The value of element.id property. |
| 31 optional string id = 2; |
| 32 |
| 33 // The value of element.className property. |
| 34 optional string class_name = 3; |
| 35 |
| 36 // A list of child elements. |
| 37 repeated HtmlElement child_element = 4; |
| 38 |
| 39 // The value of frame.contentDocument property for FRAME and IFRAME elements. |
| 40 optional HtmlDocument frame_content_document = 5; |
| 41 }; |
| 42 |
| 43 // Data captured from DOM Navigator object. |
| 44 message Navigator { |
| 45 |
| 46 // The value of 'navigator.appCodeName' property. |
| 47 optional string app_code_name = 1; |
| 48 |
| 49 // The value of 'navigator.appName' property. |
| 50 optional string app_name = 2; |
| 51 |
| 52 // The value of 'navigator.appVersion' property. |
| 53 optional string app_version = 3; |
| 54 |
| 55 // The value of 'navigator.appMinorVersion' property. |
| 56 optional string app_minor_version = 4; |
| 57 |
| 58 // The value of 'navigator.cookieEnabled' property. |
| 59 optional bool cookie_enabled = 5; |
| 60 |
| 61 // The value of 'navigator.cpuClass' property. |
| 62 optional string cpu_class = 6; |
| 63 |
| 64 // The value of 'navigator.onLine' property. |
| 65 optional bool on_line = 7; |
| 66 |
| 67 // The value of 'navigator.platform' property. |
| 68 optional string platform = 8; |
| 69 |
| 70 // The value of 'navigator.browserLanguage' property. |
| 71 optional string browser_language = 9; |
| 72 |
| 73 // The value of 'navigator.systemLanguage' property. |
| 74 optional string system_language = 10; |
| 75 |
| 76 // The value of 'navigator.userAgent' property. |
| 77 optional string user_agent = 11; |
| 78 |
| 79 // The return value of 'navigator.javaEnabled()' method. |
| 80 optional bool java_enabled = 12; |
| 81 |
| 82 // The return value of 'navigator.taintEnabled()' method. |
| 83 optional bool taint_enabled = 13; |
| 84 |
| 85 // Plugin names specified by 'navigator.plugins' property. |
| 86 repeated string plugin_name = 14; |
| 87 }; |
| 88 |
| 89 // A path in the HTML document between two elements, which are in the |
| 90 // ancestor-descendant relationship. |
| 91 message HtmlPath { |
| 92 |
| 93 // Ordered list of zero-based indices. |
| 94 // Empty path selects root element. |
| 95 // Non-negative index N selects (N+1)-th child. |
| 96 // Index -1 selects root element from frame content document. |
| 97 repeated int32 index = 1; |
| 98 }; |
| OLD | NEW |