Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6101ef7

Browse files
Service provider
1 parent 5c358a8 commit 6101ef7

File tree

2 files changed

+1
-45
lines changed

2 files changed

+1
-45
lines changed

shell/platform/windows/accessibility_root_node.cc

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -254,44 +254,6 @@ IFACEMETHODIMP AccessibilityRootNode::put_accName(VARIANT var_id,
254254
return E_NOTIMPL;
255255
}
256256

257-
//
258-
// Methods used by the ATL COM map.
259-
//
260-
261-
// static
262-
STDMETHODIMP AccessibilityRootNode::InternalQueryInterface(
263-
void* this_ptr,
264-
const _ATL_INTMAP_ENTRY* entries,
265-
REFIID riid,
266-
void** object) {
267-
if (!object)
268-
return E_INVALIDARG;
269-
*object = nullptr;
270-
AccessibilityRootNode* accessible =
271-
reinterpret_cast<AccessibilityRootNode*>(this_ptr);
272-
if (!accessible) {
273-
return E_FAIL;
274-
}
275-
276-
return CComObjectRootBase::InternalQueryInterface(this_ptr, entries, riid,
277-
object);
278-
}
279-
280-
// static
281-
STDMETHODIMP AccessibilityRootNode::QueryInterface(REFIID riid, LPVOID* obj) throw() {
282-
if (!obj) {
283-
return E_INVALIDARG;
284-
}
285-
FML_LOG(ERROR) << "Querying for " << riid.Data1 << riid.Data2 << riid.Data3 << riid.Data4;
286-
*obj = NULL;
287-
if (riid == IID_IUnknown || riid == IID_IAccessible) {
288-
*obj = (LPVOID)this;
289-
AddRef();
290-
return S_OK;
291-
}
292-
return E_NOINTERFACE;
293-
}
294-
295257
//
296258
// IServiceProvider implementation.
297259
//

shell/platform/windows/accessibility_root_node.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,9 @@ class __declspec(uuid("12344321-1234-4321-1234-aaaaaaaaaaaa")) AccessibilityRoot
104104
IFACEMETHODIMP put_accName(VARIANT var_id, BSTR put_name) override;
105105

106106
//
107-
// Methods used by the ATL COM map.
107+
// IServiceProvider method.
108108
//
109109

110-
// Called by BEGIN_COM_MAP() / END_COM_MAP().
111-
static STDMETHODIMP InternalQueryInterface(void* this_ptr,
112-
const _ATL_INTMAP_ENTRY* entries,
113-
REFIID riid,
114-
void** object);
115-
116110
IFACEMETHODIMP QueryService(REFGUID guidService,
117111
REFIID riid,
118112
void** object) override;

0 commit comments

Comments
 (0)