| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.content.browser; | 5 package org.chromium.content.browser; |
| 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.Rect; | 10 import android.graphics.Rect; |
| 11 import android.os.Build; | 11 import android.os.Build; |
| 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.accessibility.AccessibilityEvent; | 15 import android.view.accessibility.AccessibilityEvent; |
| 16 import android.view.accessibility.AccessibilityNodeInfo; | 16 import android.view.accessibility.AccessibilityNodeInfo; |
| 17 import android.view.inputmethod.EditorInfo; | 17 import android.view.inputmethod.EditorInfo; |
| 18 import android.view.inputmethod.InputConnection; | 18 import android.view.inputmethod.InputConnection; |
| 19 import android.widget.FrameLayout; | 19 import android.widget.FrameLayout; |
| 20 | 20 |
| 21 import org.chromium.base.TraceEvent; | 21 import org.chromium.base.TraceEvent; |
| 22 | 22 |
| 23 import org.chromium.content.browser.input.InsertionHandleController; |
| 24 |
| 23 /** | 25 /** |
| 24 * The containing view for {@link ContentViewCore} that exists in the Android UI
hierarchy and | 26 * The containing view for {@link ContentViewCore} that exists in the Android UI
hierarchy and |
| 25 * exposes the various {@link View} functionality to it. | 27 * exposes the various {@link View} functionality to it. |
| 26 */ | 28 */ |
| 27 public class ContentView extends FrameLayout | 29 public class ContentView extends FrameLayout |
| 28 implements ContentViewCore.InternalAccessDelegate { | 30 implements ContentViewCore.InternalAccessDelegate { |
| 29 | 31 |
| 30 protected final ContentViewCore mContentViewCore; | 32 protected final ContentViewCore mContentViewCore; |
| 31 | 33 |
| 32 /** | 34 /** |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 super.onDetachedFromWindow(); | 242 super.onDetachedFromWindow(); |
| 241 mContentViewCore.onDetachedFromWindow(); | 243 mContentViewCore.onDetachedFromWindow(); |
| 242 } | 244 } |
| 243 | 245 |
| 244 @Override | 246 @Override |
| 245 protected void onVisibilityChanged(View changedView, int visibility) { | 247 protected void onVisibilityChanged(View changedView, int visibility) { |
| 246 super.onVisibilityChanged(changedView, visibility); | 248 super.onVisibilityChanged(changedView, visibility); |
| 247 mContentViewCore.onVisibilityChanged(changedView, visibility); | 249 mContentViewCore.onVisibilityChanged(changedView, visibility); |
| 248 } | 250 } |
| 249 | 251 |
| 252 public InsertionHandleController getInsertionHandleController() { |
| 253 return mContentViewCore.getInsertionHandleController(); |
| 254 } |
| 255 |
| 250 ////////////////////////////////////////////////////////////////////////////
/////////////////// | 256 ////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 251 // Start Implementation of ContentViewCore.InternalAccessDelega
te // | 257 // Start Implementation of ContentViewCore.InternalAccessDelega
te // |
| 252 ////////////////////////////////////////////////////////////////////////////
/////////////////// | 258 ////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 253 | 259 |
| 254 @Override | 260 @Override |
| 255 public boolean super_onKeyUp(int keyCode, KeyEvent event) { | 261 public boolean super_onKeyUp(int keyCode, KeyEvent event) { |
| 256 return super.onKeyUp(keyCode, event); | 262 return super.onKeyUp(keyCode, event); |
| 257 } | 263 } |
| 258 | 264 |
| 259 @Override | 265 @Override |
| (...skipping 18 matching lines...) Expand all Loading... |
| 278 | 284 |
| 279 @Override | 285 @Override |
| 280 public boolean super_awakenScrollBars(int startDelay, boolean invalidate) { | 286 public boolean super_awakenScrollBars(int startDelay, boolean invalidate) { |
| 281 return super.awakenScrollBars(startDelay, invalidate); | 287 return super.awakenScrollBars(startDelay, invalidate); |
| 282 } | 288 } |
| 283 | 289 |
| 284 ////////////////////////////////////////////////////////////////////////////
/////////////////// | 290 ////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 285 // End Implementation of ContentViewCore.InternalAccessDelega
te // | 291 // End Implementation of ContentViewCore.InternalAccessDelega
te // |
| 286 ////////////////////////////////////////////////////////////////////////////
/////////////////// | 292 ////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 287 } | 293 } |
| OLD | NEW |