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

Side by Side Diff: extensions/browser/guest_view/guest_view_base.h

Issue 769363002: Initialize BrowserPluginGuest to attach to the View hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basic_detach_plumbing
Patch Set: Addressed Charlie's comments Created 6 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 // Saves the attach state of the custom element hosting this GuestView. 235 // Saves the attach state of the custom element hosting this GuestView.
236 void SetAttachParams(const base::DictionaryValue& params); 236 void SetAttachParams(const base::DictionaryValue& params);
237 void SetOpener(GuestViewBase* opener); 237 void SetOpener(GuestViewBase* opener);
238 238
239 // BrowserPluginGuestDelegate implementation. 239 // BrowserPluginGuestDelegate implementation.
240 void DidAttach(int guest_proxy_routing_id) final; 240 void DidAttach(int guest_proxy_routing_id) final;
241 void DidDetach() final; 241 void DidDetach() final;
242 void ElementSizeChanged(const gfx::Size& old_size, 242 void ElementSizeChanged(const gfx::Size& old_size,
243 const gfx::Size& new_size) final; 243 const gfx::Size& new_size) final;
244 content::WebContents* GetOwnerWebContents() const final;
244 void GuestSizeChanged(const gfx::Size& old_size, 245 void GuestSizeChanged(const gfx::Size& old_size,
245 const gfx::Size& new_size) final; 246 const gfx::Size& new_size) final;
246 void RegisterDestructionCallback(const DestructionCallback& callback) final; 247 void RegisterDestructionCallback(const DestructionCallback& callback) final;
247 void WillAttach(content::WebContents* embedder_web_contents, 248 void WillAttach(content::WebContents* embedder_web_contents,
248 int browser_plugin_instance_id, 249 int browser_plugin_instance_id,
249 bool is_full_page_plugin) final; 250 bool is_full_page_plugin) final;
250 251
251 // Dispatches an event |event_name| to the embedder with the |event| fields. 252 // Dispatches an event |event_name| to the embedder with the |event| fields.
252 void DispatchEventToEmbedder(Event* event); 253 void DispatchEventToEmbedder(Event* event);
253 254
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // This is used to ensure pending tasks will not fire after this object is 359 // This is used to ensure pending tasks will not fire after this object is
359 // destroyed. 360 // destroyed.
360 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 361 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
361 362
362 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 363 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
363 }; 364 };
364 365
365 } // namespace extensions 366 } // namespace extensions
366 367
367 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 368 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_plugin_guest_delegate.cc ('k') | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698