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

Side by Side Diff: content/browser/compositor/delegated_frame_host.h

Issue 1643063002: Revert of Handle pointer-events: none in browser process hittesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « cc/surfaces/surface_id.h ('k') | content/browser/compositor/delegated_frame_host.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const scoped_refptr<media::VideoFrame>& target, 152 const scoped_refptr<media::VideoFrame>& target,
153 const base::Callback<void(const gfx::Rect&, bool)>& callback); 153 const base::Callback<void(const gfx::Rect&, bool)>& callback);
154 bool CanCopyToVideoFrame() const; 154 bool CanCopyToVideoFrame() const;
155 void BeginFrameSubscription( 155 void BeginFrameSubscription(
156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
157 void EndFrameSubscription(); 157 void EndFrameSubscription();
158 bool HasFrameSubscriber() const { return !!frame_subscriber_; } 158 bool HasFrameSubscriber() const { return !!frame_subscriber_; }
159 uint32_t GetSurfaceIdNamespace(); 159 uint32_t GetSurfaceIdNamespace();
160 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created 160 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created
161 // a compositor Surface. 161 // a compositor Surface.
162 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, 162 cc::SurfaceId SurfaceIdAtPoint(const gfx::Point& point,
163 const gfx::Point& point,
164 gfx::Point* transformed_point); 163 gfx::Point* transformed_point);
165 164
166 // Given the SurfaceID of a Surface that is contained within this class' 165 // Given the SurfaceID of a Surface that is contained within this class'
167 // Surface, find the relative transform between the Surfaces and apply it 166 // Surface, find the relative transform between the Surfaces and apply it
168 // to a point. If a Surface has not yet been created this returns the 167 // to a point. If a Surface has not yet been created this returns the
169 // same point with no transform applied. 168 // same point with no transform applied.
170 void TransformPointToLocalCoordSpace(const gfx::Point& point, 169 void TransformPointToLocalCoordSpace(const gfx::Point& point,
171 cc::SurfaceId original_surface, 170 cc::SurfaceId original_surface,
172 gfx::Point* transformed_point); 171 gfx::Point* transformed_point);
173 172
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // YUV readback pipeline. 348 // YUV readback pipeline.
350 scoped_ptr<content::ReadbackYUVInterface> 349 scoped_ptr<content::ReadbackYUVInterface>
351 yuv_readback_pipeline_; 350 yuv_readback_pipeline_;
352 351
353 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 352 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
354 }; 353 };
355 354
356 } // namespace content 355 } // namespace content
357 356
358 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 357 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_id.h ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698