Chromium Code Reviews| 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.graphics.Point; | 7 import android.graphics.Point; |
| 8 import android.view.ViewGroup; | |
| 8 | 9 |
| 9 import org.chromium.chromoting.jni.Client; | 10 import org.chromium.chromoting.jni.Client; |
| 10 | 11 |
| 11 /** | 12 /** |
| 12 * Callback interface to allow the TouchInputHandler to request actions on the D esktopView. | 13 * Callback interface to allow the TouchInputHandler to request actions on the D esktopView. |
| 13 */ | 14 */ |
| 14 public interface DesktopViewInterface { | 15 public interface DesktopViewInterface { |
| 15 /** | 16 /** |
| 16 * Initializes the instance. Implementations can assume this function will b e called exactly | 17 * Initializes the instance. Implementations can assume this function will b e called exactly |
| 17 * once after constructor but before other functions. | 18 * once after constructor but before other functions. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 Event<PaintEventParameter> onPaint(); | 59 Event<PaintEventParameter> onPaint(); |
| 59 | 60 |
| 60 /** An {@link Event} which is triggered when the client size is changed. */ | 61 /** An {@link Event} which is triggered when the client size is changed. */ |
| 61 Event<SizeChangedEventParameter> onClientSizeChanged(); | 62 Event<SizeChangedEventParameter> onClientSizeChanged(); |
| 62 | 63 |
| 63 /** An {@link Event} which is triggered when the host size is changed. */ | 64 /** An {@link Event} which is triggered when the host size is changed. */ |
| 64 Event<SizeChangedEventParameter> onHostSizeChanged(); | 65 Event<SizeChangedEventParameter> onHostSizeChanged(); |
| 65 | 66 |
| 66 /** An {@link Event} which is triggered when user touchs the screen. */ | 67 /** An {@link Event} which is triggered when user touchs the screen. */ |
| 67 Event<TouchEventParameter> onTouch(); | 68 Event<TouchEventParameter> onTouch(); |
| 69 | |
| 70 // View functions. | |
| 71 void setLayoutParams(ViewGroup.LayoutParams params); | |
|
Lambros
2016/07/08 02:13:41
Please add JavaDoc for each interface method.
| |
| 72 void setFitsSystemWindows(boolean fitSystemWindows); | |
| 68 } | 73 } |
| OLD | NEW |