| 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 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.res.Configuration; | 8 import android.content.res.Configuration; |
| 9 import android.os.Bundle; | 9 import android.os.Bundle; |
| 10 import android.util.Log; | |
| 11 import android.view.KeyEvent; | 10 import android.view.KeyEvent; |
| 12 import android.view.Menu; | 11 import android.view.Menu; |
| 13 import android.view.MenuItem; | 12 import android.view.MenuItem; |
| 14 import android.view.WindowManager; | |
| 15 import android.view.inputmethod.InputMethodManager; | 13 import android.view.inputmethod.InputMethodManager; |
| 16 | 14 |
| 17 import org.chromium.chromoting.jni.JniInterface; | 15 import org.chromium.chromoting.jni.JniInterface; |
| 18 | 16 |
| 19 /** | 17 /** |
| 20 * A simple screen that does nothing except display a DesktopView and notify it
of rotations. | 18 * A simple screen that does nothing except display a DesktopView and notify it
of rotations. |
| 21 */ | 19 */ |
| 22 public class Desktop extends Activity { | 20 public class Desktop extends Activity { |
| 23 /** The surface that displays the remote host's desktop feed. */ | 21 /** The surface that displays the remote host's desktop feed. */ |
| 24 private DesktopView remoteHostDesktop; | 22 private DesktopView remoteHostDesktop; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 JniInterface.keyboardAction(KeyEvent.KEYCODE_EQUALS, depressed); | 92 JniInterface.keyboardAction(KeyEvent.KEYCODE_EQUALS, depressed); |
| 95 break; | 93 break; |
| 96 default: | 94 default: |
| 97 // We try to send all other key codes to the host directly. | 95 // We try to send all other key codes to the host directly. |
| 98 JniInterface.keyboardAction(event.getKeyCode(), depressed); | 96 JniInterface.keyboardAction(event.getKeyCode(), depressed); |
| 99 } | 97 } |
| 100 | 98 |
| 101 return super.dispatchKeyEvent(event); | 99 return super.dispatchKeyEvent(event); |
| 102 } | 100 } |
| 103 } | 101 } |
| OLD | NEW |