| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class CompositorDependencies; | 80 class CompositorDependencies; |
| 81 class ExternalPopupMenu; | 81 class ExternalPopupMenu; |
| 82 class FrameSwapMessageQueue; | 82 class FrameSwapMessageQueue; |
| 83 class PepperPluginInstanceImpl; | 83 class PepperPluginInstanceImpl; |
| 84 class RenderFrameImpl; | 84 class RenderFrameImpl; |
| 85 class RenderFrameProxy; | 85 class RenderFrameProxy; |
| 86 class RenderWidgetCompositor; | 86 class RenderWidgetCompositor; |
| 87 class RenderWidgetTest; | 87 class RenderWidgetTest; |
| 88 class ResizingModeSelector; | 88 class ResizingModeSelector; |
| 89 struct ContextMenuParams; | 89 struct ContextMenuParams; |
| 90 struct DidOverscrollParams; |
| 90 struct WebPluginGeometry; | 91 struct WebPluginGeometry; |
| 91 | 92 |
| 92 // RenderWidget provides a communication bridge between a WebWidget and | 93 // RenderWidget provides a communication bridge between a WebWidget and |
| 93 // a RenderWidgetHost, the latter of which lives in a different process. | 94 // a RenderWidgetHost, the latter of which lives in a different process. |
| 94 class CONTENT_EXPORT RenderWidget | 95 class CONTENT_EXPORT RenderWidget |
| 95 : public IPC::Listener, | 96 : public IPC::Listener, |
| 96 public IPC::Sender, | 97 public IPC::Sender, |
| 97 NON_EXPORTED_BASE(virtual public blink::WebWidgetClient), | 98 NON_EXPORTED_BASE(virtual public blink::WebWidgetClient), |
| 98 public base::RefCounted<RenderWidget> { | 99 public base::RefCounted<RenderWidget> { |
| 99 public: | 100 public: |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 | 672 |
| 672 // Indicates the display mode. | 673 // Indicates the display mode. |
| 673 blink::WebDisplayMode display_mode_; | 674 blink::WebDisplayMode display_mode_; |
| 674 | 675 |
| 675 // Indicates whether we have been focused/unfocused by the browser. | 676 // Indicates whether we have been focused/unfocused by the browser. |
| 676 bool has_focus_; | 677 bool has_focus_; |
| 677 | 678 |
| 678 // Are we currently handling an input event? | 679 // Are we currently handling an input event? |
| 679 bool handling_input_event_; | 680 bool handling_input_event_; |
| 680 | 681 |
| 682 // Used to intercept overscroll notifications while an event is being |
| 683 // handled. If the event causes overscroll, the overscroll metadata can be |
| 684 // bundled in the event ack, saving an IPC. Note that we must continue |
| 685 // supporting overscroll IPC notifications due to fling animation updates. |
| 686 scoped_ptr<DidOverscrollParams>* handling_event_overscroll_; |
| 687 |
| 681 // Are we currently handling an ime event? | 688 // Are we currently handling an ime event? |
| 682 bool handling_ime_event_; | 689 bool handling_ime_event_; |
| 683 | 690 |
| 684 // Type of the input event we are currently handling. | 691 // Type of the input event we are currently handling. |
| 685 blink::WebInputEvent::Type handling_event_type_; | 692 blink::WebInputEvent::Type handling_event_type_; |
| 686 | 693 |
| 687 // Whether we should not send ack for the current mouse move. | 694 // Whether we should not send ack for the current mouse move. |
| 688 bool ignore_ack_for_mouse_move_from_debugger_; | 695 bool ignore_ack_for_mouse_move_from_debugger_; |
| 689 | 696 |
| 690 // True if we have requested this widget be closed. No more messages will | 697 // True if we have requested this widget be closed. No more messages will |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 ui::MenuSourceType context_menu_source_type_; | 825 ui::MenuSourceType context_menu_source_type_; |
| 819 bool has_host_context_menu_location_; | 826 bool has_host_context_menu_location_; |
| 820 gfx::Point host_context_menu_location_; | 827 gfx::Point host_context_menu_location_; |
| 821 | 828 |
| 822 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 829 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 823 }; | 830 }; |
| 824 | 831 |
| 825 } // namespace content | 832 } // namespace content |
| 826 | 833 |
| 827 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 834 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |