OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "remoting/client/jni/chromoting_jni_instance.h" | 5 #include "remoting/client/jni/chromoting_jni_instance.h" |
6 | 6 |
7 #include <android/log.h> | 7 #include <android/log.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 } | 343 } |
344 | 344 |
345 void ChromotingJniInstance::DeliverHostMessage( | 345 void ChromotingJniInstance::DeliverHostMessage( |
346 const protocol::ExtensionMessage& message) { | 346 const protocol::ExtensionMessage& message) { |
347 jni_runtime_->ui_task_runner()->PostTask( | 347 jni_runtime_->ui_task_runner()->PostTask( |
348 FROM_HERE, base::Bind(&ChromotingJniRuntime::HandleExtensionMessage, | 348 FROM_HERE, base::Bind(&ChromotingJniRuntime::HandleExtensionMessage, |
349 base::Unretained(jni_runtime_), message.type(), | 349 base::Unretained(jni_runtime_), message.type(), |
350 message.data())); | 350 message.data())); |
351 } | 351 } |
352 | 352 |
| 353 void ChromotingJniInstance::SetDesktopSize(const webrtc::DesktopSize& size, |
| 354 const webrtc::DesktopVector& dpi) { |
| 355 // JniFrameConsumer get size from the frames and it doesn't use DPI, so this |
| 356 // call can be ignored. |
| 357 } |
| 358 |
353 protocol::ClipboardStub* ChromotingJniInstance::GetClipboardStub() { | 359 protocol::ClipboardStub* ChromotingJniInstance::GetClipboardStub() { |
354 return this; | 360 return this; |
355 } | 361 } |
356 | 362 |
357 protocol::CursorShapeStub* ChromotingJniInstance::GetCursorShapeStub() { | 363 protocol::CursorShapeStub* ChromotingJniInstance::GetCursorShapeStub() { |
358 return this; | 364 return this; |
359 } | 365 } |
360 | 366 |
361 void ChromotingJniInstance::InjectClipboardEvent( | 367 void ChromotingJniInstance::InjectClipboardEvent( |
362 const protocol::ClipboardEvent& event) { | 368 const protocol::ClipboardEvent& event) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 perf_tracker_->round_trip_ms().Max()); | 507 perf_tracker_->round_trip_ms().Max()); |
502 | 508 |
503 client_status_logger_->LogStatistics(perf_tracker_.get()); | 509 client_status_logger_->LogStatistics(perf_tracker_.get()); |
504 | 510 |
505 jni_runtime_->network_task_runner()->PostDelayedTask( | 511 jni_runtime_->network_task_runner()->PostDelayedTask( |
506 FROM_HERE, base::Bind(&ChromotingJniInstance::LogPerfStats, this), | 512 FROM_HERE, base::Bind(&ChromotingJniInstance::LogPerfStats, this), |
507 base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs)); | 513 base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs)); |
508 } | 514 } |
509 | 515 |
510 } // namespace remoting | 516 } // namespace remoting |
OLD | NEW |