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

Side by Side Diff: content/renderer/accessibility/renderer_accessibility.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_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 "content/common/accessibility_messages.h" 8 #include "content/common/accessibility_messages.h"
9 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 #include "third_party/WebKit/public/web/WebAXObject.h" 10 #include "third_party/WebKit/public/web/WebAXObject.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Called when an accessibility notification occurs in Blink. 54 // Called when an accessibility notification occurs in Blink.
55 virtual void HandleWebAccessibilityEvent( 55 virtual void HandleWebAccessibilityEvent(
56 const blink::WebAXObject& obj, blink::WebAXEvent event) = 0; 56 const blink::WebAXObject& obj, blink::WebAXEvent event) = 0;
57 virtual void FocusedNodeChanged(const blink::WebNode& node) = 0; 57 virtual void FocusedNodeChanged(const blink::WebNode& node) = 0;
58 58
59 // Gets the type of this RendererAccessibility object. Primarily intended for 59 // Gets the type of this RendererAccessibility object. Primarily intended for
60 // testing. 60 // testing.
61 virtual RendererAccessibilityType GetType() = 0; 61 virtual RendererAccessibilityType GetType() = 0;
62 62
63 // This can be called before deleting a RendererAccessibility instance due
64 // to the accessibility mode changing, as opposed to during frame destruction
65 // (when there'd be no point).
66 virtual void DisableAccessibility() {}
67
63 protected: 68 protected:
64 // Returns the main top-level document for this page, or NULL if there's 69 // Returns the main top-level document for this page, or NULL if there's
65 // no view or frame. 70 // no view or frame.
66 blink::WebDocument GetMainDocument(); 71 blink::WebDocument GetMainDocument();
67 72
68 // The RenderFrameImpl that owns us. 73 // The RenderFrameImpl that owns us.
69 RenderFrameImpl* render_frame_; 74 RenderFrameImpl* render_frame_;
70 75
71 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility); 76 DISALLOW_COPY_AND_ASSIGN(RendererAccessibility);
72 }; 77 };
73 78
74 } // namespace content 79 } // namespace content
75 80
76 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ 81 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | content/renderer/accessibility/renderer_accessibility_complete.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698