| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Closes a RenderWidget that was created by |CreateForFrame|. | 158 // Closes a RenderWidget that was created by |CreateForFrame|. |
| 159 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. | 159 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. |
| 160 // https://crbug.com/545684 | 160 // https://crbug.com/545684 |
| 161 virtual void CloseForFrame(); | 161 virtual void CloseForFrame(); |
| 162 | 162 |
| 163 int32_t routing_id() const { return routing_id_; } | 163 int32_t routing_id() const { return routing_id_; } |
| 164 | 164 |
| 165 CompositorDependencies* compositor_deps() const { return compositor_deps_; } | 165 CompositorDependencies* compositor_deps() const { return compositor_deps_; } |
| 166 virtual blink::WebWidget* GetWebWidget() const; | 166 virtual blink::WebWidget* GetWebWidget() const; |
| 167 | 167 |
| 168 // Returns the current instance of WebInputMethodController which is to be | |
| 169 // used for IME related tasks. This instance corresponds to the one from | |
| 170 // focused frame and can be nullptr. | |
| 171 blink::WebInputMethodController* GetInputMethodController() const; | |
| 172 | |
| 173 const gfx::Size& size() const { return size_; } | 168 const gfx::Size& size() const { return size_; } |
| 174 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } | 169 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } |
| 175 blink::WebDisplayMode display_mode() const { return display_mode_; } | 170 blink::WebDisplayMode display_mode() const { return display_mode_; } |
| 176 bool is_hidden() const { return is_hidden_; } | 171 bool is_hidden() const { return is_hidden_; } |
| 177 // Temporary for debugging purposes... | 172 // Temporary for debugging purposes... |
| 178 bool closing() const { return closing_; } | 173 bool closing() const { return closing_; } |
| 179 bool has_host_context_menu_location() { | 174 bool has_host_context_menu_location() { |
| 180 return has_host_context_menu_location_; | 175 return has_host_context_menu_location_; |
| 181 } | 176 } |
| 182 gfx::Point host_context_menu_location() { | 177 gfx::Point host_context_menu_location() { |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 // being handled. If the current event results in starting a drag/drop | 853 // being handled. If the current event results in starting a drag/drop |
| 859 // session, this info is sent to the browser along with other drag/drop info. | 854 // session, this info is sent to the browser along with other drag/drop info. |
| 860 DragEventSourceInfo possible_drag_event_info_; | 855 DragEventSourceInfo possible_drag_event_info_; |
| 861 | 856 |
| 862 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 857 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 863 }; | 858 }; |
| 864 | 859 |
| 865 } // namespace content | 860 } // namespace content |
| 866 | 861 |
| 867 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 862 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |