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

Side by Side Diff: ui/android/delegated_frame_host_android.h

Issue 2509103002: Enable browser process hit testing on Android (Closed)
Patch Set: Cleanup Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 5 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const gfx::Rect& src_subrect_in_pixel, 59 const gfx::Rect& src_subrect_in_pixel,
60 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback); 60 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback);
61 61
62 void CompositorFrameSinkChanged(); 62 void CompositorFrameSinkChanged();
63 63
64 // Called when this DFH is attached/detached from a parent browser compositor 64 // Called when this DFH is attached/detached from a parent browser compositor
65 // and needs to be attached to the surface hierarchy. 65 // and needs to be attached to the surface hierarchy.
66 void AttachToCompositor(WindowAndroidCompositor* compositor); 66 void AttachToCompositor(WindowAndroidCompositor* compositor);
67 void DetachFromCompositor(); 67 void DetachFromCompositor();
68 68
69 // Returns the ID for the current Surface.
70 cc::SurfaceId SurfaceId() const;
71
69 private: 72 private:
70 // cc::SurfaceFactoryClient implementation. 73 // cc::SurfaceFactoryClient implementation.
71 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 74 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
72 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 75 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
73 76
74 const cc::FrameSinkId frame_sink_id_; 77 const cc::FrameSinkId frame_sink_id_;
75 78
76 ViewAndroid* view_; 79 ViewAndroid* view_;
77 80
78 cc::SurfaceManager* surface_manager_; 81 cc::SurfaceManager* surface_manager_;
(...skipping 19 matching lines...) Expand all
98 std::unique_ptr<FrameData> current_frame_; 101 std::unique_ptr<FrameData> current_frame_;
99 102
100 scoped_refptr<cc::SurfaceLayer> content_layer_; 103 scoped_refptr<cc::SurfaceLayer> content_layer_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 105 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
103 }; 106 };
104 107
105 } // namespace ui 108 } // namespace ui
106 109
107 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 110 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698