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

Side by Side Diff: ui/base/win/accessibility_misc_utils.h

Issue 61923005: Make NativeTextfieldViews update the win system caret. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: const gfx::Rect& Created 7 years, 1 month 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 | « no previous file | ui/base/win/accessibility_misc_utils.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) 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,
24 const gfx::Rect& caret_rect);
25
26 // UIA Text provider implementation for edit controls.
18 class UI_EXPORT UIATextProvider 27 class UI_EXPORT UIATextProvider
19 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>), 28 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>),
20 public IValueProvider, 29 public IValueProvider,
21 public ITextProvider { 30 public ITextProvider {
22 public: 31 public:
23 BEGIN_COM_MAP(UIATextProvider) 32 BEGIN_COM_MAP(UIATextProvider)
24 COM_INTERFACE_ENTRY2(IUnknown, ITextProvider) 33 COM_INTERFACE_ENTRY2(IUnknown, ITextProvider)
25 COM_INTERFACE_ENTRY(IValueProvider) 34 COM_INTERFACE_ENTRY(IValueProvider)
26 COM_INTERFACE_ENTRY(ITextProvider) 35 COM_INTERFACE_ENTRY(ITextProvider)
27 END_COM_MAP() 36 END_COM_MAP()
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 91 }
83 92
84 private: 93 private:
85 bool editable_; 94 bool editable_;
86 }; 95 };
87 96
88 } // win 97 } // win
89 } // base 98 } // base
90 99
91 #endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_ 100 #endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/win/accessibility_misc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698