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

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

Issue 2951053005: Add Mojo API for Blink hit testing (Closed)
Patch Set: Created 3 years, 5 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 (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
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 const blink::WebActiveWheelFlingParameters& params) {} 414 const blink::WebActiveWheelFlingParameters& params) {}
415 415
416 uint32_t GetContentSourceId(); 416 uint32_t GetContentSourceId();
417 void IncrementContentSourceId(); 417 void IncrementContentSourceId();
418 418
419 // MainThreadEventQueueClient overrides. 419 // MainThreadEventQueueClient overrides.
420 420
421 // Requests a BeginMainFrame callback from the compositor. 421 // Requests a BeginMainFrame callback from the compositor.
422 void SetNeedsMainFrame() override; 422 void SetNeedsMainFrame() override;
423 423
424 int HitTestFrameAt(const gfx::PointF& point);
425
424 void HandleInputEvent(const blink::WebCoalescedInputEvent& input_event, 426 void HandleInputEvent(const blink::WebCoalescedInputEvent& input_event,
425 const ui::LatencyInfo& latency_info, 427 const ui::LatencyInfo& latency_info,
426 HandledEventCallback callback) override; 428 HandledEventCallback callback) override;
427 429
428 scoped_refptr<MainThreadEventQueue> GetInputEventQueue(); 430 scoped_refptr<MainThreadEventQueue> GetInputEventQueue();
429 431
430 protected: 432 protected:
431 // Friend RefCounted so that the dtor can be non-public. Using this class 433 // Friend RefCounted so that the dtor can be non-public. Using this class
432 // without ref-counting is an error. 434 // without ref-counting is an error.
433 friend class base::RefCounted<RenderWidget>; 435 friend class base::RefCounted<RenderWidget>;
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 scoped_refptr<MainThreadEventQueue> input_event_queue_; 900 scoped_refptr<MainThreadEventQueue> input_event_queue_;
899 901
900 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 902 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
901 903
902 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 904 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
903 }; 905 };
904 906
905 } // namespace content 907 } // namespace content
906 908
907 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 909 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698