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

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

Issue 2943243002: Forward BrowserAccessibility get_accState to AXPlatformNode. (Closed)
Patch Set: Mask out focus changes when determining if we should broadcast EVENT_OBJECT_STATECHANGE Created 3 years, 5 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 const ui::AXTreeData& GetTreeData() const override; 385 const ui::AXTreeData& GetTreeData() const override;
386 gfx::NativeWindow GetTopLevelWidget() override; 386 gfx::NativeWindow GetTopLevelWidget() override;
387 gfx::NativeViewAccessible GetParent() override; 387 gfx::NativeViewAccessible GetParent() override;
388 int GetChildCount() override; 388 int GetChildCount() override;
389 gfx::NativeViewAccessible ChildAtIndex(int index) override; 389 gfx::NativeViewAccessible ChildAtIndex(int index) override;
390 gfx::Rect GetScreenBoundsRect() const override; 390 gfx::Rect GetScreenBoundsRect() const override;
391 gfx::NativeViewAccessible HitTestSync(int x, int y) override; 391 gfx::NativeViewAccessible HitTestSync(int x, int y) override;
392 gfx::NativeViewAccessible GetFocus() override; 392 gfx::NativeViewAccessible GetFocus() override;
393 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; 393 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
394 bool AccessibilityPerformAction(const ui::AXActionData& data) override; 394 bool AccessibilityPerformAction(const ui::AXActionData& data) override;
395 bool ShouldIgnoreHoveredStateForTesting() override;
395 396
396 protected: 397 protected:
397 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance; 398 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance;
398 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>; 399 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>;
399 400
400 BrowserAccessibility(); 401 BrowserAccessibility();
401 402
402 // The manager of this tree of accessibility objects. 403 // The manager of this tree of accessibility objects.
403 BrowserAccessibilityManager* manager_; 404 BrowserAccessibilityManager* manager_;
404 405
405 // The underlying node. 406 // The underlying node.
406 ui::AXNode* node_; 407 ui::AXNode* node_;
407 408
408 // A unique ID, since node IDs are frame-local. 409 // A unique ID, since node IDs are frame-local.
409 int32_t unique_id_; 410 int32_t unique_id_;
410 411
411 private: 412 private:
412 // |GetInnerText| recursively includes all the text from descendants such as 413 // |GetInnerText| recursively includes all the text from descendants such as
413 // text found in any embedded object. In contrast, |GetText| might include a 414 // text found in any embedded object. In contrast, |GetText| might include a
414 // special character in the place of every embedded object instead of its 415 // special character in the place of every embedded object instead of its
415 // text, depending on the platform. 416 // text, depending on the platform.
416 base::string16 GetInnerText() const; 417 base::string16 GetInnerText() const;
417 418
418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 419 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
419 }; 420 };
420 421
421 } // namespace content 422 } // namespace content
422 423
423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 424 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698