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); |