| 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.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.content.ComponentCallbacks2; | 10 import android.content.ComponentCallbacks2; |
| (...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3225 public void onWindowFocusChanged(boolean hasWindowFocus) { | 3225 public void onWindowFocusChanged(boolean hasWindowFocus) { |
| 3226 if (isDestroyedOrNoOperation(NO_WARN)) return; | 3226 if (isDestroyedOrNoOperation(NO_WARN)) return; |
| 3227 mWindowFocused = hasWindowFocus; | 3227 mWindowFocused = hasWindowFocus; |
| 3228 mContentViewCore.onWindowFocusChanged(hasWindowFocus); | 3228 mContentViewCore.onWindowFocusChanged(hasWindowFocus); |
| 3229 } | 3229 } |
| 3230 | 3230 |
| 3231 @Override | 3231 @Override |
| 3232 public void onFocusChanged(boolean focused, int direction, Rect previous
lyFocusedRect) { | 3232 public void onFocusChanged(boolean focused, int direction, Rect previous
lyFocusedRect) { |
| 3233 if (isDestroyedOrNoOperation(NO_WARN)) return; | 3233 if (isDestroyedOrNoOperation(NO_WARN)) return; |
| 3234 mContainerViewFocused = focused; | 3234 mContainerViewFocused = focused; |
| 3235 mContentViewCore.onFocusChanged(focused); | 3235 mContentViewCore.onFocusChanged(focused, false /* hideKeyboardOnBlur
*/); |
| 3236 } | 3236 } |
| 3237 | 3237 |
| 3238 @Override | 3238 @Override |
| 3239 public void onSizeChanged(int w, int h, int ow, int oh) { | 3239 public void onSizeChanged(int w, int h, int ow, int oh) { |
| 3240 if (isDestroyedOrNoOperation(NO_WARN)) return; | 3240 if (isDestroyedOrNoOperation(NO_WARN)) return; |
| 3241 mScrollOffsetManager.setContainerViewSize(w, h); | 3241 mScrollOffsetManager.setContainerViewSize(w, h); |
| 3242 // The AwLayoutSizer needs to go first so that if we're in | 3242 // The AwLayoutSizer needs to go first so that if we're in |
| 3243 // fixedLayoutSize mode the update | 3243 // fixedLayoutSize mode the update |
| 3244 // to enter fixedLayoutSize mode is sent before the first resize | 3244 // to enter fixedLayoutSize mode is sent before the first resize |
| 3245 // update. | 3245 // update. |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3420 | 3420 |
| 3421 private native void nativePreauthorizePermission(long nativeAwContents, Stri
ng origin, | 3421 private native void nativePreauthorizePermission(long nativeAwContents, Stri
ng origin, |
| 3422 long resources); | 3422 long resources); |
| 3423 | 3423 |
| 3424 private native void nativePostMessageToFrame(long nativeAwContents, String f
rameId, | 3424 private native void nativePostMessageToFrame(long nativeAwContents, String f
rameId, |
| 3425 String message, String targetOrigin, MessagePort[] ports); | 3425 String message, String targetOrigin, MessagePort[] ports); |
| 3426 | 3426 |
| 3427 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC
ontents); | 3427 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC
ontents); |
| 3428 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw
Contents); | 3428 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw
Contents); |
| 3429 } | 3429 } |
| OLD | NEW |