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

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

Issue 2217363002: Use relative bounding boxes throughout Chrome accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback from aboxhall Created 4 years, 4 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_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const BrowserAccessibility& end_object); 336 const BrowserAccessibility& end_object);
337 337
338 // If start and end offsets are greater than the text's length, returns all 338 // If start and end offsets are greater than the text's length, returns all
339 // the text. 339 // the text.
340 static base::string16 GetTextForRange( 340 static base::string16 GetTextForRange(
341 const BrowserAccessibility& start_object, 341 const BrowserAccessibility& start_object,
342 int start_offset, 342 int start_offset,
343 const BrowserAccessibility& end_object, 343 const BrowserAccessibility& end_object,
344 int end_offset); 344 int end_offset);
345 345
346 static gfx::Rect GetLocalBoundsForRange( 346 static gfx::Rect GetPageBoundsForRange(
347 const BrowserAccessibility& start_object, 347 const BrowserAccessibility& start_object,
348 int start_offset, 348 int start_offset,
349 const BrowserAccessibility& end_object, 349 const BrowserAccessibility& end_object,
350 int end_offset); 350 int end_offset);
351 351
352 // Accessors. 352 // Accessors.
353 AXTreeIDRegistry::AXTreeID ax_tree_id() const { return ax_tree_id_; } 353 AXTreeIDRegistry::AXTreeID ax_tree_id() const { return ax_tree_id_; }
354 354
355 // AXTreeDelegate implementation. 355 // AXTreeDelegate implementation.
356 void OnNodeDataWillChange(ui::AXTree* tree, 356 void OnNodeDataWillChange(ui::AXTree* tree,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // node within that parent tree. It's computed as needed and cached for 464 // node within that parent tree. It's computed as needed and cached for
465 // speed so that it can be accessed quickly if it hasn't changed. 465 // speed so that it can be accessed quickly if it hasn't changed.
466 int parent_node_id_from_parent_tree_; 466 int parent_node_id_from_parent_tree_;
467 467
468 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 468 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
469 }; 469 };
470 470
471 } // namespace content 471 } // namespace content
472 472
473 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 473 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698