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

Unified Diff: ui/gfx/win/direct_manipulation.cc

Issue 2885063003: Remove ScopedComPtr::QueryFrom() (Closed)
Patch Set: Created 3 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 | « ui/accessibility/platform/ax_platform_node_win_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/direct_manipulation.cc
diff --git a/ui/gfx/win/direct_manipulation.cc b/ui/gfx/win/direct_manipulation.cc
index 92f98982c52c9dce94a45ac6554807f49e17c3b5..ca778cb6415336d711268e235599326fe65f55f0 100644
--- a/ui/gfx/win/direct_manipulation.cc
+++ b/ui/gfx/win/direct_manipulation.cc
@@ -46,7 +46,7 @@ void DirectManipulationHelper::Initialize(HWND window) {
hr = compositor_->SetUpdateManager(update_manager_.Get());
CHECK(SUCCEEDED(hr));
- hr = frame_info_.QueryFrom(compositor_.Get());
+ hr = compositor_.CopyTo(frame_info_.GetAddressOf());
CHECK(SUCCEEDED(hr));
hr = manager_->CreateViewport(frame_info_.Get(), window,
@@ -78,7 +78,7 @@ void DirectManipulationHelper::SetBounds(const gfx::Rect& bounds) {
CHECK(SUCCEEDED(hr));
base::win::ScopedComPtr<IDirectManipulationContent> content_outer;
- hr = content_outer.QueryFrom(primary_content_outer.Get());
+ hr = primary_content_outer.CopyTo(content_outer.GetAddressOf());
CHECK(SUCCEEDED(hr));
RECT rect = bounds.ToRECT();
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_win_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698