| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <deque> | 11 #include <deque> |
| 12 #include <map> | 12 #include <map> |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
| 20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
| 23 #include "content/common/cursors/webcursor.h" | 23 #include "content/common/cursors/webcursor.h" |
| 24 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | |
| 25 #include "content/common/input/synthetic_gesture_params.h" | 24 #include "content/common/input/synthetic_gesture_params.h" |
| 26 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega
te.h" | 25 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega
te.h" |
| 27 #include "content/renderer/gpu/render_widget_compositor_delegate.h" | 26 #include "content/renderer/gpu/render_widget_compositor_delegate.h" |
| 28 #include "content/renderer/input/render_widget_input_handler.h" | 27 #include "content/renderer/input/render_widget_input_handler.h" |
| 29 #include "content/renderer/input/render_widget_input_handler_delegate.h" | 28 #include "content/renderer/input/render_widget_input_handler_delegate.h" |
| 30 #include "content/renderer/message_delivery_policy.h" | 29 #include "content/renderer/message_delivery_policy.h" |
| 31 #include "ipc/ipc_listener.h" | 30 #include "ipc/ipc_listener.h" |
| 32 #include "ipc/ipc_sender.h" | 31 #include "ipc/ipc_sender.h" |
| 33 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 32 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 34 #include "third_party/WebKit/public/platform/WebRect.h" | 33 #include "third_party/WebKit/public/platform/WebRect.h" |
| 35 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 34 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 36 #include "third_party/WebKit/public/web/WebInputEvent.h" | 35 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 37 #include "third_party/WebKit/public/web/WebPopupType.h" | 36 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 38 #include "third_party/WebKit/public/web/WebTextDirection.h" | 37 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 39 #include "third_party/WebKit/public/web/WebTextInputInfo.h" | 38 #include "third_party/WebKit/public/web/WebTextInputInfo.h" |
| 40 #include "third_party/WebKit/public/web/WebTouchAction.h" | 39 #include "third_party/WebKit/public/web/WebTouchAction.h" |
| 41 #include "third_party/WebKit/public/web/WebWidget.h" | 40 #include "third_party/WebKit/public/web/WebWidget.h" |
| 42 #include "third_party/WebKit/public/web/WebWidgetClient.h" | 41 #include "third_party/WebKit/public/web/WebWidgetClient.h" |
| 43 #include "third_party/skia/include/core/SkBitmap.h" | 42 #include "third_party/skia/include/core/SkBitmap.h" |
| 44 #include "ui/base/ime/text_input_mode.h" | 43 #include "ui/base/ime/text_input_mode.h" |
| 45 #include "ui/base/ime/text_input_type.h" | 44 #include "ui/base/ime/text_input_type.h" |
| 46 #include "ui/base/ui_base_types.h" | 45 #include "ui/base/ui_base_types.h" |
| 47 #include "ui/gfx/geometry/rect.h" | 46 #include "ui/gfx/geometry/rect.h" |
| 48 #include "ui/gfx/geometry/vector2d_f.h" | 47 #include "ui/gfx/geometry/vector2d_f.h" |
| 49 #include "ui/gfx/native_widget_types.h" | 48 #include "ui/gfx/native_widget_types.h" |
| 50 #include "ui/gfx/range/range.h" | 49 #include "ui/gfx/range/range.h" |
| 51 #include "ui/surface/transport_dib.h" | 50 #include "ui/surface/transport_dib.h" |
| 52 | 51 |
| 52 class GURL; |
| 53 |
| 53 namespace IPC { | 54 namespace IPC { |
| 54 class SyncMessage; | 55 class SyncMessage; |
| 55 class SyncMessageFilter; | 56 class SyncMessageFilter; |
| 56 } | 57 } |
| 57 | 58 |
| 58 namespace blink { | 59 namespace blink { |
| 59 struct WebDeviceEmulationParams; | 60 struct WebDeviceEmulationParams; |
| 60 class WebFrameWidget; | 61 class WebFrameWidget; |
| 61 class WebGestureEvent; | 62 class WebGestureEvent; |
| 62 class WebLocalFrame; | 63 class WebLocalFrame; |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 private: | 760 private: |
| 760 // When emulated, this returns original device scale factor. | 761 // When emulated, this returns original device scale factor. |
| 761 float GetOriginalDeviceScaleFactor() const; | 762 float GetOriginalDeviceScaleFactor() const; |
| 762 | 763 |
| 763 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 764 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 764 }; | 765 }; |
| 765 | 766 |
| 766 } // namespace content | 767 } // namespace content |
| 767 | 768 |
| 768 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 769 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |