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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 blink::WebWidget* webwidget() const { return webwidget_; } | 124 blink::WebWidget* webwidget() const { return webwidget_; } |
125 gfx::Size size() const { return size_; } | 125 gfx::Size size() const { return size_; } |
126 bool has_focus() const { return has_focus_; } | 126 bool has_focus() const { return has_focus_; } |
127 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } | 127 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } |
128 blink::WebDisplayMode display_mode() const { return display_mode_; } | 128 blink::WebDisplayMode display_mode() const { return display_mode_; } |
129 bool is_hidden() const { return is_hidden_; } | 129 bool is_hidden() const { return is_hidden_; } |
130 bool handling_input_event() const { return handling_input_event_; } | 130 bool handling_input_event() const { return handling_input_event_; } |
131 // Temporary for debugging purposes... | 131 // Temporary for debugging purposes... |
132 bool closing() const { return closing_; } | 132 bool closing() const { return closing_; } |
133 bool is_swapped_out() { return is_swapped_out_; } | 133 bool is_swapped_out() { return is_swapped_out_; } |
| 134 bool for_oopif() { return for_oopif_; } |
134 ui::MenuSourceType context_menu_source_type() { | 135 ui::MenuSourceType context_menu_source_type() { |
135 return context_menu_source_type_; | 136 return context_menu_source_type_; |
136 } | 137 } |
137 bool has_host_context_menu_location() { | 138 bool has_host_context_menu_location() { |
138 return has_host_context_menu_location_; | 139 return has_host_context_menu_location_; |
139 } | 140 } |
140 gfx::Point host_context_menu_location() { | 141 gfx::Point host_context_menu_location() { |
141 return host_context_menu_location_; | 142 return host_context_menu_location_; |
142 } | 143 } |
143 | 144 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 bool closing_; | 685 bool closing_; |
685 | 686 |
686 // True if it is known that the host is in the process of being shut down. | 687 // True if it is known that the host is in the process of being shut down. |
687 bool host_closing_; | 688 bool host_closing_; |
688 | 689 |
689 // Whether this RenderWidget is currently swapped out, such that the view is | 690 // Whether this RenderWidget is currently swapped out, such that the view is |
690 // being rendered by another process. If all RenderWidgets in a process are | 691 // being rendered by another process. If all RenderWidgets in a process are |
691 // swapped out, the process can exit. | 692 // swapped out, the process can exit. |
692 bool is_swapped_out_; | 693 bool is_swapped_out_; |
693 | 694 |
| 695 // TODO(simonhong): Remove this when we enable BeginFrame scheduling for |
| 696 // OOPIF(crbug.com/471411). |
| 697 // Whether this RenderWidget is for an out-of-process iframe or not. |
| 698 bool for_oopif_; |
| 699 |
694 // Indicates if an input method is active in the browser process. | 700 // Indicates if an input method is active in the browser process. |
695 bool input_method_is_active_; | 701 bool input_method_is_active_; |
696 | 702 |
697 // Stores information about the current text input. | 703 // Stores information about the current text input. |
698 blink::WebTextInputInfo text_input_info_; | 704 blink::WebTextInputInfo text_input_info_; |
699 | 705 |
700 // Stores the current text input type of |webwidget_|. | 706 // Stores the current text input type of |webwidget_|. |
701 ui::TextInputType text_input_type_; | 707 ui::TextInputType text_input_type_; |
702 | 708 |
703 // Stores the current text input mode of |webwidget_|. | 709 // Stores the current text input mode of |webwidget_|. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 ui::MenuSourceType context_menu_source_type_; | 811 ui::MenuSourceType context_menu_source_type_; |
806 bool has_host_context_menu_location_; | 812 bool has_host_context_menu_location_; |
807 gfx::Point host_context_menu_location_; | 813 gfx::Point host_context_menu_location_; |
808 | 814 |
809 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
810 }; | 816 }; |
811 | 817 |
812 } // namespace content | 818 } // namespace content |
813 | 819 |
814 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |