summaryrefslogtreecommitdiffstats
path: root/extensions/common/guest_view
diff options
context:
space:
mode:
authorfsamuel <fsamuel@chromium.org>2015-03-09 20:29:14 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-10 03:30:13 +0000
commit60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0 (patch)
treea3faa36e3fc883a3dfad5ee37e175f736343b7c6 /extensions/common/guest_view
parent301745a2a1928177800d44110d5745bb12bc556a (diff)
downloadchromium_src-60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0.zip
chromium_src-60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0.tar.gz
chromium_src-60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0.tar.bz2
<webview>: Make contentWindow available prior to attachment (on display:none).
This CL updates the createGuest API to return an optional contentWindow. This CL renames GuestSizer to GuestProxyHost which better represents what it does. GuestProxyHost exposes "LoadURLWithParams" which, after navigating, creates a swapped out RenderView for the guest in the embedder's process. This CL removes RegisterDestructionCallback from BrowserPluginGuestDelegate. BUG=456118 Test=WebViewTest.NoContentSettingsAPI runs with display:none now. Review URL: https://codereview.chromium.org/910073003 Cr-Commit-Position: refs/heads/master@{#319833}
Diffstat (limited to 'extensions/common/guest_view')
-rw-r--r--extensions/common/guest_view/guest_view_constants.cc2
-rw-r--r--extensions/common/guest_view/guest_view_constants.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/extensions/common/guest_view/guest_view_constants.cc b/extensions/common/guest_view/guest_view_constants.cc
index f478c64..94af1b5 100644
--- a/extensions/common/guest_view/guest_view_constants.cc
+++ b/extensions/common/guest_view/guest_view_constants.cc
@@ -20,6 +20,8 @@ const char kElementSizeIsLogical[] = "elementSizeIsLogical";
const char kEventResize[] = "guestViewInternal.onResize";
// Parameters/properties on events.
+const char kContentWindowID[] = "contentWindowId";
+const char kID[] = "id";
const char kIsTopLevel[] = "isTopLevel";
const char kNewWidth[] = "newWidth";
const char kNewHeight[] = "newHeight";
diff --git a/extensions/common/guest_view/guest_view_constants.h b/extensions/common/guest_view/guest_view_constants.h
index 16bf023..e3baad0 100644
--- a/extensions/common/guest_view/guest_view_constants.h
+++ b/extensions/common/guest_view/guest_view_constants.h
@@ -23,6 +23,8 @@ extern const char kElementSizeIsLogical[];
extern const char kEventResize[];
// Parameters/properties on events.
+extern const char kContentWindowID[];
+extern const char kID[];
extern const char kIsTopLevel[];
extern const char kNewWidth[];
extern const char kNewHeight[];