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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.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
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index 273c63f34e1eb8e25f93cad21916350e8187cf79..25a0b71632a630c41b1ed8134225656dfa156844 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -32,6 +32,7 @@
#include "content/public/browser/notification_types.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "grit/theme_resources.h"
#include "ui/base/animation/animation.h"
#include "ui/base/animation/animation_delegate.h"
@@ -1849,11 +1850,11 @@ void TabDragController::CreateDraggedView(
// Set up the photo booth to start capturing the contents of the dragged
// WebContents.
- NativeViewPhotobooth* photobooth =
- NativeViewPhotobooth::Create(source_dragged_contents()->GetNativeView());
+ NativeViewPhotobooth* photobooth = NativeViewPhotobooth::Create(
+ source_dragged_contents()->GetView()->GetNativeView());
gfx::Rect content_bounds;
- source_dragged_contents()->GetContainerBounds(&content_bounds);
+ source_dragged_contents()->GetView()->GetContainerBounds(&content_bounds);
std::vector<views::View*> renderers;
for (size_t i = 0; i < drag_data_.size(); ++i) {
« no previous file with comments | « chrome/browser/ui/views/speech_recognition_bubble_views.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698