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

Side by Side Diff: chrome/browser/ui/views/accessibility/navigation_accessibility_uitest_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 unified diff | Download patch
« no previous file with comments | « chrome/browser/speech/tts_win.cc ('k') | chrome/browser/win/jumplist_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <oleacc.h> 5 #include <oleacc.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/win/scoped_bstr.h" 9 #include "base/win/scoped_bstr.h"
10 #include "base/win/scoped_com_initializer.h" 10 #include "base/win/scoped_com_initializer.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 EventInfo event_info = event_queue_.front(); 115 EventInfo event_info = event_queue_.front();
116 event_queue_.pop_front(); 116 event_queue_.pop_front();
117 117
118 *out_event = event_info.event; 118 *out_event = event_info.event;
119 *out_hwnd = event_info.hwnd; 119 *out_hwnd = event_info.hwnd;
120 120
121 base::win::ScopedComPtr<IAccessible> acc_obj; 121 base::win::ScopedComPtr<IAccessible> acc_obj;
122 base::win::ScopedVariant child_variant; 122 base::win::ScopedVariant child_variant;
123 CHECK(S_OK == AccessibleObjectFromEvent( 123 CHECK(S_OK == AccessibleObjectFromEvent(
124 event_info.hwnd, event_info.obj_id, event_info.child_id, 124 event_info.hwnd, event_info.obj_id, event_info.child_id,
125 acc_obj.Receive(), child_variant.Receive())); 125 acc_obj.GetAddressOf(), child_variant.Receive()));
126 126
127 base::win::ScopedVariant role_variant; 127 base::win::ScopedVariant role_variant;
128 if (S_OK == acc_obj->get_accRole(child_variant, role_variant.Receive())) 128 if (S_OK == acc_obj->get_accRole(child_variant, role_variant.Receive()))
129 *out_role = V_I4(role_variant.ptr()); 129 *out_role = V_I4(role_variant.ptr());
130 else 130 else
131 *out_role = 0; 131 *out_role = 0;
132 132
133 base::win::ScopedVariant state_variant; 133 base::win::ScopedVariant state_variant;
134 if (S_OK == acc_obj->get_accState(child_variant, state_variant.Receive())) 134 if (S_OK == acc_obj->get_accState(child_variant, state_variant.Receive()))
135 *out_state = V_I4(state_variant.ptr()); 135 *out_state = V_I4(state_variant.ptr());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // second page. 252 // second page.
253 EXPECT_NE("First Page", name); 253 EXPECT_NE("First Page", name);
254 254
255 // Finish when we get an event on the second page. 255 // Finish when we get an event on the second page.
256 if (name == "This page is in English") { 256 if (name == "This page is in English") {
257 LOG(INFO) << "Got event on second page, finishing test."; 257 LOG(INFO) << "Got event on second page, finishing test.";
258 break; 258 break;
259 } 259 }
260 } 260 }
261 } 261 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_win.cc ('k') | chrome/browser/win/jumplist_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698