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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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: chrome/browser/instant/instant_controller.cc
===================================================================
--- chrome/browser/instant/instant_controller.cc (revision 116331)
+++ chrome/browser/instant/instant_controller.cc (working copy)
@@ -27,8 +27,8 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/web_contents.h"
#if defined(TOOLKIT_VIEWS)
#include "ui/views/focus/focus_manager.h"
@@ -269,8 +269,8 @@
InstantCommitType type) {
DCHECK(loader_.get());
TabContentsWrapper* tab = ReleasePreviewContents(type);
- tab->tab_contents()->GetController().CopyStateFromAndPrune(
- &tab_contents_->tab_contents()->GetController());
+ tab->web_contents()->GetController().CopyStateFromAndPrune(
+ &tab_contents_->web_contents()->GetController());
delegate_->CommitInstant(tab);
CompleteRelease(tab);
return tab;
@@ -305,7 +305,7 @@
}
RenderWidgetHostView* rwhv =
- GetPreviewContents()->tab_contents()->GetRenderWidgetHostView();
+ GetPreviewContents()->web_contents()->GetRenderWidgetHostView();
if (!view_gaining_focus || !rwhv) {
DestroyPreviewContents();
return;
@@ -331,7 +331,7 @@
#endif
gfx::NativeView tab_view =
- GetPreviewContents()->tab_contents()->GetNativeView();
+ GetPreviewContents()->web_contents()->GetNativeView();
// Focus is going to the renderer.
if (rwhv->GetNativeView() == view_gaining_focus ||
tab_view == view_gaining_focus) {
« no previous file with comments | « chrome/browser/infobars/infobar_extension_api.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698