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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 // will be called. | 537 // will be called. |
537 virtual void RequestToLockMouse(bool user_gesture, | 538 virtual void RequestToLockMouse(bool user_gesture, |
538 bool last_unlocked_by_target); | 539 bool last_unlocked_by_target); |
539 | 540 |
540 bool IsMouseLocked() const; | 541 bool IsMouseLocked() const; |
541 | 542 |
542 // RenderViewHost overrides this method to report whether tab-initiated | 543 // RenderViewHost overrides this method to report whether tab-initiated |
543 // fullscreen was granted. | 544 // fullscreen was granted. |
544 virtual bool IsFullscreenGranted() const; | 545 virtual bool IsFullscreenGranted() const; |
545 | 546 |
| 547 virtual blink::WebDisplayMode GetDisplayMode() const; |
| 548 |
546 // Indicates if the render widget host should track the render widget's size | 549 // Indicates if the render widget host should track the render widget's size |
547 // as opposed to visa versa. | 550 // as opposed to visa versa. |
548 void SetAutoResize(bool enable, | 551 void SetAutoResize(bool enable, |
549 const gfx::Size& min_size, | 552 const gfx::Size& min_size, |
550 const gfx::Size& max_size); | 553 const gfx::Size& max_size); |
551 | 554 |
552 // Fills in the |resize_params| struct. | 555 // Fills in the |resize_params| struct. |
553 // Returns |false| if the update is redundant, |true| otherwise. | 556 // Returns |false| if the update is redundant, |true| otherwise. |
554 bool GetResizeParams(ViewMsg_Resize_Params* resize_params); | 557 bool GetResizeParams(ViewMsg_Resize_Params* resize_params); |
555 | 558 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 bool is_focused_; | 848 bool is_focused_; |
846 | 849 |
847 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 850 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
848 | 851 |
849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 852 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
850 }; | 853 }; |
851 | 854 |
852 } // namespace content | 855 } // namespace content |
853 | 856 |
854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 857 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |