OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 void SetEditCommandsForNextKeyEvent( | 407 void SetEditCommandsForNextKeyEvent( |
408 const std::vector<EditCommand>& commands); | 408 const std::vector<EditCommand>& commands); |
409 | 409 |
410 // Relay a request from assistive technology to perform the default action | 410 // Relay a request from assistive technology to perform the default action |
411 // on a given node. | 411 // on a given node. |
412 void AccessibilityDoDefaultAction(int object_id); | 412 void AccessibilityDoDefaultAction(int object_id); |
413 | 413 |
414 // Relay a request from assistive technology to set focus to a given node. | 414 // Relay a request from assistive technology to set focus to a given node. |
415 void AccessibilitySetFocus(int object_id); | 415 void AccessibilitySetFocus(int object_id); |
416 | 416 |
| 417 // Relay a request from assistive technology to scroll. |
| 418 void AccessibilityChangeScrollPosition( |
| 419 int acc_obj_id, int scroll_x, int scroll_y); |
| 420 |
| 421 // Relay a request from assistive technology to set text selection. |
| 422 void AccessibilitySetTextSelection( |
| 423 int acc_obj_id, int start_offset, int end_offset); |
| 424 |
417 // Executes the edit command on the RenderView. | 425 // Executes the edit command on the RenderView. |
418 void ExecuteEditCommand(const std::string& command, | 426 void ExecuteEditCommand(const std::string& command, |
419 const std::string& value); | 427 const std::string& value); |
420 | 428 |
421 // Tells the renderer to scroll the currently focused node into rect only if | 429 // Tells the renderer to scroll the currently focused node into rect only if |
422 // the currently focused node is a Text node (textfield, text area or content | 430 // the currently focused node is a Text node (textfield, text area or content |
423 // editable divs). | 431 // editable divs). |
424 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 432 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
425 | 433 |
426 // Requests the renderer to select the region between two points. | 434 // Requests the renderer to select the region between two points. |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 gfx::Point last_scroll_offset_; | 804 gfx::Point last_scroll_offset_; |
797 | 805 |
798 bool pending_mouse_lock_request_; | 806 bool pending_mouse_lock_request_; |
799 | 807 |
800 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 808 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
801 | 809 |
802 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 810 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
803 }; | 811 }; |
804 | 812 |
805 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |