| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.content.res.Configuration; | 8 import android.content.res.Configuration; |
| 9 import android.graphics.Canvas; | 9 import android.graphics.Canvas; |
| 10 import android.graphics.Paint; | 10 import android.graphics.Paint; |
| 11 import android.graphics.Rect; | 11 import android.graphics.Rect; |
| 12 import android.view.KeyEvent; | 12 import android.view.KeyEvent; |
| 13 import android.view.MotionEvent; | 13 import android.view.MotionEvent; |
| 14 import android.view.View; | 14 import android.view.View; |
| 15 import android.view.inputmethod.EditorInfo; | 15 import android.view.inputmethod.EditorInfo; |
| 16 import android.view.inputmethod.InputConnection; | 16 import android.view.inputmethod.InputConnection; |
| 17 import android.widget.AbsoluteLayout; | 17 import android.widget.FrameLayout; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * A view that is used to render the web contents in fullscreen mode, ie. | 20 * A view that is used to render the web contents in fullscreen mode, ie. |
| 21 * html controls and subtitles, over the {@link ContentVideoView}. | 21 * html controls and subtitles, over the {@link ContentVideoView}. |
| 22 */ | 22 */ |
| 23 public class FullScreenView extends AbsoluteLayout { | 23 public class FullScreenView extends FrameLayout { |
| 24 | 24 |
| 25 private AwViewMethods mAwViewMethods; | 25 private AwViewMethods mAwViewMethods; |
| 26 private InternalAccessAdapter mInternalAccessAdapter; | 26 private InternalAccessAdapter mInternalAccessAdapter; |
| 27 | 27 |
| 28 public FullScreenView(Context context, AwViewMethods awViewMethods) { | 28 public FullScreenView(Context context, AwViewMethods awViewMethods) { |
| 29 super(context); | 29 super(context); |
| 30 setAwViewMethods(awViewMethods); | 30 setAwViewMethods(awViewMethods); |
| 31 mInternalAccessAdapter = new InternalAccessAdapter(); | 31 mInternalAccessAdapter = new InternalAccessAdapter(); |
| 32 } | 32 } |
| 33 | 33 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 public void super_scrollTo(int scrollX, int scrollY) { | 205 public void super_scrollTo(int scrollX, int scrollY) { |
| 206 // Intentional no-op. | 206 // Intentional no-op. |
| 207 } | 207 } |
| 208 | 208 |
| 209 @Override | 209 @Override |
| 210 public void setMeasuredDimension(int measuredWidth, int measuredHeight)
{ | 210 public void setMeasuredDimension(int measuredWidth, int measuredHeight)
{ |
| 211 FullScreenView.this.setMeasuredDimension(measuredWidth, measuredHeig
ht); | 211 FullScreenView.this.setMeasuredDimension(measuredWidth, measuredHeig
ht); |
| 212 } | 212 } |
| 213 } | 213 } |
| 214 } | 214 } |
| OLD | NEW |