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

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

Issue 2027683002: Reland of Uses the activedescendant_changed event received from Blink to fire the right focus event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 // Return the object that has focus, starting at the top of the frame tree. 279 // Return the object that has focus, starting at the top of the frame tree.
280 virtual BrowserAccessibility* GetFocus(); 280 virtual BrowserAccessibility* GetFocus();
281 281
282 // Return the object that has focus, only considering this frame and 282 // Return the object that has focus, only considering this frame and
283 // descendants. 283 // descendants.
284 BrowserAccessibility* GetFocusFromThisOrDescendantFrame(); 284 BrowserAccessibility* GetFocusFromThisOrDescendantFrame();
285 285
286 // Given a focused node |focus|, returns a descendant of that node if it 286 // Given a focused node |focus|, returns a descendant of that node if it
287 // has an active descendant, otherwise returns |focus|. 287 // has an active descendant, otherwise returns |focus|.
288 BrowserAccessibility* GetActiveDescendantFocus(BrowserAccessibility* focus); 288 BrowserAccessibility* GetActiveDescendant(BrowserAccessibility* focus);
289 289
290 // Returns true if native focus is anywhere in this WebContents or not. 290 // Returns true if native focus is anywhere in this WebContents or not.
291 bool NativeViewHasFocus(); 291 bool NativeViewHasFocus();
292 292
293 // True by default, but some platforms want to treat the root 293 // True by default, but some platforms want to treat the root
294 // scroll offsets separately. 294 // scroll offsets separately.
295 virtual bool UseRootScrollOffsetsWhenComputingBounds(); 295 virtual bool UseRootScrollOffsetsWhenComputingBounds();
296 296
297 // Walk the tree. 297 // Walk the tree.
298 static BrowserAccessibility* NextInTreeOrder( 298 static BrowserAccessibility* NextInTreeOrder(
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // node within that parent tree. It's computed as needed and cached for 438 // node within that parent tree. It's computed as needed and cached for
439 // speed so that it can be accessed quickly if it hasn't changed. 439 // speed so that it can be accessed quickly if it hasn't changed.
440 int parent_node_id_from_parent_tree_; 440 int parent_node_id_from_parent_tree_;
441 441
442 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 442 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
443 }; 443 };
444 444
445 } // namespace content 445 } // namespace content
446 446
447 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 447 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698