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

Unified Diff: trunk/src/chrome/browser/guest_view/web_view/web_view_guest.h

Issue 446823002: Revert 287732 "<webview>: Move autosize from content to chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/chrome/browser/guest_view/web_view/web_view_guest.h
===================================================================
--- trunk/src/chrome/browser/guest_view/web_view/web_view_guest.h (revision 287745)
+++ trunk/src/chrome/browser/guest_view/web_view/web_view_guest.h (working copy)
@@ -95,11 +95,6 @@
virtual void DidStopLoading() OVERRIDE;
virtual void EmbedderDestroyed() OVERRIDE;
virtual void GuestDestroyed() OVERRIDE;
- virtual void GuestReady() OVERRIDE;
- virtual void GuestSizeChangedDueToAutoSize(
- const gfx::Size& old_size,
- const gfx::Size& new_size) OVERRIDE;
- virtual bool IsAutoSizeSupported() const OVERRIDE;
virtual bool IsDragAndDropEnabled() const OVERRIDE;
virtual void WillAttachToEmbedder() OVERRIDE;
virtual void WillDestroy() OVERRIDE;
@@ -161,6 +156,8 @@
// BrowserPluginGuestDelegate implementation.
virtual content::WebContents* CreateNewGuestWindow(
const content::WebContents::CreateParams& create_params) OVERRIDE;
+ virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size)
+ OVERRIDE;
virtual void RequestPointerLockPermission(
bool user_gesture,
bool last_unlocked_by_target,
@@ -278,6 +275,7 @@
content::RenderFrameHost* render_frame_host) OVERRIDE;
virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE;
+ virtual void RenderViewReady() OVERRIDE;
// Informs the embedder of a frame name change.
void ReportFrameNameChange(const std::string& name);
@@ -336,8 +334,6 @@
bool HandleKeyboardShortcuts(const content::NativeWebKeyboardEvent& event);
- void SetUpAutoSize();
-
ObserverList<extensions::TabHelper::ScriptExecutionObserver>
script_observers_;
scoped_ptr<extensions::ScriptExecutor> script_executor_;

Powered by Google App Engine
This is Rietveld 408576698