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

Side by Side Diff: chrome/test/data/extensions/api_test/filesystem_handler/background.html

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <script>
2 // Context menu hanler method.
3 function onRunContextMenuHandler() {
4 return function(info, tab) {
5 // Create a new tab
6 chrome.tabs.create({
7 url: "tab.html#" + info.srcUrl
8 });
9 };
10 };
11
12
13 chrome.test.runTests([function tab() {
14 // Register a context menu (file intent) handler.
15 chrome.contextMenus.create({
16 "title" : "Magic File Task",
17 "type" : "normal",
18 "targetUrlPatterns" : ["filesystem:*.txt" ],
19 "contexts" : ["file"],
20 "onclick" : onRunContextMenuHandler()
21 });
22 // Finish this test.
23 console.log("Registered contect menu handler.");
24 chrome.test.succeed();
25 }]);
26
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698