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

Unified Diff: ui/accessibility/platform/ax_platform_node_base.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
Index: ui/accessibility/platform/ax_platform_node_base.cc
diff --git a/ui/accessibility/platform/ax_platform_node_base.cc b/ui/accessibility/platform/ax_platform_node_base.cc
deleted file mode 100644
index 3479af14ab5d1daa5204100454b551f02c3e67d9..0000000000000000000000000000000000000000
--- a/ui/accessibility/platform/ax_platform_node_base.cc
+++ /dev/null
@@ -1,58 +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/accessibility/platform/ax_platform_node_base.h"
-
-#include "ui/accessibility/ax_node_data.h"
-#include "ui/accessibility/platform/ax_platform_node_delegate.h"
-
-namespace ui {
-
-AXPlatformNodeBase::AXPlatformNodeBase() {
-}
-
-AXPlatformNodeBase::~AXPlatformNodeBase() {
-}
-
-void AXPlatformNodeBase::Init(AXPlatformNodeDelegate* delegate) {
- delegate_ = delegate;
-}
-
-AXRole AXPlatformNodeBase::GetRole() const {
- return delegate_ ? delegate_->GetData()->role : AX_ROLE_UNKNOWN;
-}
-
-gfx::Rect AXPlatformNodeBase::GetBoundsInScreen() const {
- if (!delegate_)
- return gfx::Rect();
- gfx::Rect bounds = delegate_->GetData()->location;
- bounds.Offset(delegate_->GetGlobalCoordinateOffset());
- return bounds;
-}
-
-gfx::NativeViewAccessible AXPlatformNodeBase::GetParent() {
- return delegate_ ? delegate_->GetParent() : NULL;
-}
-
-int AXPlatformNodeBase::GetChildCount() {
- return delegate_ ? delegate_->GetChildCount() : 0;
-}
-
-gfx::NativeViewAccessible AXPlatformNodeBase::ChildAtIndex(int index) {
- return delegate_ ? delegate_->ChildAtIndex(index) : NULL;
-}
-
-// AXPlatformNode
-
-void AXPlatformNodeBase::Destroy() {
- delegate_ = NULL;
- delete this;
-}
-
-gfx::NativeViewAccessible AXPlatformNodeBase::GetNativeViewAccessible() {
- return NULL;
-}
-
-
-} // namespace ui
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_base.h ('k') | ui/accessibility/platform/ax_platform_node_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698