Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: ios/chrome/browser/ui/contextual_search/protos/client_discourse_context.proto

Issue 2588713002: Upstream Chrome on iOS source code [4/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8
9 package discourse_context;
10
11 message ClientDiscourseContext {
12 // Displays that have been shown to the user.
13 repeated Display display = 4;
14 }
15
16 message Display {
17 // A media item in the display, e.g. a webpage.
18 optional Media media = 9;
19 // URI describing this content, e.g. the URL of the webpage.
20 optional string uri = 10;
21 // User-selected text and surrounding content.
22 optional Selection selection = 13;
23 }
24
25 message Selection {
26 // Character encoding is specified in media.mime_type.
27 optional string content = 1;
28 // Character offsets (inclusive, non-inclusive) into content of the selected
29 // text.
30 optional int32 start = 2;
31 optional int32 end = 3;
32 }
33
34 message Media {
35 // The MIME type of the media item.
36 optional string mime_type = 3;
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698