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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <limits.h> 7 #include <limits.h>
8 #include <oleacc.h> 8 #include <oleacc.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return instance; 177 return instance;
178 } 178 }
179 179
180 // static 180 // static
181 AXPlatformNode* AXPlatformNode::FromNativeViewAccessible( 181 AXPlatformNode* AXPlatformNode::FromNativeViewAccessible(
182 gfx::NativeViewAccessible accessible) { 182 gfx::NativeViewAccessible accessible) {
183 if (!accessible) 183 if (!accessible)
184 return nullptr; 184 return nullptr;
185 base::win::ScopedComPtr<AXPlatformNodeWin> ax_platform_node; 185 base::win::ScopedComPtr<AXPlatformNodeWin> ax_platform_node;
186 accessible->QueryInterface(ax_platform_node.Receive()); 186 accessible->QueryInterface(ax_platform_node.Receive());
187 return ax_platform_node.get(); 187 return ax_platform_node.Get();
188 } 188 }
189 189
190 // 190 //
191 // AXPlatformNodeWin 191 // AXPlatformNodeWin
192 // 192 //
193 193
194 AXPlatformNodeWin::AXPlatformNodeWin() { 194 AXPlatformNodeWin::AXPlatformNodeWin() {
195 } 195 }
196 196
197 AXPlatformNodeWin::~AXPlatformNodeWin() { 197 AXPlatformNodeWin::~AXPlatformNodeWin() {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 LONG child_count = 0; 251 LONG child_count = 0;
252 if (S_OK != parent_accessible->get_accChildCount(&child_count)) 252 if (S_OK != parent_accessible->get_accChildCount(&child_count))
253 return -1; 253 return -1;
254 for (LONG index = 1; index <= child_count; ++index) { 254 for (LONG index = 1; index <= child_count; ++index) {
255 base::win::ScopedVariant childid_index(index); 255 base::win::ScopedVariant childid_index(index);
256 base::win::ScopedComPtr<IDispatch> child_dispatch; 256 base::win::ScopedComPtr<IDispatch> child_dispatch;
257 base::win::ScopedComPtr<IAccessible> child_accessible; 257 base::win::ScopedComPtr<IAccessible> child_accessible;
258 if (S_OK == parent_accessible->get_accChild(childid_index, 258 if (S_OK == parent_accessible->get_accChild(childid_index,
259 child_dispatch.Receive()) && 259 child_dispatch.Receive()) &&
260 S_OK == child_dispatch.QueryInterface(child_accessible.Receive())) { 260 S_OK == child_dispatch.QueryInterface(child_accessible.Receive())) {
261 if (child_accessible.get() == this) 261 if (child_accessible.Get() == this)
262 return index - 1; 262 return index - 1;
263 } 263 }
264 } 264 }
265 265
266 return -1; 266 return -1;
267 } 267 }
268 268
269 // 269 //
270 // IAccessible implementation. 270 // IAccessible implementation.
271 // 271 //
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 1281
1282 AXPlatformNodeBase* base = 1282 AXPlatformNodeBase* base =
1283 FromNativeViewAccessible(node->GetNativeViewAccessible()); 1283 FromNativeViewAccessible(node->GetNativeViewAccessible());
1284 if (base && !IsDescendant(base)) 1284 if (base && !IsDescendant(base))
1285 base = nullptr; 1285 base = nullptr;
1286 1286
1287 return static_cast<AXPlatformNodeWin*>(base); 1287 return static_cast<AXPlatformNodeWin*>(base);
1288 } 1288 }
1289 1289
1290 } // namespace ui 1290 } // namespace ui
OLDNEW
« 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