Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: content/renderer/render_widget.h

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: add cstdlib Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <queue> 14 #include <queue>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/callback.h" 18 #include "base/callback.h"
19 #include "base/compiler_specific.h" 19 #include "base/compiler_specific.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/ref_counted.h" 21 #include "base/memory/ref_counted.h"
22 #include "base/memory/weak_ptr.h" 22 #include "base/memory/weak_ptr.h"
23 #include "base/observer_list.h" 23 #include "base/observer_list.h"
24 #include "base/time/time.h" 24 #include "base/time/time.h"
25 #include "build/build_config.h" 25 #include "build/build_config.h"
26 #include "cc/input/touch_action.h"
26 #include "cc/surfaces/local_surface_id.h" 27 #include "cc/surfaces/local_surface_id.h"
27 #include "content/common/content_export.h" 28 #include "content/common/content_export.h"
28 #include "content/common/cursors/webcursor.h" 29 #include "content/common/cursors/webcursor.h"
29 #include "content/common/drag_event_source_info.h" 30 #include "content/common/drag_event_source_info.h"
30 #include "content/common/edit_command.h" 31 #include "content/common/edit_command.h"
31 #include "content/common/features.h" 32 #include "content/common/features.h"
32 #include "content/common/input/synthetic_gesture_params.h" 33 #include "content/common/input/synthetic_gesture_params.h"
33 #include "content/public/common/drop_data.h" 34 #include "content/public/common/drop_data.h"
34 #include "content/public/common/screen_info.h" 35 #include "content/public/common/screen_info.h"
35 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega te.h" 36 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega te.h"
36 #include "content/renderer/gpu/render_widget_compositor_delegate.h" 37 #include "content/renderer/gpu/render_widget_compositor_delegate.h"
37 #include "content/renderer/input/main_thread_event_queue.h" 38 #include "content/renderer/input/main_thread_event_queue.h"
38 #include "content/renderer/input/render_widget_input_handler.h" 39 #include "content/renderer/input/render_widget_input_handler.h"
39 #include "content/renderer/input/render_widget_input_handler_delegate.h" 40 #include "content/renderer/input/render_widget_input_handler_delegate.h"
40 #include "content/renderer/message_delivery_policy.h" 41 #include "content/renderer/message_delivery_policy.h"
41 #include "content/renderer/mouse_lock_dispatcher.h" 42 #include "content/renderer/mouse_lock_dispatcher.h"
42 #include "content/renderer/render_widget_mouse_lock_dispatcher.h" 43 #include "content/renderer/render_widget_mouse_lock_dispatcher.h"
43 #include "ipc/ipc_listener.h" 44 #include "ipc/ipc_listener.h"
44 #include "ipc/ipc_message.h" 45 #include "ipc/ipc_message.h"
45 #include "ipc/ipc_sender.h" 46 #include "ipc/ipc_sender.h"
46 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 47 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
47 #include "third_party/WebKit/public/platform/WebInputEvent.h" 48 #include "third_party/WebKit/public/platform/WebInputEvent.h"
48 #include "third_party/WebKit/public/platform/WebRect.h" 49 #include "third_party/WebKit/public/platform/WebRect.h"
49 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 50 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
50 #include "third_party/WebKit/public/platform/WebTextInputInfo.h" 51 #include "third_party/WebKit/public/platform/WebTextInputInfo.h"
51 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 52 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
52 #include "third_party/WebKit/public/web/WebPopupType.h" 53 #include "third_party/WebKit/public/web/WebPopupType.h"
53 #include "third_party/WebKit/public/web/WebTextDirection.h" 54 #include "third_party/WebKit/public/web/WebTextDirection.h"
54 #include "third_party/WebKit/public/web/WebTouchAction.h"
55 #include "third_party/WebKit/public/web/WebWidget.h" 55 #include "third_party/WebKit/public/web/WebWidget.h"
56 #include "third_party/WebKit/public/web/WebWidgetClient.h" 56 #include "third_party/WebKit/public/web/WebWidgetClient.h"
57 #include "ui/base/ime/text_input_mode.h" 57 #include "ui/base/ime/text_input_mode.h"
58 #include "ui/base/ime/text_input_type.h" 58 #include "ui/base/ime/text_input_type.h"
59 #include "ui/base/ui_base_types.h" 59 #include "ui/base/ui_base_types.h"
60 #include "ui/gfx/geometry/rect.h" 60 #include "ui/gfx/geometry/rect.h"
61 #include "ui/gfx/geometry/vector2d_f.h" 61 #include "ui/gfx/geometry/vector2d_f.h"
62 #include "ui/gfx/native_widget_types.h" 62 #include "ui/gfx/native_widget_types.h"
63 #include "ui/gfx/range/range.h" 63 #include "ui/gfx/range/range.h"
64 #include "ui/surface/transport_dib.h" 64 #include "ui/surface/transport_dib.h"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // a time period where we may have set a new window rect which has not yet 629 // a time period where we may have set a new window rect which has not yet
630 // been processed by the browser. So we maintain a pending window rect 630 // been processed by the browser. So we maintain a pending window rect
631 // size. If JS code sets the WindowRect, and then immediately calls 631 // size. If JS code sets the WindowRect, and then immediately calls
632 // GetWindowRect() we'll use this pending window rect as the size. 632 // GetWindowRect() we'll use this pending window rect as the size.
633 void SetPendingWindowRect(const blink::WebRect& r); 633 void SetPendingWindowRect(const blink::WebRect& r);
634 634
635 // Check whether the WebWidget has any touch event handlers registered. 635 // Check whether the WebWidget has any touch event handlers registered.
636 void HasTouchEventHandlers(bool has_handlers) override; 636 void HasTouchEventHandlers(bool has_handlers) override;
637 637
638 // Tell the browser about the actions permitted for a new touch point. 638 // Tell the browser about the actions permitted for a new touch point.
639 void SetTouchAction(blink::WebTouchAction touch_action) override; 639 void SetTouchAction(cc::TouchAction touch_action) override;
640 640
641 // Sends an ACK to the browser process during the next compositor frame. 641 // Sends an ACK to the browser process during the next compositor frame.
642 void OnWaitNextFrameForTests(int routing_id); 642 void OnWaitNextFrameForTests(int routing_id);
643 643
644 // Routing ID that allows us to communicate to the parent browser process 644 // Routing ID that allows us to communicate to the parent browser process
645 // RenderWidgetHost. 645 // RenderWidgetHost.
646 const int32_t routing_id_; 646 const int32_t routing_id_;
647 647
648 // Dependencies for initializing a compositor, including flags for optional 648 // Dependencies for initializing a compositor, including flags for optional
649 // features. 649 // features.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 scoped_refptr<MainThreadEventQueue> input_event_queue_; 885 scoped_refptr<MainThreadEventQueue> input_event_queue_;
886 886
887 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 887 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
888 888
889 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 889 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
890 }; 890 };
891 891
892 } // namespace content 892 } // namespace content
893 893
894 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 894 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698