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

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: Fix leak, update every time caret is painted 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, 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
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_
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