Chromium Code Reviews| Index: content/renderer/render_widget.h |
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
| index 593675c7756f9b2eeded67e417fb476c53cf610b..c131e36f7758e92b30a1cdb6fdb04dec449852ec 100644 |
| --- a/content/renderer/render_widget.h |
| +++ b/content/renderer/render_widget.h |
| @@ -23,6 +23,7 @@ |
| #include "content/renderer/message_delivery_policy.h" |
| #include "ipc/ipc_listener.h" |
| #include "ipc/ipc_sender.h" |
| +#include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| #include "third_party/WebKit/public/platform/WebRect.h" |
| #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| #include "third_party/WebKit/public/web/WebInputEvent.h" |
| @@ -124,6 +125,7 @@ class CONTENT_EXPORT RenderWidget |
| gfx::Size size() const { return size_; } |
| bool has_focus() const { return has_focus_; } |
| bool is_fullscreen() const { return is_fullscreen_; } |
|
miu
2015/03/31 01:37:49
I understand now why this is decoupled, but there'
|
| + blink::WebDisplayMode display_mode() const { return display_mode_; } |
| bool is_hidden() const { return is_hidden_; } |
| bool handling_input_event() const { return handling_input_event_; } |
| // Temporary for debugging purposes... |
| @@ -389,6 +391,7 @@ class CONTENT_EXPORT RenderWidget |
| const gfx::Size& visible_viewport_size, |
| const gfx::Rect& resizer_rect, |
| bool is_fullscreen, |
| + blink::WebDisplayMode display_mode, |
| ResizeAck resize_ack); |
| // Used to force the size of a window when running layout tests. |
| void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); |
| @@ -661,6 +664,9 @@ class CONTENT_EXPORT RenderWidget |
| // Indicates that we are in fullscreen mode. |
| bool is_fullscreen_; |
| + // Indicates the display mode. |
| + blink::WebDisplayMode display_mode_; |
| + |
| // Indicates whether we have been focused/unfocused by the browser. |
| bool has_focus_; |