OLD | NEW |
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 const MouseEventCallback& callback) OVERRIDE; | 174 const MouseEventCallback& callback) OVERRIDE; |
175 virtual void RemoveMouseEventCallback( | 175 virtual void RemoveMouseEventCallback( |
176 const MouseEventCallback& callback) OVERRIDE; | 176 const MouseEventCallback& callback) OVERRIDE; |
177 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; | 177 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; |
178 virtual void GetSnapshotFromRenderer( | 178 virtual void GetSnapshotFromRenderer( |
179 const gfx::Rect& src_subrect, | 179 const gfx::Rect& src_subrect, |
180 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 180 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
181 | 181 |
182 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; | 182 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
183 | 183 |
| 184 virtual void AccessibilityDoDefaultAction(int object_id) OVERRIDE; |
| 185 virtual void AccessibilitySetFocus(int object_id) OVERRIDE; |
| 186 virtual void AccessibilityScrollToMakeVisible( |
| 187 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
| 188 virtual void AccessibilityScrollToPoint( |
| 189 int acc_obj_id, gfx::Point point) OVERRIDE; |
| 190 virtual void AccessibilitySetTextSelection( |
| 191 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
| 192 |
184 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; | 193 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
185 | 194 |
186 // Notification that the screen info has changed. | 195 // Notification that the screen info has changed. |
187 void NotifyScreenInfoChanged(); | 196 void NotifyScreenInfoChanged(); |
188 | 197 |
189 // Invalidates the cached screen info so that next resize request | 198 // Invalidates the cached screen info so that next resize request |
190 // will carry the up to date screen info. Unlike | 199 // will carry the up to date screen info. Unlike |
191 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. | 200 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. |
192 void InvalidateScreenInfo(); | 201 void InvalidateScreenInfo(); |
193 | 202 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 // Removes the given accessibility mode from the current accessibility mode | 414 // Removes the given accessibility mode from the current accessibility mode |
406 // bitmap, managing the bits that are shared with other modes such that a | 415 // bitmap, managing the bits that are shared with other modes such that a |
407 // bit will only be turned off when all modes that depend on it have been | 416 // bit will only be turned off when all modes that depend on it have been |
408 // removed. | 417 // removed. |
409 void RemoveAccessibilityMode(AccessibilityMode mode); | 418 void RemoveAccessibilityMode(AccessibilityMode mode); |
410 | 419 |
411 // Resets the accessibility mode to the default setting in | 420 // Resets the accessibility mode to the default setting in |
412 // BrowserStateAccessibilityImpl. | 421 // BrowserStateAccessibilityImpl. |
413 void ResetAccessibilityMode(); | 422 void ResetAccessibilityMode(); |
414 | 423 |
415 // Relay a request from assistive technology to perform the default action | |
416 // on a given node. | |
417 void AccessibilityDoDefaultAction(int object_id); | |
418 | |
419 // Relay a request from assistive technology to set focus to a given node. | |
420 void AccessibilitySetFocus(int object_id); | |
421 | |
422 // Relay a request from assistive technology to make a given object | |
423 // visible by scrolling as many scrollable containers as necessary. | |
424 // In addition, if it's not possible to make the entire object visible, | |
425 // scroll so that the |subfocus| rect is visible at least. The subfocus | |
426 // rect is in local coordinates of the object itself. | |
427 void AccessibilityScrollToMakeVisible( | |
428 int acc_obj_id, gfx::Rect subfocus); | |
429 | |
430 // Relay a request from assistive technology to move a given object | |
431 // to a specific location, in the WebContents area coordinate space, i.e. | |
432 // (0, 0) is the top-left corner of the WebContents. | |
433 void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point); | |
434 | |
435 // Relay a request from assistive technology to set text selection. | |
436 void AccessibilitySetTextSelection( | |
437 int acc_obj_id, int start_offset, int end_offset); | |
438 | |
439 // Kill the renderer because we got a fatal accessibility error. | 424 // Kill the renderer because we got a fatal accessibility error. |
440 void FatalAccessibilityTreeError(); | 425 void FatalAccessibilityTreeError(); |
441 | 426 |
442 #if defined(OS_WIN) | 427 #if defined(OS_WIN) |
443 void SetParentNativeViewAccessible( | 428 void SetParentNativeViewAccessible( |
444 gfx::NativeViewAccessible accessible_parent); | 429 gfx::NativeViewAccessible accessible_parent); |
445 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; | 430 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
446 #endif | 431 #endif |
447 | 432 |
448 // Executes the edit command on the RenderView. | 433 // Executes the edit command on the RenderView. |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 931 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
947 | 932 |
948 int64 last_input_number_; | 933 int64 last_input_number_; |
949 | 934 |
950 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 935 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
951 }; | 936 }; |
952 | 937 |
953 } // namespace content | 938 } // namespace content |
954 | 939 |
955 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 940 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |