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

Unified Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 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 | « remoting/host/win/rdp_client_window.cc ('k') | ui/accessibility/platform/ax_platform_node_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node_win.cc
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc
index 43dc94dd6c0b9c7bb2b87c1a543f4bef7938e40f..79d9b086f2c98c3cf597e5b827284a9f06c346fe 100644
--- a/ui/accessibility/platform/ax_platform_node_win.cc
+++ b/ui/accessibility/platform/ax_platform_node_win.cc
@@ -183,7 +183,7 @@ AXPlatformNode* AXPlatformNode::FromNativeViewAccessible(
if (!accessible)
return nullptr;
base::win::ScopedComPtr<AXPlatformNodeWin> ax_platform_node;
- accessible->QueryInterface(ax_platform_node.Receive());
+ accessible->QueryInterface(ax_platform_node.GetAddressOf());
return ax_platform_node.Get();
}
@@ -243,9 +243,9 @@ void AXPlatformNodeWin::NotifyAccessibilityEvent(ui::AXEvent event_type) {
int AXPlatformNodeWin::GetIndexInParent() {
base::win::ScopedComPtr<IDispatch> parent_dispatch;
base::win::ScopedComPtr<IAccessible> parent_accessible;
- if (S_OK != get_accParent(parent_dispatch.Receive()))
+ if (S_OK != get_accParent(parent_dispatch.GetAddressOf()))
return -1;
- if (S_OK != parent_dispatch.CopyTo(parent_accessible.Receive()))
+ if (S_OK != parent_dispatch.CopyTo(parent_accessible.GetAddressOf()))
return -1;
LONG child_count = 0;
@@ -255,9 +255,9 @@ int AXPlatformNodeWin::GetIndexInParent() {
base::win::ScopedVariant childid_index(index);
base::win::ScopedComPtr<IDispatch> child_dispatch;
base::win::ScopedComPtr<IAccessible> child_accessible;
- if (S_OK == parent_accessible->get_accChild(childid_index,
- child_dispatch.Receive()) &&
- S_OK == child_dispatch.CopyTo(child_accessible.Receive())) {
+ if (S_OK == parent_accessible->get_accChild(
+ childid_index, child_dispatch.GetAddressOf()) &&
+ S_OK == child_dispatch.CopyTo(child_accessible.GetAddressOf())) {
if (child_accessible.Get() == this)
return index - 1;
}
« no previous file with comments | « remoting/host/win/rdp_client_window.cc ('k') | ui/accessibility/platform/ax_platform_node_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698