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

Unified Diff: chrome/browser/guest_view/guest_view.h

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT Created 6 years, 7 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
« no previous file with comments | « chrome/browser/guest_view/ad_view/ad_view_guest.cc ('k') | chrome/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/guest_view.h
diff --git a/chrome/browser/guest_view/guest_view.h b/chrome/browser/guest_view/guest_view.h
index 3633b0358ecc8328d55ba9ace73d9429c18a570f..8afabce72e5802f8c398776eefe92eba4ad05795 100644
--- a/chrome/browser/guest_view/guest_view.h
+++ b/chrome/browser/guest_view/guest_view.h
@@ -23,16 +23,29 @@ class GuestView : public GuestViewBase {
return guest ? guest->As<T>() : NULL;
}
+ T* GetOpener() const {
+ GuestViewBase* guest = GuestViewBase::GetOpener();
+ if (!guest)
+ return NULL;
+ return guest->As<T>();
+ }
+
+ void SetOpener(T* opener) {
+ GuestViewBase::SetOpener(opener);
+ }
+
// GuestViewBase implementation.
virtual const char* GetViewType() const OVERRIDE {
return T::Type;
}
protected:
- GuestView(content::WebContents* guest_web_contents,
- const std::string& embedder_extension_id,
- const base::WeakPtr<GuestViewBase>& opener)
- : GuestViewBase(guest_web_contents, embedder_extension_id, opener) {}
+ GuestView(int guest_instance_id,
+ content::WebContents* guest_web_contents,
+ const std::string& embedder_extension_id)
+ : GuestViewBase(guest_instance_id,
+ guest_web_contents,
+ embedder_extension_id) {}
private:
DISALLOW_COPY_AND_ASSIGN(GuestView);
« no previous file with comments | « chrome/browser/guest_view/ad_view/ad_view_guest.cc ('k') | chrome/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698