| 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 struct ViewMsg_Resize_Params; | 53 struct ViewMsg_Resize_Params; |
| 53 | 54 |
| 54 namespace blink { | 55 namespace blink { |
| 55 class WebInputEvent; | 56 class WebInputEvent; |
| 56 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
| 57 class WebLayer; | 58 class WebLayer; |
| 58 #endif | 59 #endif |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 gfx::NativeViewId dummy_activation_window); | 582 gfx::NativeViewId dummy_activation_window); |
| 582 void OnWindowlessPluginDummyWindowDestroyed( | 583 void OnWindowlessPluginDummyWindowDestroyed( |
| 583 gfx::NativeViewId dummy_activation_window); | 584 gfx::NativeViewId dummy_activation_window); |
| 584 #endif | 585 #endif |
| 585 void OnSelectionChanged(const base::string16& text, | 586 void OnSelectionChanged(const base::string16& text, |
| 586 size_t offset, | 587 size_t offset, |
| 587 const gfx::Range& range); | 588 const gfx::Range& range); |
| 588 void OnSelectionBoundsChanged( | 589 void OnSelectionBoundsChanged( |
| 589 const ViewHostMsg_SelectionBounds_Params& params); | 590 const ViewHostMsg_SelectionBounds_Params& params); |
| 590 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); | 591 void OnForwardCompositorProto(const std::vector<uint8_t>& proto); |
| 592 void OnHittestData(const FrameHostMsg_HittestData_Params& params); |
| 591 | 593 |
| 592 // Called (either immediately or asynchronously) after we're done with our | 594 // Called (either immediately or asynchronously) after we're done with our |
| 593 // BackingStore and can send an ACK to the renderer so it can paint onto it | 595 // BackingStore and can send an ACK to the renderer so it can paint onto it |
| 594 // again. | 596 // again. |
| 595 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, | 597 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, |
| 596 const base::TimeTicks& paint_start); | 598 const base::TimeTicks& paint_start); |
| 597 | 599 |
| 598 // Give key press listeners a chance to handle this key press. This allow | 600 // Give key press listeners a chance to handle this key press. This allow |
| 599 // widgets that don't have focus to still handle key presses. | 601 // widgets that don't have focus to still handle key presses. |
| 600 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); | 602 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 825 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
| 824 | 826 |
| 825 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 827 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 826 | 828 |
| 827 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 828 }; | 830 }; |
| 829 | 831 |
| 830 } // namespace content | 832 } // namespace content |
| 831 | 833 |
| 832 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |