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

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

Issue 860873002: Continue deleting code in ui/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 2015 Created 5 years, 11 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 | « ui/base/win/accessibility_ids_win.h ('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
deleted file mode 100644
index e17f1d3c6b027d33b99c0e671528a4aaf5f3d455..0000000000000000000000000000000000000000
--- a/ui/base/win/accessibility_misc_utils.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#ifndef UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
-#define UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
-
-#include <atlbase.h>
-#include <atlcom.h>
-#include <UIAutomationCore.h>
-
-#include "base/compiler_specific.h"
-#include "base/strings/string16.h"
-#include "ui/base/ui_base_export.h"
-
-namespace base {
-namespace win {
-
- // UIA Text provider implementation for edit controls.
-class UI_BASE_EXPORT UIATextProvider
- : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>),
- public IValueProvider,
- public ITextProvider {
- public:
- BEGIN_COM_MAP(UIATextProvider)
- COM_INTERFACE_ENTRY2(IUnknown, ITextProvider)
- COM_INTERFACE_ENTRY(IValueProvider)
- COM_INTERFACE_ENTRY(ITextProvider)
- END_COM_MAP()
-
- UIATextProvider();
-
- // Creates an instance of the UIATextProvider class.
- // Returns true on success
- 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.
- //
- STDMETHOD(get_IsReadOnly)(BOOL* read_only);
-
- //
- // IValueProvider methods not implemented.
- //
- STDMETHOD(SetValue)(const wchar_t* val) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(get_Value)(BSTR* value);
-
- //
- // ITextProvider methods.
- //
- STDMETHOD(GetSelection)(SAFEARRAY** ret) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(GetVisibleRanges)(SAFEARRAY** ret) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(RangeFromChild)(IRawElementProviderSimple* child,
- ITextRangeProvider** ret) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(RangeFromPoint)(struct UiaPoint point,
- ITextRangeProvider** ret) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(get_DocumentRange)(ITextRangeProvider** ret) {
- return E_NOTIMPL;
- }
-
- STDMETHOD(get_SupportedTextSelection)(enum SupportedTextSelection* ret) {
- return E_NOTIMPL;
- }
-
- private:
- bool editable_;
- string16 value_;
-};
-
-} // win
-} // base
-
-#endif // UI_BASE_WIN_ACCESSIBILITY_MISC_UTILS_H_
« no previous file with comments | « ui/base/win/accessibility_ids_win.h ('k') | ui/base/win/accessibility_misc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698