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

Side by Side Diff: content/renderer/accessibility/renderer_accessibility.h

Issue 812033016: Add RenderFrameObserver::FocusedNodeChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Called when a new find in page result is highlighted. 59 // Called when a new find in page result is highlighted.
60 void HandleAccessibilityFindInPageResult( 60 void HandleAccessibilityFindInPageResult(
61 int identifier, 61 int identifier,
62 int match_index, 62 int match_index,
63 const blink::WebAXObject& start_object, 63 const blink::WebAXObject& start_object,
64 int start_offset, 64 int start_offset,
65 const blink::WebAXObject& end_object, 65 const blink::WebAXObject& end_object,
66 int end_offset); 66 int end_offset);
67 67
68 void FocusedNodeChanged(const blink::WebNode& node); 68 void AccessibilityFocusedNodeChanged(const blink::WebNode& node);
69 69
70 // This can be called before deleting a RendererAccessibility instance due 70 // This can be called before deleting a RendererAccessibility instance due
71 // to the accessibility mode changing, as opposed to during frame destruction 71 // to the accessibility mode changing, as opposed to during frame destruction
72 // (when there'd be no point). 72 // (when there'd be no point).
73 void DisableAccessibility(); 73 void DisableAccessibility();
74 74
75 void HandleAXEvent(const blink::WebAXObject& obj, ui::AXEvent event); 75 void HandleAXEvent(const blink::WebAXObject& obj, ui::AXEvent event);
76 76
77 protected: 77 protected:
78 // Returns the main top-level document for this page, or NULL if there's 78 // Returns the main top-level document for this page, or NULL if there's
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // So we can queue up tasks to be executed later. 132 // So we can queue up tasks to be executed later.
133 base::WeakPtrFactory<RendererAccessibility> weak_factory_; 133 base::WeakPtrFactory<RendererAccessibility> weak_factory_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); 135 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility);
136 }; 136 };
137 137
138 } // namespace content 138 } // namespace content
139 139
140 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ 140 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698