Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / ui / base / win / accessibility_misc_utils.h
blobcc6b17e1de715f083231a94a2b6e42b14e39d439
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
5 #define UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
7 #include <atlbase.h>
8 #include <atlcom.h>
9 #include <UIAutomationCore.h>
11 #include "base/compiler_specific.h"
12 #include "ui/base/ui_base_export.h"
14 namespace base {
15 namespace win {
17 // UIA Text provider implementation for edit controls.
18 class UI_BASE_EXPORT UIATextProvider
19 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>),
20 public IValueProvider,
21 public ITextProvider {
22 public:
23 BEGIN_COM_MAP(UIATextProvider)
24 COM_INTERFACE_ENTRY2(IUnknown, ITextProvider)
25 COM_INTERFACE_ENTRY(IValueProvider)
26 COM_INTERFACE_ENTRY(ITextProvider)
27 END_COM_MAP()
29 UIATextProvider();
31 // Creates an instance of the UIATextProvider class.
32 // Returns true on success
33 static bool CreateTextProvider(bool editable, IUnknown** provider);
35 void set_editable(bool editable) {
36 editable_ = editable;
40 // IValueProvider methods.
42 STDMETHOD(get_IsReadOnly)(BOOL* read_only);
45 // IValueProvider methods not implemented.
47 STDMETHOD(SetValue)(const wchar_t* val) {
48 return E_NOTIMPL;
51 STDMETHOD(get_Value)(BSTR* value) {
52 return E_NOTIMPL;
56 // ITextProvider methods.
58 STDMETHOD(GetSelection)(SAFEARRAY** ret) {
59 return E_NOTIMPL;
62 STDMETHOD(GetVisibleRanges)(SAFEARRAY** ret) {
63 return E_NOTIMPL;
66 STDMETHOD(RangeFromChild)(IRawElementProviderSimple* child,
67 ITextRangeProvider** ret) {
68 return E_NOTIMPL;
71 STDMETHOD(RangeFromPoint)(struct UiaPoint point,
72 ITextRangeProvider** ret) {
73 return E_NOTIMPL;
76 STDMETHOD(get_DocumentRange)(ITextRangeProvider** ret) {
77 return E_NOTIMPL;
80 STDMETHOD(get_SupportedTextSelection)(enum SupportedTextSelection* ret) {
81 return E_NOTIMPL;
84 private:
85 bool editable_;
88 } // win
89 } // base
91 #endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_