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

Side by Side Diff: content/browser/accessibility/browser_accessibility.h

Issue 2795843002: Move implementation of accessibility actions to views::View (Closed)
Patch Set: Fix win compile Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 const ui::AXNodeData& GetData() const override; 370 const ui::AXNodeData& GetData() const override;
371 gfx::NativeWindow GetTopLevelWidget() override; 371 gfx::NativeWindow GetTopLevelWidget() override;
372 gfx::NativeViewAccessible GetParent() override; 372 gfx::NativeViewAccessible GetParent() override;
373 int GetChildCount() override; 373 int GetChildCount() override;
374 gfx::NativeViewAccessible ChildAtIndex(int index) override; 374 gfx::NativeViewAccessible ChildAtIndex(int index) override;
375 gfx::Vector2d GetGlobalCoordinateOffset() override; 375 gfx::Vector2d GetGlobalCoordinateOffset() override;
376 gfx::NativeViewAccessible HitTestSync(int x, int y) override; 376 gfx::NativeViewAccessible HitTestSync(int x, int y) override;
377 gfx::NativeViewAccessible GetFocus() override; 377 gfx::NativeViewAccessible GetFocus() override;
378 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; 378 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
379 bool AccessibilityPerformAction(const ui::AXActionData& data) override; 379 bool AccessibilityPerformAction(const ui::AXActionData& data) override;
380 void DoDefaultAction() override;
381 380
382 protected: 381 protected:
383 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance; 382 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance;
384 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>; 383 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>;
385 384
386 BrowserAccessibility(); 385 BrowserAccessibility();
387 386
388 // The manager of this tree of accessibility objects. 387 // The manager of this tree of accessibility objects.
389 BrowserAccessibilityManager* manager_; 388 BrowserAccessibilityManager* manager_;
390 389
(...skipping 22 matching lines...) Expand all
413 // bounds, but "virtual" elements in the accessibility tree that don't 412 // bounds, but "virtual" elements in the accessibility tree that don't
414 // correspond to a layed-out element sometimes don't have bounds. 413 // correspond to a layed-out element sometimes don't have bounds.
415 void FixEmptyBounds(gfx::RectF* bounds) const; 414 void FixEmptyBounds(gfx::RectF* bounds) const;
416 415
417 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 416 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
418 }; 417 };
419 418
420 } // namespace content 419 } // namespace content
421 420
422 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 421 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/aura/accessibility/ax_tree_source_aura.cc ('k') | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698