| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "content/common/render_widget_surface_properties.h" | 43 #include "content/common/render_widget_surface_properties.h" |
| 44 #include "content/common/view_message_enums.h" | 44 #include "content/common/view_message_enums.h" |
| 45 #include "content/public/browser/render_widget_host.h" | 45 #include "content/public/browser/render_widget_host.h" |
| 46 #include "content/public/common/page_zoom.h" | 46 #include "content/public/common/page_zoom.h" |
| 47 #include "content/public/common/url_constants.h" | 47 #include "content/public/common/url_constants.h" |
| 48 #include "ipc/ipc_listener.h" | 48 #include "ipc/ipc_listener.h" |
| 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/events/gesture_detection/gesture_provider_config_helper.h" | 54 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
| 54 #include "ui/gfx/native_widget_types.h" | 55 #include "ui/gfx/native_widget_types.h" |
| 55 #include "ui/latency/latency_info.h" | 56 #include "ui/latency/latency_info.h" |
| 56 | 57 |
| 57 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
| 58 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" | 59 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" |
| 59 #endif | 60 #endif |
| 60 | 61 |
| 61 class SkBitmap; | 62 class SkBitmap; |
| 62 struct FrameHostMsg_HittestData_Params; | 63 struct FrameHostMsg_HittestData_Params; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 371 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
| 371 void SetTouchEventEmulationEnabled( | 372 void SetTouchEventEmulationEnabled( |
| 372 bool enabled, ui::GestureProviderConfigType config_type); | 373 bool enabled, ui::GestureProviderConfigType config_type); |
| 373 | 374 |
| 374 // TouchEmulatorClient implementation. | 375 // TouchEmulatorClient implementation. |
| 375 void ForwardEmulatedGestureEvent( | 376 void ForwardEmulatedGestureEvent( |
| 376 const blink::WebGestureEvent& gesture_event) override; | 377 const blink::WebGestureEvent& gesture_event) override; |
| 377 void ForwardEmulatedTouchEvent( | 378 void ForwardEmulatedTouchEvent( |
| 378 const blink::WebTouchEvent& touch_event) override; | 379 const blink::WebTouchEvent& touch_event) override; |
| 379 void SetCursor(const WebCursor& cursor) override; | 380 void SetCursor(const WebCursor& cursor) override; |
| 380 void ShowContextMenuAtPoint(const gfx::Point& point) override; | 381 void ShowContextMenuAtPoint(const gfx::Point& point, |
| 382 const ui::MenuSourceType source_type) override; |
| 381 | 383 |
| 382 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 384 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
| 383 // callback when the gesture is finished running. | 385 // callback when the gesture is finished running. |
| 384 void QueueSyntheticGesture( | 386 void QueueSyntheticGesture( |
| 385 std::unique_ptr<SyntheticGesture> synthetic_gesture, | 387 std::unique_ptr<SyntheticGesture> synthetic_gesture, |
| 386 const base::Callback<void(SyntheticGesture::Result)>& on_complete); | 388 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
| 387 | 389 |
| 388 void CancelUpdateTextDirection(); | 390 void CancelUpdateTextDirection(); |
| 389 | 391 |
| 390 // Update the composition node of the renderer (or WebKit). | 392 // Update the composition node of the renderer (or WebKit). |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 base::OnceClosure begin_frame_callback_; | 990 base::OnceClosure begin_frame_callback_; |
| 989 | 991 |
| 990 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 992 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 991 | 993 |
| 992 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 994 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 993 }; | 995 }; |
| 994 | 996 |
| 995 } // namespace content | 997 } // namespace content |
| 996 | 998 |
| 997 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 999 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |