| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 // Set the RenderView background. | 386 // Set the RenderView background. |
| 387 void SetBackground(const SkBitmap& background); | 387 void SetBackground(const SkBitmap& background); |
| 388 | 388 |
| 389 // Notifies the renderer that the next key event is bound to one or more | 389 // Notifies the renderer that the next key event is bound to one or more |
| 390 // pre-defined edit commands | 390 // pre-defined edit commands |
| 391 void SetEditCommandsForNextKeyEvent( | 391 void SetEditCommandsForNextKeyEvent( |
| 392 const std::vector<EditCommand>& commands); | 392 const std::vector<EditCommand>& commands); |
| 393 | 393 |
| 394 // Gets the accessibility mode. | 394 // Gets the accessibility mode. |
| 395 AccessibilityMode accessibility_mode() const { | 395 unsigned int accessibility_mode() const { |
| 396 return accessibility_mode_; | 396 return accessibility_mode_; |
| 397 } | 397 } |
| 398 | 398 |
| 399 // Send a message to the renderer process to change the accessibility mode. | 399 // Send a message to the renderer process to change the accessibility mode. |
| 400 void SetAccessibilityMode(AccessibilityMode mode); | 400 void SetAccessibilityMode(unsigned int mode); |
| 401 | 401 |
| 402 // Relay a request from assistive technology to perform the default action | 402 // Relay a request from assistive technology to perform the default action |
| 403 // on a given node. | 403 // on a given node. |
| 404 void AccessibilityDoDefaultAction(int object_id); | 404 void AccessibilityDoDefaultAction(int object_id); |
| 405 | 405 |
| 406 // Relay a request from assistive technology to set focus to a given node. | 406 // Relay a request from assistive technology to set focus to a given node. |
| 407 void AccessibilitySetFocus(int object_id); | 407 void AccessibilitySetFocus(int object_id); |
| 408 | 408 |
| 409 // Relay a request from assistive technology to make a given object | 409 // Relay a request from assistive technology to make a given object |
| 410 // visible by scrolling as many scrollable containers as necessary. | 410 // visible by scrolling as many scrollable containers as necessary. |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 gfx::Size new_auto_size_; | 823 gfx::Size new_auto_size_; |
| 824 | 824 |
| 825 // True if the render widget host should track the render widget's size as | 825 // True if the render widget host should track the render widget's size as |
| 826 // opposed to visa versa. | 826 // opposed to visa versa. |
| 827 bool should_auto_resize_; | 827 bool should_auto_resize_; |
| 828 | 828 |
| 829 bool waiting_for_screen_rects_ack_; | 829 bool waiting_for_screen_rects_ack_; |
| 830 gfx::Rect last_view_screen_rect_; | 830 gfx::Rect last_view_screen_rect_; |
| 831 gfx::Rect last_window_screen_rect_; | 831 gfx::Rect last_window_screen_rect_; |
| 832 | 832 |
| 833 AccessibilityMode accessibility_mode_; | 833 unsigned int accessibility_mode_; |
| 834 | 834 |
| 835 // Keyboard event listeners. | 835 // Keyboard event listeners. |
| 836 std::vector<KeyPressEventCallback> key_press_event_callbacks_; | 836 std::vector<KeyPressEventCallback> key_press_event_callbacks_; |
| 837 | 837 |
| 838 // Mouse event callbacks. | 838 // Mouse event callbacks. |
| 839 std::vector<MouseEventCallback> mouse_event_callbacks_; | 839 std::vector<MouseEventCallback> mouse_event_callbacks_; |
| 840 | 840 |
| 841 // If true, then we should repaint when restoring even if we have a | 841 // If true, then we should repaint when restoring even if we have a |
| 842 // backingstore. This flag is set to true if we receive a paint message | 842 // backingstore. This flag is set to true if we receive a paint message |
| 843 // while is_hidden_ to true. Even though we tell the render widget to hide | 843 // 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... |
| 933 int64 last_input_number_; | 933 int64 last_input_number_; |
| 934 | 934 |
| 935 BrowserRenderingStats rendering_stats_; | 935 BrowserRenderingStats rendering_stats_; |
| 936 | 936 |
| 937 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 937 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 938 }; | 938 }; |
| 939 | 939 |
| 940 } // namespace content | 940 } // namespace content |
| 941 | 941 |
| 942 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 942 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |