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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 9939011: Add an accessibility mode for editable text fields only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and rebased. Created 8 years, 8 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/keyboard_listener.h" 10 #include "content/public/browser/keyboard_listener.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #if defined(TOOLKIT_GTK) 189 #if defined(TOOLKIT_GTK)
190 // Paint the backing store into the target's |dest_rect|. 190 // Paint the backing store into the target's |dest_rect|.
191 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 191 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
192 GdkWindow* target) = 0; 192 GdkWindow* target) = 0;
193 #elif defined(OS_MACOSX) 193 #elif defined(OS_MACOSX)
194 virtual gfx::Size GetBackingStoreSize() = 0; 194 virtual gfx::Size GetBackingStoreSize() = 0;
195 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 195 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
196 CGContextRef target) = 0; 196 CGContextRef target) = 0;
197 #endif 197 #endif
198 198
199 // Enable renderer accessibility. This should only be called when a 199 // Send a command to the renderer to turn on full accessibility.
200 // screenreader is detected. 200 virtual void EnableFullAccessibilityMode() = 0;
201 virtual void EnableRendererAccessibility() = 0;
202 201
203 // Forwards the given message to the renderer. These are called by 202 // Forwards the given message to the renderer. These are called by
204 // the view when it has received a message. 203 // the view when it has received a message.
205 virtual void ForwardMouseEvent( 204 virtual void ForwardMouseEvent(
206 const WebKit::WebMouseEvent& mouse_event) = 0; 205 const WebKit::WebMouseEvent& mouse_event) = 0;
207 virtual void ForwardWheelEvent( 206 virtual void ForwardWheelEvent(
208 const WebKit::WebMouseWheelEvent& wheel_event) = 0; 207 const WebKit::WebMouseWheelEvent& wheel_event) = 0;
209 virtual void ForwardKeyboardEvent( 208 virtual void ForwardKeyboardEvent(
210 const NativeWebKeyboardEvent& key_event) = 0; 209 const NativeWebKeyboardEvent& key_event) = 0;
211 210
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // within content/. This method is necessary because 278 // within content/. This method is necessary because
280 // RenderWidgetHost is the root of a diamond inheritance pattern, so 279 // RenderWidgetHost is the root of a diamond inheritance pattern, so
281 // subclasses inherit it virtually, which removes our ability to 280 // subclasses inherit it virtually, which removes our ability to
282 // static_cast to the subclass. 281 // static_cast to the subclass.
283 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 282 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
284 }; 283 };
285 284
286 } // namespace content 285 } // namespace content
287 286
288 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 287 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698