OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 private TextView captureFormatText; | 35 private TextView captureFormatText; |
36 private SeekBar captureFormatSlider; | 36 private SeekBar captureFormatSlider; |
37 private OnCallEvents callEvents; | 37 private OnCallEvents callEvents; |
38 private ScalingType scalingType; | 38 private ScalingType scalingType; |
39 private boolean videoCallEnabled = true; | 39 private boolean videoCallEnabled = true; |
40 | 40 |
41 /** | 41 /** |
42 * Call control interface for container activity. | 42 * Call control interface for container activity. |
43 */ | 43 */ |
44 public interface OnCallEvents { | 44 public interface OnCallEvents { |
45 public void onCallHangUp(); | 45 void onCallHangUp(); |
46 public void onCameraSwitch(); | 46 void onCameraSwitch(); |
47 public void onVideoScalingSwitch(ScalingType scalingType); | 47 void onVideoScalingSwitch(ScalingType scalingType); |
48 public void onCaptureFormatChange(int width, int height, int framerate); | 48 void onCaptureFormatChange(int width, int height, int framerate); |
49 public boolean onToggleMic(); | 49 boolean onToggleMic(); |
50 } | 50 } |
51 | 51 |
52 @Override | 52 @Override |
53 public View onCreateView(LayoutInflater inflater, ViewGroup container, | 53 public View onCreateView(LayoutInflater inflater, ViewGroup container, |
54 Bundle savedInstanceState) { | 54 Bundle savedInstanceState) { |
55 controlView = | 55 controlView = |
56 inflater.inflate(R.layout.fragment_call, container, false); | 56 inflater.inflate(R.layout.fragment_call, container, false); |
57 | 57 |
58 // Create UI controls. | 58 // Create UI controls. |
59 contactView = | 59 contactView = |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } | 139 } |
140 } | 140 } |
141 | 141 |
142 @Override | 142 @Override |
143 public void onAttach(Activity activity) { | 143 public void onAttach(Activity activity) { |
144 super.onAttach(activity); | 144 super.onAttach(activity); |
145 callEvents = (OnCallEvents) activity; | 145 callEvents = (OnCallEvents) activity; |
146 } | 146 } |
147 | 147 |
148 } | 148 } |
OLD | NEW |