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

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

Issue 23651003: Use Blink accessibility enums in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 | Annotate | Revision Log
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_FOCUS_ONLY_H_ 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_FOCUS_ONLY_H_
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_FOCUS_ONLY_H_ 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_FOCUS_ONLY_H_
7 7
8 #include "content/renderer/accessibility/renderer_accessibility.h" 8 #include "content/renderer/accessibility/renderer_accessibility.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // window as the bounds of the child object. That way, a touch that leads 46 // window as the bounds of the child object. That way, a touch that leads
47 // to a text box getting focus will always open the on-screen keyboard, 47 // to a text box getting focus will always open the on-screen keyboard,
48 // regardless of the relation between the touch location and the text box 48 // regardless of the relation between the touch location and the text box
49 // bounds. 49 // bounds.
50 class RendererAccessibilityFocusOnly : public RendererAccessibility { 50 class RendererAccessibilityFocusOnly : public RendererAccessibility {
51 public: 51 public:
52 explicit RendererAccessibilityFocusOnly(RenderViewImpl* render_view); 52 explicit RendererAccessibilityFocusOnly(RenderViewImpl* render_view);
53 virtual ~RendererAccessibilityFocusOnly(); 53 virtual ~RendererAccessibilityFocusOnly();
54 54
55 // RendererAccessibility implementation. 55 // RendererAccessibility implementation.
56 virtual void HandleWebAccessibilityNotification( 56 virtual void HandleWebAccessibilityEvent(
57 const WebKit::WebAccessibilityObject& obj, 57 const WebKit::WebAXObject& obj, WebKit::WebAXEvent event) OVERRIDE;
58 WebKit::WebAccessibilityNotification notification) OVERRIDE;
59 58
60 // RenderView::Observer implementation. 59 // RenderView::Observer implementation.
61 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; 60 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE;
62 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; 61 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE;
63 62
64 private: 63 private:
65 void HandleFocusedNodeChanged(const WebKit::WebNode& node, 64 void HandleFocusedNodeChanged(const WebKit::WebNode& node,
66 bool send_focus_event); 65 bool send_focus_event);
67 66
68 int next_id_; 67 int next_id_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityFocusOnly); 69 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityFocusOnly);
71 }; 70 };
72 71
73 } // namespace content 72 } // namespace content
74 73
75 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_FOCUS_ONLY_H_ 74 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_FOCUS_ONLY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698