| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 30 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
| 31 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 31 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
| 32 #include "content/browser/renderer_host/render_widget_host_latency_tracker.h" | 32 #include "content/browser/renderer_host/render_widget_host_latency_tracker.h" |
| 33 #include "content/common/input/input_event_ack_state.h" | 33 #include "content/common/input/input_event_ack_state.h" |
| 34 #include "content/common/input/synthetic_gesture_packet.h" | 34 #include "content/common/input/synthetic_gesture_packet.h" |
| 35 #include "content/common/view_message_enums.h" | 35 #include "content/common/view_message_enums.h" |
| 36 #include "content/public/browser/readback_types.h" | 36 #include "content/public/browser/readback_types.h" |
| 37 #include "content/public/browser/render_widget_host.h" | 37 #include "content/public/browser/render_widget_host.h" |
| 38 #include "content/public/common/page_zoom.h" | 38 #include "content/public/common/page_zoom.h" |
| 39 #include "ipc/ipc_listener.h" | 39 #include "ipc/ipc_listener.h" |
| 40 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 40 #include "ui/base/ime/text_input_mode.h" | 41 #include "ui/base/ime/text_input_mode.h" |
| 41 #include "ui/base/ime/text_input_type.h" | 42 #include "ui/base/ime/text_input_type.h" |
| 42 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 43 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
| 43 #include "ui/events/latency_info.h" | 44 #include "ui/events/latency_info.h" |
| 44 #include "ui/gfx/native_widget_types.h" | 45 #include "ui/gfx/native_widget_types.h" |
| 45 | 46 |
| 46 struct AcceleratedSurfaceMsg_BufferPresented_Params; | 47 struct AcceleratedSurfaceMsg_BufferPresented_Params; |
| 47 struct ViewHostMsg_BeginSmoothScroll_Params; | 48 struct ViewHostMsg_BeginSmoothScroll_Params; |
| 48 struct ViewHostMsg_SelectionBounds_Params; | 49 struct ViewHostMsg_SelectionBounds_Params; |
| 49 struct ViewHostMsg_TextInputState_Params; | 50 struct ViewHostMsg_TextInputState_Params; |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 // Once the request is approved or rejected, GotResponseToLockMouseRequest() | 539 // Once the request is approved or rejected, GotResponseToLockMouseRequest() |
| 539 // will be called. | 540 // will be called. |
| 540 virtual void RequestToLockMouse(bool user_gesture, | 541 virtual void RequestToLockMouse(bool user_gesture, |
| 541 bool last_unlocked_by_target); | 542 bool last_unlocked_by_target); |
| 542 | 543 |
| 543 bool IsMouseLocked() const; | 544 bool IsMouseLocked() const; |
| 544 | 545 |
| 545 // RenderViewHost overrides this method to report when in fullscreen mode. | 546 // RenderViewHost overrides this method to report when in fullscreen mode. |
| 546 virtual bool IsFullscreen() const; | 547 virtual bool IsFullscreen() const; |
| 547 | 548 |
| 549 virtual blink::WebDisplayMode GetDisplayMode() const; |
| 550 |
| 548 // Indicates if the render widget host should track the render widget's size | 551 // Indicates if the render widget host should track the render widget's size |
| 549 // as opposed to visa versa. | 552 // as opposed to visa versa. |
| 550 void SetAutoResize(bool enable, | 553 void SetAutoResize(bool enable, |
| 551 const gfx::Size& min_size, | 554 const gfx::Size& min_size, |
| 552 const gfx::Size& max_size); | 555 const gfx::Size& max_size); |
| 553 | 556 |
| 554 // Fills in the |resize_params| struct. | 557 // Fills in the |resize_params| struct. |
| 555 // Returns |false| if the update is redundant, |true| otherwise. | 558 // Returns |false| if the update is redundant, |true| otherwise. |
| 556 bool GetResizeParams(ViewMsg_Resize_Params* resize_params); | 559 bool GetResizeParams(ViewMsg_Resize_Params* resize_params); |
| 557 | 560 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 bool is_focused_; | 850 bool is_focused_; |
| 848 | 851 |
| 849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 852 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 850 | 853 |
| 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 854 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 852 }; | 855 }; |
| 853 | 856 |
| 854 } // namespace content | 857 } // namespace content |
| 855 | 858 |
| 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 859 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |