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

Unified Diff: ui/views/accessibility/native_view_accessibility.h

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/views/accessibility/native_view_accessibility.h
diff --git a/ui/views/accessibility/native_view_accessibility.h b/ui/views/accessibility/native_view_accessibility.h
deleted file mode 100644
index 9a94d3a14d1ea84afc389eddb813aea97dc475e7..0000000000000000000000000000000000000000
--- a/ui/views/accessibility/native_view_accessibility.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2013 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_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_
-#define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_
-
-#include "ui/accessibility/ax_node_data.h"
-#include "ui/accessibility/platform/ax_platform_node.h"
-#include "ui/accessibility/platform/ax_platform_node_delegate.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-class View;
-
-class VIEWS_EXPORT NativeViewAccessibility : public ui::AXPlatformNodeDelegate {
- public:
- static NativeViewAccessibility* Create(View* view);
-
- virtual gfx::NativeViewAccessible GetNativeObject();
-
- // Call Destroy rather than deleting this, because the subclass may
- // use reference counting.
- virtual void Destroy();
-
- // WebViews need to be registered because they implement their own
- // tree of accessibility objects, and we need to check them when
- // mapping a child id to a NativeViewAccessible.
- static void RegisterWebView(View* web_view);
- static void UnregisterWebView(View* web_view);
-
- // ui::AXPlatformNodeDelegate
- ui::AXNodeData* GetData() override;
- int GetChildCount() override;
- gfx::NativeViewAccessible ChildAtIndex(int index) override;
- gfx::NativeViewAccessible GetParent() override;
- gfx::Vector2d GetGlobalCoordinateOffset() override;
- void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
-
- protected:
- NativeViewAccessibility();
- virtual ~NativeViewAccessibility();
-
- void set_view(views::View* view) { view_ = view; }
- const View* view() const { return view_; }
-
- View* view_; // Weak. Owns this.
-
- private:
- // We own this, but it is reference-counted on some platforms so we can't use
- // a scoped_ptr. It is dereferenced in the destructor.
- ui::AXPlatformNode* ax_node_;
-
- ui::AXNodeData data_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_
« no previous file with comments | « ui/views/accessibility/ax_window_obj_wrapper.cc ('k') | ui/views/accessibility/native_view_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698