| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // Notifies the renderer that the next key event is bound to one or more | 388 // Notifies the renderer that the next key event is bound to one or more |
| 389 // pre-defined edit commands | 389 // pre-defined edit commands |
| 390 void SetEditCommandsForNextKeyEvent( | 390 void SetEditCommandsForNextKeyEvent( |
| 391 const std::vector<EditCommand>& commands); | 391 const std::vector<EditCommand>& commands); |
| 392 | 392 |
| 393 // Gets the accessibility mode. | 393 // Gets the accessibility mode. |
| 394 AccessibilityMode accessibility_mode() const { | 394 AccessibilityMode accessibility_mode() const { |
| 395 return accessibility_mode_; | 395 return accessibility_mode_; |
| 396 } | 396 } |
| 397 | 397 |
| 398 // Send a message to the renderer process to change the accessibility mode. | 398 // Adds the given accessibility mode to the current accessibility mode bitmap. |
| 399 void SetAccessibilityMode(AccessibilityMode mode); | 399 void AddAccessibilityMode(AccessibilityMode mode); |
| 400 |
| 401 // Removes the given accessibility mode from the current accessibility mode |
| 402 // bitmap, managing the bits that are shared with other modes such that a |
| 403 // bit will only be turned off when all modes that depend on it have been |
| 404 // removed. |
| 405 void RemoveAccessibilityMode(AccessibilityMode mode); |
| 406 |
| 407 // Resets the accessibility mode to the default setting in |
| 408 // BrowserStateAccessibilityImpl. |
| 409 void ResetAccessibilityMode(); |
| 400 | 410 |
| 401 // Relay a request from assistive technology to perform the default action | 411 // Relay a request from assistive technology to perform the default action |
| 402 // on a given node. | 412 // on a given node. |
| 403 void AccessibilityDoDefaultAction(int object_id); | 413 void AccessibilityDoDefaultAction(int object_id); |
| 404 | 414 |
| 405 // Relay a request from assistive technology to set focus to a given node. | 415 // Relay a request from assistive technology to set focus to a given node. |
| 406 void AccessibilitySetFocus(int object_id); | 416 void AccessibilitySetFocus(int object_id); |
| 407 | 417 |
| 408 // Relay a request from assistive technology to make a given object | 418 // Relay a request from assistive technology to make a given object |
| 409 // visible by scrolling as many scrollable containers as necessary. | 419 // visible by scrolling as many scrollable containers as necessary. |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, | 754 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, |
| 745 InputEventAckState ack_result) OVERRIDE; | 755 InputEventAckState ack_result) OVERRIDE; |
| 746 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; | 756 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; |
| 747 | 757 |
| 748 // Called when there is a new auto resize (using a post to avoid a stack | 758 // Called when there is a new auto resize (using a post to avoid a stack |
| 749 // which may get in recursive loops). | 759 // which may get in recursive loops). |
| 750 void DelayedAutoResized(); | 760 void DelayedAutoResized(); |
| 751 | 761 |
| 752 void WindowSnapshotReachedScreen(int snapshot_id); | 762 void WindowSnapshotReachedScreen(int snapshot_id); |
| 753 | 763 |
| 764 // Send a message to the renderer process to change the accessibility mode. |
| 765 void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
| 766 |
| 754 // Our delegate, which wants to know mainly about keyboard events. | 767 // Our delegate, which wants to know mainly about keyboard events. |
| 755 // It will remain non-NULL until DetachDelegate() is called. | 768 // It will remain non-NULL until DetachDelegate() is called. |
| 756 RenderWidgetHostDelegate* delegate_; | 769 RenderWidgetHostDelegate* delegate_; |
| 757 | 770 |
| 758 // Created during construction but initialized during Init*(). Therefore, it | 771 // Created during construction but initialized during Init*(). Therefore, it |
| 759 // is guaranteed never to be NULL, but its channel may be NULL if the | 772 // is guaranteed never to be NULL, but its channel may be NULL if the |
| 760 // renderer crashed, so you must always check that. | 773 // renderer crashed, so you must always check that. |
| 761 RenderProcessHost* process_; | 774 RenderProcessHost* process_; |
| 762 | 775 |
| 763 // The ID of the corresponding object in the Renderer Instance. | 776 // The ID of the corresponding object in the Renderer Instance. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 937 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 925 | 938 |
| 926 int64 last_input_number_; | 939 int64 last_input_number_; |
| 927 | 940 |
| 928 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 941 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 929 }; | 942 }; |
| 930 | 943 |
| 931 } // namespace content | 944 } // namespace content |
| 932 | 945 |
| 933 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 946 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |