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

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

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_misc_utils.h ('k') | ui/base/win/atl_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/accessibility_misc_utils.cc
diff --git a/ui/base/win/accessibility_misc_utils.cc b/ui/base/win/accessibility_misc_utils.cc
deleted file mode 100644
index 621048ffcd81aa0016c56c96ec12d4399c8bbc89..0000000000000000000000000000000000000000
--- a/ui/base/win/accessibility_misc_utils.cc
+++ /dev/null
@@ -1,47 +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.
-#include "ui/base/win/accessibility_misc_utils.h"
-
-#include "base/logging.h"
-#include "ui/base/win/atl_module.h"
-
-namespace base {
-namespace win {
-
-// UIA TextProvider implementation.
-UIATextProvider::UIATextProvider()
- : editable_(false) {}
-
-// static
-bool UIATextProvider::CreateTextProvider(const string16& value,
- bool editable,
- IUnknown** provider) {
- // Make sure ATL is initialized in this module.
- ui::win::CreateATLModuleIfNeeded();
-
- CComObject<UIATextProvider>* text_provider = NULL;
- HRESULT hr = CComObject<UIATextProvider>::CreateInstance(&text_provider);
- if (SUCCEEDED(hr)) {
- DCHECK(text_provider);
- text_provider->set_editable(editable);
- text_provider->set_value(value);
- text_provider->AddRef();
- *provider = static_cast<ITextProvider*>(text_provider);
- return true;
- }
- return false;
-}
-
-STDMETHODIMP UIATextProvider::get_IsReadOnly(BOOL* read_only) {
- *read_only = !editable_;
- return S_OK;
-}
-
-STDMETHODIMP UIATextProvider::get_Value(BSTR* value) {
- *value = SysAllocString(value_.c_str());
- return S_OK;
-}
-
-} // namespace win
-} // namespace base
« no previous file with comments | « ui/base/win/accessibility_misc_utils.h ('k') | ui/base/win/atl_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698