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/test/data/extensions/api_test/extension_options/embed_self/options.js

Issue 378783002: Initial implementation of the <extensionoptions> GuestView tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ^ Created 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This script is opened inside a <extensionoptions> guest view. To confirm that
6 // is has been successfully created, it adds {pass: true} to every extension
not at google - send to devlin 2014/07/18 17:07:26 it has
ericzeng 2014/07/18 19:37:05 Done.
7 // Window and broadcasts a message to the extension using runtime.sendMessage().
8 var windows = chrome.extension.getViews();
not at google - send to devlin 2014/07/18 17:07:26 it could be nice to write this like chrome.extens
ericzeng 2014/07/18 19:37:05 Done.
9 for (var i = 0; i < windows.length; ++i)
10 windows[i].pass = true;
11 chrome.runtime.sendMessage('hi');
not at google - send to devlin 2014/07/18 17:07:26 nice test :) we should also add a test that the o
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698