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

Unified Diff: remoting/host/me2me_desktop_environment.cc

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change setter to public and add license header Created 5 years, 6 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
« no previous file with comments | « remoting/host/me2me_desktop_environment.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/me2me_desktop_environment.cc
diff --git a/remoting/host/me2me_desktop_environment.cc b/remoting/host/me2me_desktop_environment.cc
index d61beb2bbe8555139f0c7c408938a5553dcf241b..be41bfb25f5d0bfeb435c58f0c3feef5dc302da2 100644
--- a/remoting/host/me2me_desktop_environment.cc
+++ b/remoting/host/me2me_desktop_environment.cc
@@ -17,6 +17,7 @@
#include "remoting/host/local_input_monitor.h"
#include "remoting/host/resizing_host_observer.h"
#include "remoting/host/screen_controls.h"
+#include "remoting/protocol/capability_names.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h"
#include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
@@ -25,8 +26,6 @@
#include <unistd.h>
#endif // defined(OS_POSIX)
-const char kRateLimitResizeRequests[] = "rateLimitResizeRequests";
-
namespace remoting {
Me2MeDesktopEnvironment::~Me2MeDesktopEnvironment() {
@@ -40,16 +39,23 @@ scoped_ptr<ScreenControls> Me2MeDesktopEnvironment::CreateScreenControls() {
}
std::string Me2MeDesktopEnvironment::GetCapabilities() const {
- return kRateLimitResizeRequests;
+ std::string capabilities = BasicDesktopEnvironment::GetCapabilities();
+ if (!capabilities.empty())
+ capabilities.append(" ");
+ capabilities.append(protocol::kRateLimitResizeRequests);
+
+ return capabilities;
}
Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ bool supports_touch_events)
: BasicDesktopEnvironment(caller_task_runner,
input_task_runner,
- ui_task_runner),
+ ui_task_runner,
+ supports_touch_events),
gnubby_auth_enabled_(false) {
DCHECK(caller_task_runner->BelongsToCurrentThread());
desktop_capture_options()->set_use_update_notifications(true);
@@ -143,7 +149,8 @@ scoped_ptr<DesktopEnvironment> Me2MeDesktopEnvironmentFactory::Create(
scoped_ptr<Me2MeDesktopEnvironment> desktop_environment(
new Me2MeDesktopEnvironment(caller_task_runner(),
input_task_runner(),
- ui_task_runner()));
+ ui_task_runner(),
+ supports_touch_events()));
if (!desktop_environment->InitializeSecurity(client_session_control,
curtain_enabled_)) {
return nullptr;
« no previous file with comments | « remoting/host/me2me_desktop_environment.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698