| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 316 } |
| 317 }; | 317 }; |
| 318 manager.addTouchExplorationStateChangeListener(mTouchExplorationStat
eChangeListener); | 318 manager.addTouchExplorationStateChangeListener(mTouchExplorationStat
eChangeListener); |
| 319 } | 319 } |
| 320 | 320 |
| 321 // Make the activity listen to policy change events | 321 // Make the activity listen to policy change events |
| 322 CombinedPolicyProvider.get().addPolicyChangeListener(this); | 322 CombinedPolicyProvider.get().addPolicyChangeListener(this); |
| 323 | 323 |
| 324 // Set up the animation placeholder to be the SurfaceView. This disables
the | 324 // Set up the animation placeholder to be the SurfaceView. This disables
the |
| 325 // SurfaceView's 'hole' clipping during animations that are notified to
the window. | 325 // SurfaceView's 'hole' clipping during animations that are notified to
the window. |
| 326 mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getSurf
aceView()); | 326 mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getComp
ositorView()); |
| 327 | 327 |
| 328 // Inform the WindowAndroid of the keyboard accessory view. | 328 // Inform the WindowAndroid of the keyboard accessory view. |
| 329 mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke
yboard_accessory)); | 329 mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke
yboard_accessory)); |
| 330 initializeToolbar(); | 330 initializeToolbar(); |
| 331 initializeTabModels(); | 331 initializeTabModels(); |
| 332 if (!isFinishing() && getFullscreenManager() != null) { | 332 if (!isFinishing() && getFullscreenManager() != null) { |
| 333 getFullscreenManager().initialize( | 333 getFullscreenManager().initialize( |
| 334 (ControlContainer) findViewById(R.id.control_container), | 334 (ControlContainer) findViewById(R.id.control_container), |
| 335 getTabModelSelector(), | 335 getTabModelSelector(), |
| 336 getControlContainerHeightResource()); | 336 getControlContainerHeightResource()); |
| (...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1955 "Android.MultiWindowMode.IsTabletScreenWidthBelow600", | 1955 "Android.MultiWindowMode.IsTabletScreenWidthBelow600", |
| 1956 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP); | 1956 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP); |
| 1957 | 1957 |
| 1958 if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) { | 1958 if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) { |
| 1959 RecordHistogram.recordLinearCountHistogram( | 1959 RecordHistogram.recordLinearCountHistogram( |
| 1960 "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp,
1, | 1960 "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp,
1, |
| 1961 DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50); | 1961 DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50); |
| 1962 } | 1962 } |
| 1963 } | 1963 } |
| 1964 } | 1964 } |
| OLD | NEW |