Chromium Code Reviews| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 383 | 383 |
| 384 // Set the RenderView background. | 384 // Set the RenderView background. |
| 385 void SetBackground(const SkBitmap& background); | 385 void SetBackground(const SkBitmap& background); |
| 386 | 386 |
| 387 // Notifies the renderer that the next key event is bound to one or more | 387 // Notifies the renderer that the next key event is bound to one or more |
| 388 // pre-defined edit commands | 388 // pre-defined edit commands |
| 389 void SetEditCommandsForNextKeyEvent( | 389 void SetEditCommandsForNextKeyEvent( |
| 390 const std::vector<EditCommand>& commands); | 390 const std::vector<EditCommand>& commands); |
| 391 | 391 |
| 392 // Gets the accessibility mode. | 392 // Gets the accessibility mode. |
| 393 AccessibilityMode accessibility_mode() const { | 393 unsigned int accessibility_mode() const { |
| 394 return accessibility_mode_; | 394 return accessibility_mode_; |
| 395 } | 395 } |
| 396 | 396 |
| 397 // Send a message to the renderer process to change the accessibility mode. | 397 // Send a message to the renderer process to change the accessibility mode. |
| 398 void SetAccessibilityMode(AccessibilityMode mode); | 398 void SetAccessibilityMode(unsigned int mode); |
| 399 | |
| 400 // Set the accessibility mode to have the given value for the | |
| 401 // AccessibilityModeRender bit, and send an IPC to update the accessibility | |
| 402 // mode if necessary. | |
| 403 void SetRendererAccessibilityMode(bool on); | |
|
David Tseng
2014/01/27 22:16:06
nit: some naming inconsistency; (Set Accessibility
aboxhall
2014/01/28 00:18:42
Done.
| |
| 399 | 404 |
| 400 // Relay a request from assistive technology to perform the default action | 405 // Relay a request from assistive technology to perform the default action |
| 401 // on a given node. | 406 // on a given node. |
| 402 void AccessibilityDoDefaultAction(int object_id); | 407 void AccessibilityDoDefaultAction(int object_id); |
| 403 | 408 |
| 404 // Relay a request from assistive technology to set focus to a given node. | 409 // Relay a request from assistive technology to set focus to a given node. |
| 405 void AccessibilitySetFocus(int object_id); | 410 void AccessibilitySetFocus(int object_id); |
| 406 | 411 |
| 407 // Relay a request from assistive technology to make a given object | 412 // Relay a request from assistive technology to make a given object |
| 408 // visible by scrolling as many scrollable containers as necessary. | 413 // visible by scrolling as many scrollable containers as necessary. |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 812 gfx::Size new_auto_size_; | 817 gfx::Size new_auto_size_; |
| 813 | 818 |
| 814 // True if the render widget host should track the render widget's size as | 819 // True if the render widget host should track the render widget's size as |
| 815 // opposed to visa versa. | 820 // opposed to visa versa. |
| 816 bool should_auto_resize_; | 821 bool should_auto_resize_; |
| 817 | 822 |
| 818 bool waiting_for_screen_rects_ack_; | 823 bool waiting_for_screen_rects_ack_; |
| 819 gfx::Rect last_view_screen_rect_; | 824 gfx::Rect last_view_screen_rect_; |
| 820 gfx::Rect last_window_screen_rect_; | 825 gfx::Rect last_window_screen_rect_; |
| 821 | 826 |
| 822 AccessibilityMode accessibility_mode_; | 827 unsigned int accessibility_mode_; |
| 823 | 828 |
| 824 // Keyboard event listeners. | 829 // Keyboard event listeners. |
| 825 std::vector<KeyPressEventCallback> key_press_event_callbacks_; | 830 std::vector<KeyPressEventCallback> key_press_event_callbacks_; |
| 826 | 831 |
| 827 // Mouse event callbacks. | 832 // Mouse event callbacks. |
| 828 std::vector<MouseEventCallback> mouse_event_callbacks_; | 833 std::vector<MouseEventCallback> mouse_event_callbacks_; |
| 829 | 834 |
| 830 // If true, then we should repaint when restoring even if we have a | 835 // If true, then we should repaint when restoring even if we have a |
| 831 // backingstore. This flag is set to true if we receive a paint message | 836 // backingstore. This flag is set to true if we receive a paint message |
| 832 // while is_hidden_ to true. Even though we tell the render widget to hide | 837 // while is_hidden_ to true. Even though we tell the render widget to hide |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 922 int64 last_input_number_; | 927 int64 last_input_number_; |
| 923 | 928 |
| 924 BrowserRenderingStats rendering_stats_; | 929 BrowserRenderingStats rendering_stats_; |
| 925 | 930 |
| 926 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 931 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 927 }; | 932 }; |
| 928 | 933 |
| 929 } // namespace content | 934 } // namespace content |
| 930 | 935 |
| 931 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 936 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |