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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java

Issue 2201483002: Improve transition between opaque and translucent compositor views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replaced hide logic with one counter Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.chrome.browser; 5 package org.chromium.chrome.browser;
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.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 }; 321 };
322 manager.addTouchExplorationStateChangeListener(mTouchExplorationStat eChangeListener); 322 manager.addTouchExplorationStateChangeListener(mTouchExplorationStat eChangeListener);
323 } 323 }
324 324
325 // Make the activity listen to policy change events 325 // Make the activity listen to policy change events
326 CombinedPolicyProvider.get().addPolicyChangeListener(this); 326 CombinedPolicyProvider.get().addPolicyChangeListener(this);
327 327
328 // Set up the animation placeholder to be the SurfaceView. This disables the 328 // Set up the animation placeholder to be the SurfaceView. This disables the
329 // SurfaceView's 'hole' clipping during animations that are notified to the window. 329 // SurfaceView's 'hole' clipping during animations that are notified to the window.
330 mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getSurf aceView()); 330 mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getComp ositorView());
331 331
332 // Inform the WindowAndroid of the keyboard accessory view. 332 // Inform the WindowAndroid of the keyboard accessory view.
333 mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke yboard_accessory)); 333 mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke yboard_accessory));
334 initializeToolbar(); 334 initializeToolbar();
335 initializeTabModels(); 335 initializeTabModels();
336 if (!isFinishing() && getFullscreenManager() != null) { 336 if (!isFinishing() && getFullscreenManager() != null) {
337 getFullscreenManager().initialize( 337 getFullscreenManager().initialize(
338 (ControlContainer) findViewById(R.id.control_container), 338 (ControlContainer) findViewById(R.id.control_container),
339 getTabModelSelector(), 339 getTabModelSelector(),
340 getControlContainerHeightResource()); 340 getControlContainerHeightResource());
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 "Android.MultiWindowMode.IsTabletScreenWidthBelow600", 1959 "Android.MultiWindowMode.IsTabletScreenWidthBelow600",
1960 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP); 1960 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP);
1961 1961
1962 if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) { 1962 if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) {
1963 RecordHistogram.recordLinearCountHistogram( 1963 RecordHistogram.recordLinearCountHistogram(
1964 "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp, 1, 1964 "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp, 1,
1965 DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50); 1965 DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50);
1966 } 1966 }
1967 } 1967 }
1968 } 1968 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698