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

Unified Diff: ui/views/controls/webview/webview.h

Issue 398603002: athena: Handle WebContents created for new windows and create activities for these. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add WebView::SwapWebContents to allow AthenaWebView to replace owned WebContents. Created 6 years, 5 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: ui/views/controls/webview/webview.h
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h
index 41da90999d78f388ba81f81e3b6550ba4e964638..c15bea1251fcfa37fe08df89cc4983570707bdf4 100644
--- a/ui/views/controls/webview/webview.h
+++ b/ui/views/controls/webview/webview.h
@@ -97,6 +97,11 @@ class WEBVIEW_EXPORT WebView : public View,
virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
protected:
+ // Swaps the owned WebContents |wc_owner_| with |new_web_contents|. Returns
+ // the previously owned WebContents.
+ scoped_ptr<content::WebContents> SwapWebContents(
+ scoped_ptr<content::WebContents> new_web_contents);
+
// Overridden from View:
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
virtual void ViewHierarchyChanged(

Powered by Google App Engine
This is Rietveld 408576698