Chromium Code Reviews| 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..664628fa4484046e8d03c7797578f6a257cdf7cc |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/page_launcher.idl |
| @@ -0,0 +1,23 @@ |
| +// 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. |
| + |
|
not at google - send to devlin
2013/02/01 16:39:47
API-level description
Rune Fevang
2013/02/01 22:12:54
I added some documentation. I can't find anything
|
| +namespace pageLauncher { |
| + dictionary PageData { |
|
not at google - send to devlin
2013/02/01 16:39:47
Description of PageData
Rune Fevang
2013/02/01 22:12:54
Done.
|
| + // The url of the page. |
| + DOMString url; |
| + // The mimetype of the page. |
| + DOMString mimetype; |
| + // The title of the page, if it has one. |
| + DOMString? page_title; |
| + // The text that was selected on the page when the event fired. |
| + DOMString? selected_text; |
| + }; |
|
not at google - send to devlin
2013/02/01 16:39:47
I know we're not using tabs.Tab here explicitly, b
Rune Fevang
2013/02/01 22:12:54
Done.
|
| + |
| + 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 |
|
not at google - send to devlin
2013/02/01 16:39:47
other IDLs I've seen don't have a space between th
Rune Fevang
2013/02/01 22:12:54
I just opened 6 random .idl files and only one of
not at google - send to devlin
2013/02/01 22:17:11
I guess I opened the wrong random IDL file.
|
| + // was clicked. |
| + static void onClicked(PageData pageData); |
| + }; |
| +}; |