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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 CompositorDependencies* compositor_deps, | 117 CompositorDependencies* compositor_deps, |
118 blink::WebLocalFrame* frame); | 118 blink::WebLocalFrame* frame); |
119 | 119 |
120 // Closes a RenderWidget that was created by |CreateForFrame|. | 120 // Closes a RenderWidget that was created by |CreateForFrame|. |
121 void CloseForFrame(); | 121 void CloseForFrame(); |
122 | 122 |
123 int32 routing_id() const { return routing_id_; } | 123 int32 routing_id() const { return routing_id_; } |
124 CompositorDependencies* compositor_deps() const { return compositor_deps_; } | 124 CompositorDependencies* compositor_deps() const { return compositor_deps_; } |
125 blink::WebWidget* webwidget() const { return webwidget_; } | 125 blink::WebWidget* webwidget() const { return webwidget_; } |
126 gfx::Size size() const { return size_; } | 126 gfx::Size size() const { return size_; } |
127 bool has_focus() const { return has_focus_; } | |
128 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } | 127 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } |
129 blink::WebDisplayMode display_mode() const { return display_mode_; } | 128 blink::WebDisplayMode display_mode() const { return display_mode_; } |
130 bool is_hidden() const { return is_hidden_; } | 129 bool is_hidden() const { return is_hidden_; } |
131 bool handling_input_event() const { return handling_input_event_; } | 130 bool handling_input_event() const { return handling_input_event_; } |
132 // Temporary for debugging purposes... | 131 // Temporary for debugging purposes... |
133 bool closing() const { return closing_; } | 132 bool closing() const { return closing_; } |
134 bool is_swapped_out() { return is_swapped_out_; } | 133 bool is_swapped_out() { return is_swapped_out_; } |
135 bool for_oopif() { return for_oopif_; } | 134 bool for_oopif() { return for_oopif_; } |
136 ui::MenuSourceType context_menu_source_type() { | 135 ui::MenuSourceType context_menu_source_type() { |
137 return context_menu_source_type_; | 136 return context_menu_source_type_; |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 642 |
644 // Indicates that we are never visible, so never produce graphical output. | 643 // Indicates that we are never visible, so never produce graphical output. |
645 const bool compositor_never_visible_; | 644 const bool compositor_never_visible_; |
646 | 645 |
647 // Indicates whether tab-initiated fullscreen was granted. | 646 // Indicates whether tab-initiated fullscreen was granted. |
648 bool is_fullscreen_granted_; | 647 bool is_fullscreen_granted_; |
649 | 648 |
650 // Indicates the display mode. | 649 // Indicates the display mode. |
651 blink::WebDisplayMode display_mode_; | 650 blink::WebDisplayMode display_mode_; |
652 | 651 |
653 // Indicates whether we have been focused/unfocused by the browser. | |
654 bool has_focus_; | |
655 | |
656 // Are we currently handling an input event? | 652 // Are we currently handling an input event? |
657 bool handling_input_event_; | 653 bool handling_input_event_; |
658 | 654 |
659 // Used to intercept overscroll notifications while an event is being | 655 // Used to intercept overscroll notifications while an event is being |
660 // handled. If the event causes overscroll, the overscroll metadata can be | 656 // handled. If the event causes overscroll, the overscroll metadata can be |
661 // bundled in the event ack, saving an IPC. Note that we must continue | 657 // bundled in the event ack, saving an IPC. Note that we must continue |
662 // supporting overscroll IPC notifications due to fling animation updates. | 658 // supporting overscroll IPC notifications due to fling animation updates. |
663 scoped_ptr<DidOverscrollParams>* handling_event_overscroll_; | 659 scoped_ptr<DidOverscrollParams>* handling_event_overscroll_; |
664 | 660 |
665 // Are we currently handling an ime event? | 661 // Are we currently handling an ime event? |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 ui::MenuSourceType context_menu_source_type_; | 789 ui::MenuSourceType context_menu_source_type_; |
794 bool has_host_context_menu_location_; | 790 bool has_host_context_menu_location_; |
795 gfx::Point host_context_menu_location_; | 791 gfx::Point host_context_menu_location_; |
796 | 792 |
797 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 793 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
798 }; | 794 }; |
799 | 795 |
800 } // namespace content | 796 } // namespace content |
801 | 797 |
802 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |