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

Side by Side Diff: sync/protocol/server_render.proto

Issue 11745024: Synced Notification Sync Change Processor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 months 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 (c) 2012 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
6 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
7 // any fields in this file.
8
9 syntax = "proto2";
10
11 option optimize_for = LITE_RUNTIME;
12 option retain_unknown_fields = true;
13
14 package sync_pb;
15
16 // Data that is used directly by endpoints to render notifications in the case
17 // where no "native" app can handle the notification.
18 message RenderInfo {
19 message Layout {
20 enum LayoutType {
21 TITLE_AND_SUBTEXT = 1;
22 TITLE_AND_IMAGE = 2;
23 }
24 optional LayoutType layout_type = 1;
25
26 message TitleAndSubtextData {
27 optional string title = 1;
28 // The icon to show on the left of the notification.
29 optional Icon icon = 2;
30 // Multiple lines of the sub-text.
31 repeated string subtext = 3;
32 }
33 optional TitleAndSubtextData title_and_subtext_data = 3;
34
35 message TitleAndImageData {
36 optional string title = 1;
37 optional Image image = 2;
38 }
39 optional TitleAndImageData title_and_image_data = 4;
40 }
41 optional Layout layout = 1;
42
43 // An Action encapsulates an UI component that trigger certain programmable
44 // actions. Depending on the endpoint, this may show up as a html button,
45 // "quick actions" in the Android notification drawer, a link, or even the
46 // notification card itself (the "default" action case).
47 message Action {
48 // The description for the Action.
49 optional string text = 1;
50
51 // The icon to use for the Action.
52 optional Icon icon = 2;
53
54 // Specify whether the action should be a background action or
55 // should open up a web page with the specified URL.
56 optional bool is_background = 3;
57
58 // The url to send users to when they trigger the action.
59 optional string action_url = 4;
60 // If post_data is populated, this indicates that action_url should be
61 // contacted via a POST rather than a GET.
62 optional string post_data = 5;
63 }
64 // All the actions that can be triggered from this (coalesced) notification.
65 // This is sorted by importance so depending on the end point, the first N
66 // actions should be used (and the first action is the "default" action).
67 // For default actions, the icon and text params are ignored.
68 repeated Action action = 2;
69 }
70
71 message Image {
72 optional string url = 1;
73 // This is somewhat made up - not sure what else apart from url do we need
74 // about an image.
75 optional string alt_text = 2;
76 optional int32 preferred_width = 3;
77 optional int32 preferred_height = 4;
78 }
79
80 message Icon {
81 optional string url = 1;
82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698