| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |