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

Side by Side Diff: sky/services/intents/intents.mojom

Issue 1209423008: Make the TaskDescription background color match the ToolBar on Android (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Updated per review Created 5 years, 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module intents; 5 module intents;
6 6
7 struct StringExtra { 7 struct StringExtra {
8 string name; 8 string name;
9 string value; 9 string value;
10 }; 10 };
11 11
12 struct ComponentName { 12 struct ComponentName {
13 string package_name; 13 string package_name;
14 string class_name; 14 string class_name;
15 }; 15 };
16 16
17 struct Intent { 17 struct Intent {
18 string action; 18 string action;
19 string url; 19 string url;
20 uint32 flags; 20 uint32 flags;
21 ComponentName? component; 21 ComponentName? component;
22 array<StringExtra>? string_extras; 22 array<StringExtra>? string_extras;
23 }; 23 };
24 24
25 struct TaskDescription {
26 string? label;
27 uint32 primaryColor;
28 };
29
25 // TODO(abarth): This interface seems very specific to Android. Do we want to 30 // TODO(abarth): This interface seems very specific to Android. Do we want to
26 // have a higher-level abstraction here? Do we want a collection 31 // have a higher-level abstraction here? Do we want a collection
27 // of services that only work on specific platforms? We need to 32 // of services that only work on specific platforms? We need to
28 // figure out how to rationalize this interface across platforms. 33 // figure out how to rationalize this interface across platforms.
29 interface ActivityManager { 34 interface ActivityManager {
30 startActivity(Intent intent); 35 startActivity(Intent intent);
31 finishCurrentActivity(); 36 finishCurrentActivity();
37 setTaskDescription(TaskDescription description);
32 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698