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

Side by Side Diff: content/renderer/render_widget.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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/render_widget.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 (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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 const blink::WebActiveWheelFlingParameters& params) {} 422 const blink::WebActiveWheelFlingParameters& params) {}
423 423
424 uint32_t GetContentSourceId(); 424 uint32_t GetContentSourceId();
425 void IncrementContentSourceId(); 425 void IncrementContentSourceId();
426 426
427 // MainThreadEventQueueClient overrides. 427 // MainThreadEventQueueClient overrides.
428 428
429 // Requests a BeginMainFrame callback from the compositor. 429 // Requests a BeginMainFrame callback from the compositor.
430 void SetNeedsMainFrame() override; 430 void SetNeedsMainFrame() override;
431 431
432 int HitTestFrameAt(const gfx::Point& point);
433
432 void HandleInputEvent(const blink::WebCoalescedInputEvent& input_event, 434 void HandleInputEvent(const blink::WebCoalescedInputEvent& input_event,
433 const ui::LatencyInfo& latency_info, 435 const ui::LatencyInfo& latency_info,
434 HandledEventCallback callback) override; 436 HandledEventCallback callback) override;
435 437
436 scoped_refptr<MainThreadEventQueue> GetInputEventQueue(); 438 scoped_refptr<MainThreadEventQueue> GetInputEventQueue();
437 439
438 virtual void OnSetFocus(bool enable); 440 virtual void OnSetFocus(bool enable);
439 void OnMouseCaptureLost(); 441 void OnMouseCaptureLost();
440 void OnCursorVisibilityChange(bool is_visible); 442 void OnCursorVisibilityChange(bool is_visible);
441 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); 443 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 mojo::Binding<mojom::Widget> widget_binding_; 912 mojo::Binding<mojom::Widget> widget_binding_;
911 913
912 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 914 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
913 915
914 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 916 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
915 }; 917 };
916 918
917 } // namespace content 919 } // namespace content
918 920
919 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 921 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698