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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 void SetInitialRenderSizeParams(const ResizeParams& resize_params); | 539 void SetInitialRenderSizeParams(const ResizeParams& resize_params); |
540 | 540 |
541 // Called when we receive a notification indicating that the renderer process | 541 // Called when we receive a notification indicating that the renderer process |
542 // is gone. This will reset our state so that our state will be consistent if | 542 // is gone. This will reset our state so that our state will be consistent if |
543 // a new renderer is created. | 543 // a new renderer is created. |
544 void RendererExited(base::TerminationStatus status, int exit_code); | 544 void RendererExited(base::TerminationStatus status, int exit_code); |
545 | 545 |
546 // Called from a RenderFrameHost when the text selection has changed. | 546 // Called from a RenderFrameHost when the text selection has changed. |
547 void SelectionChanged(const base::string16& text, | 547 void SelectionChanged(const base::string16& text, |
548 uint32_t offset, | 548 uint32_t offset, |
549 const gfx::Range& range); | 549 const gfx::Range& range, |
| 550 bool user_initiated); |
550 | 551 |
551 size_t in_flight_event_count() const { return in_flight_event_count_; } | 552 size_t in_flight_event_count() const { return in_flight_event_count_; } |
552 blink::WebInputEvent::Type hang_monitor_event_type() const { | 553 blink::WebInputEvent::Type hang_monitor_event_type() const { |
553 return hang_monitor_event_type_; | 554 return hang_monitor_event_type_; |
554 } | 555 } |
555 blink::WebInputEvent::Type last_event_type() const { | 556 blink::WebInputEvent::Type last_event_type() const { |
556 return last_event_type_; | 557 return last_event_type_; |
557 } | 558 } |
558 | 559 |
559 bool renderer_initialized() const { return renderer_initialized_; } | 560 bool renderer_initialized() const { return renderer_initialized_; } |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; | 985 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; |
985 | 986 |
986 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 987 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
987 | 988 |
988 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 989 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
989 }; | 990 }; |
990 | 991 |
991 } // namespace content | 992 } // namespace content |
992 | 993 |
993 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 994 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |