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

Unified Diff: ui/views/accessibility/ax_widget_obj_wrapper.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. 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/views/accessibility/ax_widget_obj_wrapper.h ('k') | ui/views/accessibility/ax_window_obj_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/ax_widget_obj_wrapper.cc
diff --git a/ui/views/accessibility/ax_widget_obj_wrapper.cc b/ui/views/accessibility/ax_widget_obj_wrapper.cc
deleted file mode 100644
index 36a3143e365ec96b9aca5704ef49d7fe46c15c42..0000000000000000000000000000000000000000
--- a/ui/views/accessibility/ax_widget_obj_wrapper.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 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/views/accessibility/ax_widget_obj_wrapper.h"
-
-#include "ui/accessibility/ax_node_data.h"
-#include "ui/views/accessibility/ax_aura_obj_cache.h"
-#include "ui/views/accessibility/ax_aura_obj_wrapper.h"
-#include "ui/views/widget/widget.h"
-
-namespace views {
-
-AXWidgetObjWrapper::AXWidgetObjWrapper(Widget* widget) : widget_(widget) {
- widget->AddObserver(this);
- widget->AddRemovalsObserver(this);
-}
-
-AXWidgetObjWrapper::~AXWidgetObjWrapper() {
- widget_->RemoveObserver(this);
- widget_->RemoveRemovalsObserver(this);
- widget_ = NULL;
-}
-
-AXAuraObjWrapper* AXWidgetObjWrapper::GetParent() {
- return AXAuraObjCache::GetInstance()->GetOrCreate(widget_->GetNativeView());
-}
-
-void AXWidgetObjWrapper::GetChildren(
- std::vector<AXAuraObjWrapper*>* out_children) {
- out_children->push_back(
- AXAuraObjCache::GetInstance()->GetOrCreate(widget_->GetRootView()));
-}
-
-void AXWidgetObjWrapper::Serialize(ui::AXNodeData* out_node_data) {
- out_node_data->id = GetID();
- out_node_data->role = ui::AX_ROLE_CLIENT;
- out_node_data->location = widget_->GetWindowBoundsInScreen();
- // TODO(dtseng): Set better states.
- out_node_data->state = 0;
-}
-
-int32 AXWidgetObjWrapper::GetID() {
- return AXAuraObjCache::GetInstance()->GetID(widget_);
-}
-
-void AXWidgetObjWrapper::OnWidgetDestroying(Widget* widget) {
- AXAuraObjCache::GetInstance()->Remove(widget);
-}
-
-void AXWidgetObjWrapper::OnWillRemoveView(Widget* widget, View* view) {
- AXAuraObjCache::GetInstance()->Remove(view);
-}
-
-} // namespace views
« no previous file with comments | « ui/views/accessibility/ax_widget_obj_wrapper.h ('k') | ui/views/accessibility/ax_window_obj_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698