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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/guest.js

Issue 2116663002: Test for BrowserPlugin-based WebView Focus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revise surface waiting. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/guest.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/guest.js b/chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/guest.js
similarity index 61%
copy from chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/guest.js
copy to chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/guest.js
index d1fc9251e34b1d63f5824a766845d300b4579e5f..5a8b67fa32e9d9bf43d25bcab13b38b00b0f04b4 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/scrollable_embedder_and_guest/guest.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/guest_focus_test/guest.js
@@ -1,4 +1,4 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
+// Copyright 2016 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.
@@ -16,16 +16,6 @@ function sendMessageToEmbedder(message) {
embedder.postMessage(JSON.stringify([message]), '*');
}
-window.onAppCommand = function(command) {
- LOG('guest::onAppCommand: ' + command);
- switch (command) {
- case 'set_overflow_hidden':
- document.getElementById('root').style.overflow = 'hidden';
- sendMessageToEmbedder('overflow_is_hidden');
- break;
- };
-};
-
window.addEventListener('message', function(e) {
embedder = e.source;
var data = JSON.parse(e.data);

Powered by Google App Engine
This is Rietveld 408576698