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

Unified Diff: ui/base/win/accessibility_misc_utils.h

Issue 337453002: CHR-1796: Implement UIATextProvider::get_Value method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | ui/base/win/accessibility_misc_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/accessibility_misc_utils.h
diff --git a/ui/base/win/accessibility_misc_utils.h b/ui/base/win/accessibility_misc_utils.h
index cc6b17e1de715f083231a94a2b6e42b14e39d439..e17f1d3c6b027d33b99c0e671528a4aaf5f3d455 100644
--- a/ui/base/win/accessibility_misc_utils.h
+++ b/ui/base/win/accessibility_misc_utils.h
@@ -9,6 +9,7 @@
#include <UIAutomationCore.h>
#include "base/compiler_specific.h"
+#include "base/strings/string16.h"
#include "ui/base/ui_base_export.h"
namespace base {
@@ -30,12 +31,16 @@ class UI_BASE_EXPORT UIATextProvider
// Creates an instance of the UIATextProvider class.
// Returns true on success
- static bool CreateTextProvider(bool editable, IUnknown** provider);
+ static bool CreateTextProvider(const string16& value,
+ bool editable,
+ IUnknown** provider);
void set_editable(bool editable) {
editable_ = editable;
}
+ void set_value(const string16& value) { value_ = value; }
+
//
// IValueProvider methods.
//
@@ -48,9 +53,7 @@ class UI_BASE_EXPORT UIATextProvider
return E_NOTIMPL;
}
- STDMETHOD(get_Value)(BSTR* value) {
- return E_NOTIMPL;
- }
+ STDMETHOD(get_Value)(BSTR* value);
//
// ITextProvider methods.
@@ -83,6 +86,7 @@ class UI_BASE_EXPORT UIATextProvider
private:
bool editable_;
+ string16 value_;
};
} // win
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | ui/base/win/accessibility_misc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698