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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
409 // bit will only be turned off when all modes that depend on it have been | 409 // bit will only be turned off when all modes that depend on it have been |
410 // removed. | 410 // removed. |
411 void RemoveAccessibilityMode(AccessibilityMode mode); | 411 void RemoveAccessibilityMode(AccessibilityMode mode); |
412 | 412 |
413 // Resets the accessibility mode to the default setting in | 413 // Resets the accessibility mode to the default setting in |
414 // BrowserStateAccessibilityImpl. | 414 // BrowserStateAccessibilityImpl. |
415 void ResetAccessibilityMode(); | 415 void ResetAccessibilityMode(); |
416 | 416 |
417 // Relay a request from assistive technology to perform the default action | 417 // Relay a request from assistive technology to perform the default action |
418 // on a given node. | 418 // on a given node. |
419 void AccessibilityDoDefaultAction(int object_id); | 419 virtual void AccessibilityDoDefaultAction(int object_id); |
dmazzoni
2014/04/01 17:05:25
Add OVERRIDE too?
David Tseng
2014/04/01 21:27:15
Done.
| |
420 | 420 |
421 // Relay a request from assistive technology to set focus to a given node. | 421 // Relay a request from assistive technology to set focus to a given node. |
422 void AccessibilitySetFocus(int object_id); | 422 virtual void AccessibilitySetFocus(int object_id); |
aboxhall
2014/04/01 20:20:45
Wait... where is the implementation for this? Not
David Tseng
2014/04/01 21:27:15
These actions previously existed.
| |
423 | 423 |
424 // Relay a request from assistive technology to make a given object | 424 // Relay a request from assistive technology to make a given object |
425 // visible by scrolling as many scrollable containers as necessary. | 425 // visible by scrolling as many scrollable containers as necessary. |
426 // In addition, if it's not possible to make the entire object visible, | 426 // In addition, if it's not possible to make the entire object visible, |
427 // scroll so that the |subfocus| rect is visible at least. The subfocus | 427 // scroll so that the |subfocus| rect is visible at least. The subfocus |
428 // rect is in local coordinates of the object itself. | 428 // rect is in local coordinates of the object itself. |
429 void AccessibilityScrollToMakeVisible( | 429 virtual void AccessibilityScrollToMakeVisible( |
430 int acc_obj_id, gfx::Rect subfocus); | 430 int acc_obj_id, gfx::Rect subfocus); |
431 | 431 |
432 // Relay a request from assistive technology to move a given object | 432 // Relay a request from assistive technology to move a given object |
433 // to a specific location, in the WebContents area coordinate space, i.e. | 433 // to a specific location, in the WebContents area coordinate space, i.e. |
434 // (0, 0) is the top-left corner of the WebContents. | 434 // (0, 0) is the top-left corner of the WebContents. |
435 void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point); | 435 virtual void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point); |
436 | 436 |
437 // Relay a request from assistive technology to set text selection. | 437 // Relay a request from assistive technology to set text selection. |
438 void AccessibilitySetTextSelection( | 438 virtual void AccessibilitySetTextSelection( |
439 int acc_obj_id, int start_offset, int end_offset); | 439 int acc_obj_id, int start_offset, int end_offset); |
440 | 440 |
441 // Kill the renderer because we got a fatal accessibility error. | 441 // Kill the renderer because we got a fatal accessibility error. |
442 void FatalAccessibilityTreeError(); | 442 void FatalAccessibilityTreeError(); |
443 | 443 |
444 #if defined(OS_WIN) | 444 #if defined(OS_WIN) |
445 void SetParentNativeViewAccessible( | 445 void SetParentNativeViewAccessible( |
446 gfx::NativeViewAccessible accessible_parent); | 446 gfx::NativeViewAccessible accessible_parent); |
447 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; | 447 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
448 #endif | 448 #endif |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
948 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 948 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
949 | 949 |
950 int64 last_input_number_; | 950 int64 last_input_number_; |
951 | 951 |
952 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 952 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
953 }; | 953 }; |
954 | 954 |
955 } // namespace content | 955 } // namespace content |
956 | 956 |
957 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 957 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |