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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentView.java

Issue 2709633002: Make chrome hide keyboard when opening a new window (Closed)
Patch Set: 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
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.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.Rect; 9 import android.graphics.Rect;
10 import android.os.Build; 10 import android.os.Build;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 @Override 144 @Override
145 public boolean onCheckIsTextEditor() { 145 public boolean onCheckIsTextEditor() {
146 return mContentViewCore.onCheckIsTextEditor(); 146 return mContentViewCore.onCheckIsTextEditor();
147 } 147 }
148 148
149 @Override 149 @Override
150 protected void onFocusChanged(boolean gainFocus, int direction, Rect previou slyFocusedRect) { 150 protected void onFocusChanged(boolean gainFocus, int direction, Rect previou slyFocusedRect) {
151 try { 151 try {
152 TraceEvent.begin("ContentView.onFocusChanged"); 152 TraceEvent.begin("ContentView.onFocusChanged");
153 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); 153 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
154 mContentViewCore.onFocusChanged(gainFocus); 154 mContentViewCore.onFocusChanged(gainFocus, true);
Changwan Ryu 2017/02/21 05:16:39 true /* hideKeyboardOnBlur */
yabinh 2017/02/21 06:18:31 Done.
155 } finally { 155 } finally {
156 TraceEvent.end("ContentView.onFocusChanged"); 156 TraceEvent.end("ContentView.onFocusChanged");
157 } 157 }
158 } 158 }
159 159
160 @Override 160 @Override
161 public void onWindowFocusChanged(boolean hasWindowFocus) { 161 public void onWindowFocusChanged(boolean hasWindowFocus) {
162 super.onWindowFocusChanged(hasWindowFocus); 162 super.onWindowFocusChanged(hasWindowFocus);
163 mContentViewCore.onWindowFocusChanged(hasWindowFocus); 163 mContentViewCore.onWindowFocusChanged(hasWindowFocus);
164 } 164 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 public ContentViewApi23(Context context, ContentViewCore cvc) { 338 public ContentViewApi23(Context context, ContentViewCore cvc) {
339 super(context, cvc); 339 super(context, cvc);
340 } 340 }
341 341
342 @Override 342 @Override
343 public void onProvideVirtualStructure(final ViewStructure structure) { 343 public void onProvideVirtualStructure(final ViewStructure structure) {
344 mContentViewCore.onProvideVirtualStructure(structure, false); 344 mContentViewCore.onProvideVirtualStructure(structure, false);
345 } 345 }
346 } 346 }
347 } 347 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698