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 28 matching lines...) Expand all Loading... |
39 #include "content/public/browser/render_widget_host.h" | 39 #include "content/public/browser/render_widget_host.h" |
40 #include "content/public/common/page_zoom.h" | 40 #include "content/public/common/page_zoom.h" |
41 #include "ipc/ipc_listener.h" | 41 #include "ipc/ipc_listener.h" |
42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
43 #include "ui/base/ime/text_input_mode.h" | 43 #include "ui/base/ime/text_input_mode.h" |
44 #include "ui/base/ime/text_input_type.h" | 44 #include "ui/base/ime/text_input_type.h" |
45 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 45 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
46 #include "ui/events/latency_info.h" | 46 #include "ui/events/latency_info.h" |
47 #include "ui/gfx/native_widget_types.h" | 47 #include "ui/gfx/native_widget_types.h" |
48 | 48 |
| 49 struct FrameHostMsg_HittestData_Params; |
49 struct ViewHostMsg_SelectionBounds_Params; | 50 struct ViewHostMsg_SelectionBounds_Params; |
50 struct ViewHostMsg_TextInputState_Params; | 51 struct ViewHostMsg_TextInputState_Params; |
51 struct ViewHostMsg_UpdateRect_Params; | 52 struct ViewHostMsg_UpdateRect_Params; |
52 | 53 |
53 namespace blink { | 54 namespace blink { |
54 class WebInputEvent; | 55 class WebInputEvent; |
55 #if defined(OS_ANDROID) | 56 #if defined(OS_ANDROID) |
56 class WebLayer; | 57 class WebLayer; |
57 #endif | 58 #endif |
58 class WebMouseEvent; | 59 class WebMouseEvent; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 gfx::NativeViewId dummy_activation_window); | 584 gfx::NativeViewId dummy_activation_window); |
584 void OnWindowlessPluginDummyWindowDestroyed( | 585 void OnWindowlessPluginDummyWindowDestroyed( |
585 gfx::NativeViewId dummy_activation_window); | 586 gfx::NativeViewId dummy_activation_window); |
586 #endif | 587 #endif |
587 void OnSelectionChanged(const base::string16& text, | 588 void OnSelectionChanged(const base::string16& text, |
588 size_t offset, | 589 size_t offset, |
589 const gfx::Range& range); | 590 const gfx::Range& range); |
590 void OnSelectionBoundsChanged( | 591 void OnSelectionBoundsChanged( |
591 const ViewHostMsg_SelectionBounds_Params& params); | 592 const ViewHostMsg_SelectionBounds_Params& params); |
592 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); | 593 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); |
| 594 void OnHittestData(const FrameHostMsg_HittestData_Params& params); |
593 | 595 |
594 // Called (either immediately or asynchronously) after we're done with our | 596 // Called (either immediately or asynchronously) after we're done with our |
595 // BackingStore and can send an ACK to the renderer so it can paint onto it | 597 // BackingStore and can send an ACK to the renderer so it can paint onto it |
596 // again. | 598 // again. |
597 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, | 599 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, |
598 const base::TimeTicks& paint_start); | 600 const base::TimeTicks& paint_start); |
599 | 601 |
600 // Give key press listeners a chance to handle this key press. This allow | 602 // Give key press listeners a chance to handle this key press. This allow |
601 // widgets that don't have focus to still handle key presses. | 603 // widgets that don't have focus to still handle key presses. |
602 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); | 604 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 827 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
826 | 828 |
827 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 829 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
828 | 830 |
829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 831 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
830 }; | 832 }; |
831 | 833 |
832 } // namespace content | 834 } // namespace content |
833 | 835 |
834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 836 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |