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

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

Issue 602133002: Disable accessibility when VoiceOver is turned off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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_COMPLETE_H_ 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 ~RendererAccessibilityComplete() override; 40 ~RendererAccessibilityComplete() override;
41 41
42 // RenderFrameObserver implementation. 42 // RenderFrameObserver implementation.
43 bool OnMessageReceived(const IPC::Message& message) override; 43 bool OnMessageReceived(const IPC::Message& message) override;
44 44
45 // RendererAccessibility. 45 // RendererAccessibility.
46 void HandleWebAccessibilityEvent(const blink::WebAXObject& obj, 46 void HandleWebAccessibilityEvent(const blink::WebAXObject& obj,
47 blink::WebAXEvent event) override; 47 blink::WebAXEvent event) override;
48 RendererAccessibilityType GetType() override; 48 RendererAccessibilityType GetType() override;
49 void FocusedNodeChanged(const blink::WebNode& node) override; 49 void FocusedNodeChanged(const blink::WebNode& node) override;
50 virtual void DisableAccessibility() override;
50 51
51 void HandleAXEvent(const blink::WebAXObject& obj, ui::AXEvent event); 52 void HandleAXEvent(const blink::WebAXObject& obj, ui::AXEvent event);
52 53
53 protected: 54 protected:
54 // Send queued events from the renderer to the browser. 55 // Send queued events from the renderer to the browser.
55 void SendPendingAccessibilityEvents(); 56 void SendPendingAccessibilityEvents();
56 57
57 // Check the entire accessibility tree to see if any nodes have 58 // Check the entire accessibility tree to see if any nodes have
58 // changed location, by comparing their locations to the cached 59 // changed location, by comparing their locations to the cached
59 // versions. If any have moved, send an IPC with the new locations. 60 // versions. If any have moved, send an IPC with the new locations.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 // So we can queue up tasks to be executed later. 96 // So we can queue up tasks to be executed later.
96 base::WeakPtrFactory<RendererAccessibilityComplete> weak_factory_; 97 base::WeakPtrFactory<RendererAccessibilityComplete> weak_factory_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); 99 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete);
99 }; 100 };
100 101
101 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ 102 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_
102 103
103 } // namespace content 104 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698