Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2709633002: Make chrome hide keyboard when opening a new window (Closed)
Patch Set: Change the papameter name Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
boliu 2017/02/22 02:45:50 document parameter name
yabinh 2017/02/22 03:40:05 Done.
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698