| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 302                 } | 302                 } | 
| 303             }; | 303             }; | 
| 304             manager.addTouchExplorationStateChangeListener(mTouchExplorationStat
      eChangeListener); | 304             manager.addTouchExplorationStateChangeListener(mTouchExplorationStat
      eChangeListener); | 
| 305         } | 305         } | 
| 306 | 306 | 
| 307         // Make the activity listen to policy change events | 307         // Make the activity listen to policy change events | 
| 308         CombinedPolicyProvider.get().addPolicyChangeListener(this); | 308         CombinedPolicyProvider.get().addPolicyChangeListener(this); | 
| 309 | 309 | 
| 310         // Set up the animation placeholder to be the SurfaceView. This disables
       the | 310         // Set up the animation placeholder to be the SurfaceView. This disables
       the | 
| 311         // SurfaceView's 'hole' clipping during animations that are notified to 
      the window. | 311         // SurfaceView's 'hole' clipping during animations that are notified to 
      the window. | 
| 312         mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getSurf
      aceView()); | 312         mWindowAndroid.setAnimationPlaceholderView(mCompositorViewHolder.getComp
      ositorView()); | 
| 313 | 313 | 
| 314         // Inform the WindowAndroid of the keyboard accessory view. | 314         // Inform the WindowAndroid of the keyboard accessory view. | 
| 315         mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke
      yboard_accessory)); | 315         mWindowAndroid.setKeyboardAccessoryView((ViewGroup) findViewById(R.id.ke
      yboard_accessory)); | 
| 316         initializeToolbar(); | 316         initializeToolbar(); | 
| 317     } | 317     } | 
| 318 | 318 | 
| 319     @Override | 319     @Override | 
| 320     protected View getViewToBeDrawnBeforeInitializingNative() { | 320     protected View getViewToBeDrawnBeforeInitializingNative() { | 
| 321         View controlContainer = findViewById(R.id.control_container); | 321         View controlContainer = findViewById(R.id.control_container); | 
| 322         return controlContainer != null ? controlContainer | 322         return controlContainer != null ? controlContainer | 
| (...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1848                 "Android.MultiWindowMode.IsTabletScreenWidthBelow600", | 1848                 "Android.MultiWindowMode.IsTabletScreenWidthBelow600", | 
| 1849                 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP); | 1849                 mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP); | 
| 1850 | 1850 | 
| 1851         if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) { | 1851         if (mScreenWidthDp < DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP) { | 
| 1852             RecordHistogram.recordLinearCountHistogram( | 1852             RecordHistogram.recordLinearCountHistogram( | 
| 1853                     "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp,
       1, | 1853                     "Android.MultiWindowMode.TabletScreenWidth", mScreenWidthDp,
       1, | 
| 1854                     DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50); | 1854                     DeviceFormFactor.MINIMUM_TABLET_WIDTH_DP, 50); | 
| 1855         } | 1855         } | 
| 1856     } | 1856     } | 
| 1857 } | 1857 } | 
| OLD | NEW | 
|---|