| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "mojo/public/cpp/bindings/binding.h" | 49 #include "mojo/public/cpp/bindings/binding.h" |
| 50 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 50 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 51 #include "ui/base/ime/text_input_mode.h" | 51 #include "ui/base/ime/text_input_mode.h" |
| 52 #include "ui/base/ime/text_input_type.h" | 52 #include "ui/base/ime/text_input_type.h" |
| 53 #include "ui/base/ui_base_types.h" | 53 #include "ui/base/ui_base_types.h" |
| 54 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 54 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
| 55 #include "ui/gfx/native_widget_types.h" | 55 #include "ui/gfx/native_widget_types.h" |
| 56 #include "ui/latency/latency_info.h" | 56 #include "ui/latency/latency_info.h" |
| 57 | 57 |
| 58 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
| 59 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" | 59 #include "device/wake_lock/public/interfaces/wake_lock.mojom.h" |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 class SkBitmap; | 62 class SkBitmap; |
| 63 struct FrameHostMsg_HittestData_Params; | 63 struct FrameHostMsg_HittestData_Params; |
| 64 struct ViewHostMsg_SelectionBounds_Params; | 64 struct ViewHostMsg_SelectionBounds_Params; |
| 65 struct ViewHostMsg_UpdateRect_Params; | 65 struct ViewHostMsg_UpdateRect_Params; |
| 66 | 66 |
| 67 namespace blink { | 67 namespace blink { |
| 68 class WebInputEvent; | 68 class WebInputEvent; |
| 69 class WebMouseEvent; | 69 class WebMouseEvent; |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 void StopHangMonitorTimeout(); | 756 void StopHangMonitorTimeout(); |
| 757 | 757 |
| 758 // Used for UMA logging how long the renderer was unresponsive. | 758 // Used for UMA logging how long the renderer was unresponsive. |
| 759 void LogHangMonitorUnresponsive(); | 759 void LogHangMonitorUnresponsive(); |
| 760 | 760 |
| 761 // Once both the frame and its swap messages arrive, we call this method to | 761 // Once both the frame and its swap messages arrive, we call this method to |
| 762 // process the messages. Virtual for tests. | 762 // process the messages. Virtual for tests. |
| 763 virtual void ProcessSwapMessages(std::vector<IPC::Message> messages); | 763 virtual void ProcessSwapMessages(std::vector<IPC::Message> messages); |
| 764 | 764 |
| 765 #if defined(OS_MACOSX) | 765 #if defined(OS_MACOSX) |
| 766 device::mojom::WakeLockService* GetWakeLockService(); | 766 device::mojom::WakeLock* GetWakeLock(); |
| 767 #endif | 767 #endif |
| 768 | 768 |
| 769 // true if a renderer has once been valid. We use this flag to display a sad | 769 // true if a renderer has once been valid. We use this flag to display a sad |
| 770 // tab only when we lose our renderer and not if a paint occurs during | 770 // tab only when we lose our renderer and not if a paint occurs during |
| 771 // initialization. | 771 // initialization. |
| 772 bool renderer_initialized_; | 772 bool renderer_initialized_; |
| 773 | 773 |
| 774 // True if |Destroy()| has been called. | 774 // True if |Destroy()| has been called. |
| 775 bool destroyed_; | 775 bool destroyed_; |
| 776 | 776 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 bool monitoring_composition_info_; | 956 bool monitoring_composition_info_; |
| 957 | 957 |
| 958 // This is the content_source_id of the latest frame received. This value is | 958 // This is the content_source_id of the latest frame received. This value is |
| 959 // compared against current_content_source_id_ to determine whether the | 959 // compared against current_content_source_id_ to determine whether the |
| 960 // received frame belongs to the current page. If a frame for the current page | 960 // received frame belongs to the current page. If a frame for the current page |
| 961 // does not arrive in time after nagivation, we clear the graphics of the old | 961 // does not arrive in time after nagivation, we clear the graphics of the old |
| 962 // page. See RenderWidget::current_content_source_id_ for more information. | 962 // page. See RenderWidget::current_content_source_id_ for more information. |
| 963 uint32_t last_received_content_source_id_ = 0; | 963 uint32_t last_received_content_source_id_ = 0; |
| 964 | 964 |
| 965 #if defined(OS_MACOSX) | 965 #if defined(OS_MACOSX) |
| 966 device::mojom::WakeLockServicePtr wake_lock_; | 966 device::mojom::WakeLockPtr wake_lock_; |
| 967 #endif | 967 #endif |
| 968 | 968 |
| 969 // These information are used to verify that the renderer does not misbehave | 969 // These information are used to verify that the renderer does not misbehave |
| 970 // when it comes to allocating LocalSurfaceIds. If surface properties change, | 970 // when it comes to allocating LocalSurfaceIds. If surface properties change, |
| 971 // a new LocalSurfaceId must be created. | 971 // a new LocalSurfaceId must be created. |
| 972 cc::LocalSurfaceId last_local_surface_id_; | 972 cc::LocalSurfaceId last_local_surface_id_; |
| 973 RenderWidgetSurfaceProperties last_surface_properties_; | 973 RenderWidgetSurfaceProperties last_surface_properties_; |
| 974 | 974 |
| 975 mojo::Binding<cc::mojom::MojoCompositorFrameSink> | 975 mojo::Binding<cc::mojom::MojoCompositorFrameSink> |
| 976 compositor_frame_sink_binding_; | 976 compositor_frame_sink_binding_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 989 base::OnceClosure begin_frame_callback_; | 989 base::OnceClosure begin_frame_callback_; |
| 990 | 990 |
| 991 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 991 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 992 | 992 |
| 993 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 993 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 994 }; | 994 }; |
| 995 | 995 |
| 996 } // namespace content | 996 } // namespace content |
| 997 | 997 |
| 998 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 998 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |