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

Unified Diff: remoting/host/single_window_input_injector_mac.cc

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should fix mac build Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/single_window_input_injector_mac.cc
diff --git a/remoting/host/single_window_input_injector_mac.cc b/remoting/host/single_window_input_injector_mac.cc
index 333f684058d130e041d4304a227006562c893b71..db84fa096d74952f1304d9ba745d79afd7a64438 100644
--- a/remoting/host/single_window_input_injector_mac.cc
+++ b/remoting/host/single_window_input_injector_mac.cc
@@ -34,6 +34,7 @@ class SingleWindowInputInjectorMac : public SingleWindowInputInjector {
void InjectMouseEvent(const MouseEvent& event) override;
void InjectTouchEvent(const TouchEvent& event) override;
void InjectClipboardEvent(const ClipboardEvent& event) override;
+ bool CanInjectTouch() override;
private:
CGRect FindCGRectOfWindow();
@@ -118,6 +119,10 @@ void SingleWindowInputInjectorMac::InjectClipboardEvent(
input_injector_->InjectClipboardEvent(event);
}
+bool SingleWindowInputInjectorMac::CanInjectTouch() {
+ return InputInjector::DefaultCanInjectTouch();
Wez 2015/04/09 22:58:59 This is wrong; InjectTouchEvent() above is NOTIMPL
Rintaro Kuroiwa 2015/04/20 18:20:03 Reverted.
+}
+
// This method finds the rectangle of the window we are streaming using
// |window_id_|. The InputInjector can then use this rectangle
// to translate the input event to coordinates of the window rather

Powered by Google App Engine
This is Rietveld 408576698