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

Unified Diff: chrome/browser/views/tabs/dragged_tab_controller.cc

Issue 115475: Refactors HWNDPhotobooth into NativeViewPhotobooth and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/views/tabs/dragged_tab_controller.h ('k') | chrome/browser/views/tabs/dragged_tab_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/dragged_tab_controller.cc
===================================================================
--- chrome/browser/views/tabs/dragged_tab_controller.cc (revision 16306)
+++ chrome/browser/views/tabs/dragged_tab_controller.cc (working copy)
@@ -16,7 +16,7 @@
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/views/frame/browser_view.h"
#include "chrome/browser/views/tabs/dragged_tab_view.h"
-#include "chrome/browser/views/tabs/hwnd_photobooth.h"
+#include "chrome/browser/views/tabs/native_view_photobooth.h"
#include "chrome/browser/views/tabs/tab.h"
#include "chrome/browser/views/tabs/tab_strip.h"
#include "chrome/browser/tab_contents/tab_contents.h"
@@ -761,8 +761,10 @@
// Set up the photo booth to start capturing the contents of the dragged
// TabContents.
- if (!photobooth_.get())
- photobooth_.reset(new HWNDPhotobooth(dragged_contents_->GetNativeView()));
+ if (!photobooth_.get()) {
+ photobooth_.reset(
+ NativeViewPhotobooth::Create(dragged_contents_->GetNativeView()));
+ }
// Update the View. This NULL check is necessary apparently in some
// conditions during automation where the view_ is destroyed inside a
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.h ('k') | chrome/browser/views/tabs/dragged_tab_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698