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

Side by Side Diff: content/renderer/input/frame_input_handler_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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/input/frame_input_handler_impl.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 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_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_
6 #define CONTENT_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_ 6 #define CONTENT_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/common/input/input_handler.mojom.h" 9 #include "content/common/input/input_handler.mojom.h"
10 #include "content/renderer/render_frame_impl.h" 10 #include "content/renderer/render_frame_impl.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 private: 82 private:
83 RenderFrameImpl* render_frame_; 83 RenderFrameImpl* render_frame_;
84 bool original_select_range_value_; 84 bool original_select_range_value_;
85 bool original_pasting_value_; 85 bool original_pasting_value_;
86 }; 86 };
87 87
88 FrameInputHandlerImpl(base::WeakPtr<RenderFrameImpl> render_frame, 88 FrameInputHandlerImpl(base::WeakPtr<RenderFrameImpl> render_frame,
89 mojom::FrameInputHandlerRequest request); 89 mojom::FrameInputHandlerRequest request);
90 90
91 void RunOnMainThread(const base::Closure& closure); 91 void RunOnMainThread(base::OnceClosure closure);
92 void BindNow(mojom::FrameInputHandlerRequest request); 92 void BindNow(mojom::FrameInputHandlerRequest request);
93 void ExecuteCommandOnMainThread(const std::string& command, 93 void ExecuteCommandOnMainThread(const std::string& command,
94 UpdateState state); 94 UpdateState state);
95
95 void Release(); 96 void Release();
96 97
97 mojo::Binding<mojom::FrameInputHandler> binding_; 98 mojo::Binding<mojom::FrameInputHandler> binding_;
98 99
99 // |render_frame_| should only be accessed on the main thread. Use 100 // |render_frame_| should only be accessed on the main thread. Use
100 // GetRenderFrame so that it will DCHECK this for you. 101 // GetRenderFrame so that it will DCHECK this for you.
101 base::WeakPtr<RenderFrameImpl> render_frame_; 102 base::WeakPtr<RenderFrameImpl> render_frame_;
102 103
103 scoped_refptr<MainThreadEventQueue> input_event_queue_; 104 scoped_refptr<MainThreadEventQueue> input_event_queue_;
104 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 105 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
105 106
106 base::WeakPtr<FrameInputHandlerImpl> weak_this_; 107 base::WeakPtr<FrameInputHandlerImpl> weak_this_;
107 base::WeakPtrFactory<FrameInputHandlerImpl> weak_ptr_factory_; 108 base::WeakPtrFactory<FrameInputHandlerImpl> weak_ptr_factory_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(FrameInputHandlerImpl); 110 DISALLOW_COPY_AND_ASSIGN(FrameInputHandlerImpl);
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_ 115 #endif // CONTENT_RENDERER_INPUT_FRAME_INPUT_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/input/frame_input_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698