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

Side by Side Diff: content/browser/renderer_host/frame_sink_provider_impl.h

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Address Rob's comments Created 3 years, 4 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_ 5 #ifndef CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
6 #define CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_ 6 #define CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
7 7
8 #include "content/common/frame_sink_provider.mojom.h" 8 #include "content/common/frame_sink_provider.mojom.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // This class lives in the browser and provides CompositorFrameSink for the 13 // This class lives in the browser and provides CompositorFrameSink for the
14 // renderer. 14 // renderer.
15 class FrameSinkProviderImpl : public mojom::FrameSinkProvider { 15 class FrameSinkProviderImpl : public mojom::FrameSinkProvider {
16 public: 16 public:
17 explicit FrameSinkProviderImpl(int32_t process_id); 17 explicit FrameSinkProviderImpl(int32_t process_id);
18 ~FrameSinkProviderImpl() override; 18 ~FrameSinkProviderImpl() override;
19 19
20 void Bind(mojom::FrameSinkProviderRequest request); 20 void Bind(mojom::FrameSinkProviderRequest request);
21 void Unbind(); 21 void Unbind();
22 22
23 // mojom::FrameSinkProvider implementation. 23 // mojom::FrameSinkProvider implementation.
24 void CreateForWidget( 24 void CreateForWidget(
25 int32_t widget_id, 25 int32_t widget_id,
26 viz::mojom::CompositorFrameSinkRequest request, 26 viz::mojom::CompositorFrameSinkRequest request,
27 viz::mojom::CompositorFrameSinkClientPtr client) override; 27 viz::mojom::CompositorFrameSinkClientPtr client,
28 viz::mojom::TargetFrameForInputDelegatePtr input_delegate) override;
28 29
29 private: 30 private:
30 const int32_t process_id_; 31 const int32_t process_id_;
31 mojo::Binding<mojom::FrameSinkProvider> binding_; 32 mojo::Binding<mojom::FrameSinkProvider> binding_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(FrameSinkProviderImpl); 34 DISALLOW_COPY_AND_ASSIGN(FrameSinkProviderImpl);
34 }; 35 };
35 36
36 } // namespace content 37 } // namespace content
37 38
38 #endif // CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_ 39 #endif // CONTENT_BROWSER_RENDER_WIDGET_COMPOSITOR_FRAME_SINK_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | content/browser/renderer_host/frame_sink_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698