OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ | 4 #ifndef UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ |
5 #define UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ | 5 #define UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlcom.h> | 8 #include <atlcom.h> |
9 #include <UIAutomationCore.h> | 9 #include <UIAutomationCore.h> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/base/ui_export.h" | 12 #include "ui/base/ui_export.h" |
13 #include "ui/gfx/rect.h" | |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 namespace win { | 16 namespace win { |
16 | 17 |
17 // UIA Text provider implementation for edit controls. | 18 // This is used when we draw our own caret. Updates the system caret rect |
19 // to the given bounding rectangle but makes it invisible. This allows | |
20 // utilities that help the user find the system caret to continue to work. | |
21 // |hwnd| should be the owning window, and |caret_rect| is in global | |
22 // screen coordinates. | |
23 UI_EXPORT void SetInvisibleSystemCaretRect(HWND hwnd, gfx::Rect caret_rect); | |
sky
2013/11/07 20:58:06
const gfx::Rect&
dmazzoni
2013/11/07 22:07:56
Done.
| |
24 | |
25 // UIA Text provider implementation for edit controls. | |
18 class UI_EXPORT UIATextProvider | 26 class UI_EXPORT UIATextProvider |
19 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>), | 27 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>), |
20 public IValueProvider, | 28 public IValueProvider, |
21 public ITextProvider { | 29 public ITextProvider { |
22 public: | 30 public: |
23 BEGIN_COM_MAP(UIATextProvider) | 31 BEGIN_COM_MAP(UIATextProvider) |
24 COM_INTERFACE_ENTRY2(IUnknown, ITextProvider) | 32 COM_INTERFACE_ENTRY2(IUnknown, ITextProvider) |
25 COM_INTERFACE_ENTRY(IValueProvider) | 33 COM_INTERFACE_ENTRY(IValueProvider) |
26 COM_INTERFACE_ENTRY(ITextProvider) | 34 COM_INTERFACE_ENTRY(ITextProvider) |
27 END_COM_MAP() | 35 END_COM_MAP() |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 } | 90 } |
83 | 91 |
84 private: | 92 private: |
85 bool editable_; | 93 bool editable_; |
86 }; | 94 }; |
87 | 95 |
88 } // win | 96 } // win |
89 } // base | 97 } // base |
90 | 98 |
91 #endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ | 99 #endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ |
OLD | NEW |