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

Unified Diff: chrome/common/extensions/api/page_launcher.idl

Issue 12095023: Allow platform apps to add themselves to the Action Box. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use raw pointer + IconImage signature changed Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/page_launcher.idl
diff --git a/chrome/common/extensions/api/page_launcher.idl b/chrome/common/extensions/api/page_launcher.idl
new file mode 100644
index 0000000000000000000000000000000000000000..deef68aebd72011995591e44cfe93b168804a102
--- /dev/null
+++ b/chrome/common/extensions/api/page_launcher.idl
@@ -0,0 +1,27 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This module allows platform apps an additional way of launching themselves
+// from the browser. To use this api, an app needs to specify the page_launcher
+// manifest property, then register to listen to pageLauncher.onClicked events.
+namespace pageLauncher {
+ // Information about the page the user was on when the event was fired.
+ dictionary PageData {
+ // The url of the page.
+ DOMString url;
+ // The mimetype of the page.
+ DOMString mimetype;
+ // The title of the page, if it has one.
+ DOMString? title;
+ // The text that was selected on the page, if any.
+ DOMString? selectionText;
+ };
+
+ interface Events {
+ // Fired when the user clicks the page launcher entry in the action box.
+ // |pageData| : The details of the page the user was on when the button
+ // was clicked.
+ static void onClicked(PageData pageData);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698