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

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: 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/common/view_message_enums.h"
10 #include "content/public/browser/keyboard_listener.h" 11 #include "content/public/browser/keyboard_listener.h"
11 #include "content/public/browser/native_web_keyboard_event.h" 12 #include "content/public/browser/native_web_keyboard_event.h"
12 #include "ipc/ipc_channel.h" 13 #include "ipc/ipc_channel.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
15 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
16 #include "ui/gfx/surface/transport_dib.h" 17 #include "ui/gfx/surface/transport_dib.h"
17 18
18 #if defined(TOOLKIT_GTK) 19 #if defined(TOOLKIT_GTK)
19 #include "ui/base/x/x11_util.h" 20 #include "ui/base/x/x11_util.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #if defined(TOOLKIT_GTK) 190 #if defined(TOOLKIT_GTK)
190 // Paint the backing store into the target's |dest_rect|. 191 // Paint the backing store into the target's |dest_rect|.
191 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 192 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
192 GdkWindow* target) = 0; 193 GdkWindow* target) = 0;
193 #elif defined(OS_MACOSX) 194 #elif defined(OS_MACOSX)
194 virtual gfx::Size GetBackingStoreSize() = 0; 195 virtual gfx::Size GetBackingStoreSize() = 0;
195 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 196 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
196 CGContextRef target) = 0; 197 CGContextRef target) = 0;
197 #endif 198 #endif
198 199
199 // Enable renderer accessibility. This should only be called when a 200 // Send a command to the renderer to change the accessibility mode.
200 // screenreader is detected. 201 virtual void SetAccessibilityMode(AccessibilityMode mode) = 0;
201 virtual void EnableRendererAccessibility() = 0;
202 202
203 // Forwards the given message to the renderer. These are called by 203 // Forwards the given message to the renderer. These are called by
204 // the view when it has received a message. 204 // the view when it has received a message.
205 virtual void ForwardMouseEvent( 205 virtual void ForwardMouseEvent(
206 const WebKit::WebMouseEvent& mouse_event) = 0; 206 const WebKit::WebMouseEvent& mouse_event) = 0;
207 virtual void ForwardWheelEvent( 207 virtual void ForwardWheelEvent(
208 const WebKit::WebMouseWheelEvent& wheel_event) = 0; 208 const WebKit::WebMouseWheelEvent& wheel_event) = 0;
209 virtual void ForwardKeyboardEvent( 209 virtual void ForwardKeyboardEvent(
210 const NativeWebKeyboardEvent& key_event) = 0; 210 const NativeWebKeyboardEvent& key_event) = 0;
211 211
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // within content/. This method is necessary because 279 // within content/. This method is necessary because
280 // RenderWidgetHost is the root of a diamond inheritance pattern, so 280 // RenderWidgetHost is the root of a diamond inheritance pattern, so
281 // subclasses inherit it virtually, which removes our ability to 281 // subclasses inherit it virtually, which removes our ability to
282 // static_cast to the subclass. 282 // static_cast to the subclass.
283 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 283 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
284 }; 284 };
285 285
286 } // namespace content 286 } // namespace content
287 287
288 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 288 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698