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

Side by Side Diff: chrome/common/extensions/api/page_launcher.idl

Issue 16876004: Updating JSON Schema Compiler to add description field to schemas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (kalman) rebase Created 7 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // This module allows platform apps an additional way of launching themselves 5 // Use the <code>chrome.pageLauncher</code> API to provide platform apps with
6 // from the browser. To use this api, an app needs to specify the page_launcher 6 // an additional way of launching themselves from the browser. To use this api,
7 // manifest property, then register to listen to pageLauncher.onClicked events. 7 // an app needs to specify the page_launcher manifest property, then register to
8 // listen to pageLauncher.onClicked events.
8 namespace pageLauncher { 9 namespace pageLauncher {
9 // Information about the page the user was on when the event was fired. 10 // Information about the page the user was on when the event was fired.
10 dictionary PageData { 11 dictionary PageData {
11 // The url of the page. 12 // The url of the page.
12 DOMString url; 13 DOMString url;
13 // The mimetype of the page. 14 // The mimetype of the page.
14 DOMString mimetype; 15 DOMString mimetype;
15 // The title of the page, if it has one. 16 // The title of the page, if it has one.
16 DOMString? title; 17 DOMString? title;
17 // The text that was selected on the page, if any. 18 // The text that was selected on the page, if any.
18 DOMString? selectionText; 19 DOMString? selectionText;
19 }; 20 };
20 21
21 interface Events { 22 interface Events {
22 // Fired when the user clicks the page launcher entry in the action box. 23 // Fired when the user clicks the page launcher entry in the action box.
23 // |pageData| : The details of the page the user was on when the button 24 // |pageData| : The details of the page the user was on when the button
24 // was clicked. 25 // was clicked.
25 static void onClicked(PageData pageData); 26 static void onClicked(PageData pageData);
26 }; 27 };
27 }; 28 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/page_capture.json ('k') | chrome/common/extensions/api/permissions.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698