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

Side by Side Diff: content/renderer/mus/compositor_mus_connection.h

Issue 2270953002: Merge the mojo blink type converter into ui/events/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase apparently restored deleted files Created 4 years, 3 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/mus/BUILD.gn ('k') | content/renderer/mus/compositor_mus_connection.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_COMPOSITOR_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "services/ui/public/cpp/input_event_handler.h" 12 #include "services/ui/public/cpp/input_event_handler.h"
13 #include "services/ui/public/cpp/window.h" 13 #include "services/ui/public/cpp/window.h"
14 #include "services/ui/public/cpp/window_tree_client.h" 14 #include "services/ui/public/cpp/window_tree_client.h"
15 #include "services/ui/public/cpp/window_tree_client_delegate.h" 15 #include "services/ui/public/cpp/window_tree_client_delegate.h"
16 #include "third_party/WebKit/public/web/WebInputEvent.h" 16 #include "third_party/WebKit/public/web/WebInputEvent.h"
17 #include "ui/events/gestures/motion_event_aura.h"
17 18
18 namespace ui { 19 namespace ui {
19 struct DidOverscrollParams; 20 struct DidOverscrollParams;
20 } 21 }
21 22
22 namespace content { 23 namespace content {
23 24
24 class InputHandlerManager; 25 class InputHandlerManager;
25 26
26 // CompositorMusConnection manages the connection to the Mandoline UI Service 27 // CompositorMusConnection manages the connection to the Mandoline UI Service
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void OnConnectionLostOnMainThread(); 63 void OnConnectionLostOnMainThread();
63 64
64 void OnWindowInputEventOnMainThread( 65 void OnWindowInputEventOnMainThread(
65 std::unique_ptr<blink::WebInputEvent> web_event, 66 std::unique_ptr<blink::WebInputEvent> web_event,
66 const base::Callback<void(ui::mojom::EventResult)>& ack); 67 const base::Callback<void(ui::mojom::EventResult)>& ack);
67 68
68 void OnWindowInputEventAckOnMainThread( 69 void OnWindowInputEventAckOnMainThread(
69 const base::Callback<void(ui::mojom::EventResult)>& ack, 70 const base::Callback<void(ui::mojom::EventResult)>& ack,
70 ui::mojom::EventResult result); 71 ui::mojom::EventResult result);
71 72
73 std::unique_ptr<blink::WebInputEvent> Convert(const ui::Event& event);
74
72 // WindowTreeClientDelegate implementation: 75 // WindowTreeClientDelegate implementation:
73 void OnDidDestroyClient(ui::WindowTreeClient* client) override; 76 void OnDidDestroyClient(ui::WindowTreeClient* client) override;
74 void OnEmbed(ui::Window* root) override; 77 void OnEmbed(ui::Window* root) override;
75 void OnPointerEventObserved(const ui::PointerEvent& event, 78 void OnPointerEventObserved(const ui::PointerEvent& event,
76 ui::Window* target) override; 79 ui::Window* target) override;
77 80
78 // InputEventHandler implementation: 81 // InputEventHandler implementation:
79 void OnWindowInputEvent( 82 void OnWindowInputEvent(
80 ui::Window* window, 83 ui::Window* window,
81 const ui::Event& event, 84 const ui::Event& event,
82 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* 85 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>*
83 ack_callback) override; 86 ack_callback) override;
84 87
85 const int routing_id_; 88 const int routing_id_;
86 ui::Window* root_; 89 ui::Window* root_;
87 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 90 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
88 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 91 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
89 InputHandlerManager* const input_handler_manager_; 92 InputHandlerManager* const input_handler_manager_;
90 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_; 93 std::unique_ptr<ui::WindowSurfaceBinding> window_surface_binding_;
91 94
95 // Stores the current state of the active pointers targeting this object.
96 ui::MotionEventAura pointer_state_;
97
92 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection); 98 DISALLOW_COPY_AND_ASSIGN(CompositorMusConnection);
93 }; 99 };
94 100
95 } // namespace content 101 } // namespace content
96 102
97 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_ 103 #endif // CONTENT_RENDERER_MUS_COMPOSITOR_MUS_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/mus/BUILD.gn ('k') | content/renderer/mus/compositor_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698