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

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: Only set delegate if actual web contents was passed to SwapWebContents. 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
« no previous file with comments | « athena/content/web_activity.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « athena/content/web_activity.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698