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

Unified Diff: chrome/browser/ui/views/external_tab_container_win.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/ui/views/external_protocol_dialog.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/external_tab_container_win.cc
diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
index 6bb6eceb3fb945eefb85fc3223b5de909d8fbe0c..bc5d9ce97cff7a27ad152fd59de8a94435a193f0 100644
--- a/chrome/browser/ui/views/external_tab_container_win.cc
+++ b/chrome/browser/ui/views/external_tab_container_win.cc
@@ -51,6 +51,7 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/frame_navigate_params.h"
#include "content/public/common/page_transition_types.h"
@@ -250,7 +251,7 @@ bool ExternalTabContainerWin::Init(Profile* profile,
if (parent)
SetParent(GetNativeView(), parent);
- ::ShowWindow(existing_contents->GetNativeView(), SW_SHOWNA);
+ ::ShowWindow(existing_contents->GetView()->GetNativeView(), SW_SHOWNA);
LoadAccelerators();
SetupExternalTabView();
@@ -398,7 +399,7 @@ void ExternalTabContainerWin::FocusThroughTabTraversal(
bool restore_focus_to_view) {
DCHECK(web_contents_.get());
if (web_contents_.get())
- web_contents_->Focus();
+ web_contents_->GetView()->Focus();
// The web_contents_ member can get destroyed in the context of the call to
// WebContentsViewViews::Focus() above. This method eventually calls SetFocus
« no previous file with comments | « chrome/browser/ui/views/external_protocol_dialog.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698