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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 void RejectMouseLockOrUnlockIfNecessary(); | 452 void RejectMouseLockOrUnlockIfNecessary(); |
453 | 453 |
454 #if defined(OS_WIN) | 454 #if defined(OS_WIN) |
455 gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 455 gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
456 #endif | 456 #endif |
457 | 457 |
458 void set_renderer_initialized(bool renderer_initialized) { | 458 void set_renderer_initialized(bool renderer_initialized) { |
459 renderer_initialized_ = renderer_initialized; | 459 renderer_initialized_ = renderer_initialized; |
460 } | 460 } |
461 | 461 |
462 bool is_in_gesture_scroll() { return is_in_gesture_scroll_; } | |
kenrb
2015/09/14 15:48:51
Is there a way to avoid exposing this and keeping
wjmaclean
2015/09/14 20:47:21
Yes, but it involves detecting |resendSource| (now
| |
463 | |
462 protected: | 464 protected: |
463 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; | 465 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; |
464 | 466 |
465 // Called when we receive a notification indicating that the renderer | 467 // Called when we receive a notification indicating that the renderer |
466 // process has gone. This will reset our state so that our state will be | 468 // process has gone. This will reset our state so that our state will be |
467 // consistent if a new renderer is created. | 469 // consistent if a new renderer is created. |
468 void RendererExited(base::TerminationStatus status, int exit_code); | 470 void RendererExited(base::TerminationStatus status, int exit_code); |
469 | 471 |
470 // Retrieves an id the renderer can use to refer to its view. | 472 // Retrieves an id the renderer can use to refer to its view. |
471 // This is used for various IPC messages, including plugins. | 473 // This is used for various IPC messages, including plugins. |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
774 bool suppress_next_char_events_; | 776 bool suppress_next_char_events_; |
775 | 777 |
776 bool pending_mouse_lock_request_; | 778 bool pending_mouse_lock_request_; |
777 bool allow_privileged_mouse_lock_; | 779 bool allow_privileged_mouse_lock_; |
778 | 780 |
779 // Keeps track of whether the webpage has any touch event handler. If it does, | 781 // Keeps track of whether the webpage has any touch event handler. If it does, |
780 // then touch events are sent to the renderer. Otherwise, the touch events are | 782 // then touch events are sent to the renderer. Otherwise, the touch events are |
781 // not sent to the renderer. | 783 // not sent to the renderer. |
782 bool has_touch_handler_; | 784 bool has_touch_handler_; |
783 | 785 |
786 bool is_in_gesture_scroll_; | |
787 | |
784 scoped_ptr<SyntheticGestureController> synthetic_gesture_controller_; | 788 scoped_ptr<SyntheticGestureController> synthetic_gesture_controller_; |
785 | 789 |
786 scoped_ptr<TouchEmulator> touch_emulator_; | 790 scoped_ptr<TouchEmulator> touch_emulator_; |
787 | 791 |
788 // Receives and handles all input events. | 792 // Receives and handles all input events. |
789 scoped_ptr<InputRouter> input_router_; | 793 scoped_ptr<InputRouter> input_router_; |
790 | 794 |
791 scoped_ptr<TimeoutMonitor> hang_monitor_timeout_; | 795 scoped_ptr<TimeoutMonitor> hang_monitor_timeout_; |
792 | 796 |
793 #if defined(OS_WIN) | 797 #if defined(OS_WIN) |
(...skipping 17 matching lines...) Expand all Loading... | |
811 bool is_focused_; | 815 bool is_focused_; |
812 | 816 |
813 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 817 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
814 | 818 |
815 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 819 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
816 }; | 820 }; |
817 | 821 |
818 } // namespace content | 822 } // namespace content |
819 | 823 |
820 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 824 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |