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

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

Issue 2703473002: [TTS] Extract tapped text before showing UI. (Closed)
Patch Set: Added some tests, fixed some tests, added DCHECKS to native context, rebased. Created 3 years, 7 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 @Override 741 @Override
742 public void initializeCompositor() { 742 public void initializeCompositor() {
743 TraceEvent.begin("ChromeActivity:CompositorInitialization"); 743 TraceEvent.begin("ChromeActivity:CompositorInitialization");
744 super.initializeCompositor(); 744 super.initializeCompositor();
745 745
746 setTabContentManager(new TabContentManager(this, getContentOffsetProvide r(), 746 setTabContentManager(new TabContentManager(this, getContentOffsetProvide r(),
747 DeviceClassManager.enableSnapshots())); 747 DeviceClassManager.enableSnapshots()));
748 mCompositorViewHolder.onNativeLibraryReady(getWindowAndroid(), getTabCon tentManager()); 748 mCompositorViewHolder.onNativeLibraryReady(getWindowAndroid(), getTabCon tentManager());
749 749
750 if (isContextualSearchAllowed() && ContextualSearchFieldTrial.isEnabled( )) { 750 if (isContextualSearchAllowed() && ContextualSearchFieldTrial.isEnabled( )) {
751 mContextualSearchManager = new ContextualSearchManager(this, getWind owAndroid(), this); 751 mContextualSearchManager = new ContextualSearchManager(this, this);
752 } 752 }
753 753
754 if (ReaderModeManager.isEnabled(this)) { 754 if (ReaderModeManager.isEnabled(this)) {
755 mReaderModeManager = new ReaderModeManager(getTabModelSelector(), th is); 755 mReaderModeManager = new ReaderModeManager(getTabModelSelector(), th is);
756 if (mToolbarManager != null) { 756 if (mToolbarManager != null) {
757 mToolbarManager.addFindToolbarObserver( 757 mToolbarManager.addFindToolbarObserver(
758 mReaderModeManager.getFindToolbarObserver()); 758 mReaderModeManager.getFindToolbarObserver());
759 } 759 }
760 } 760 }
761 761
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 * draw over VR contents should be hidden in this call. 2154 * draw over VR contents should be hidden in this call.
2155 */ 2155 */
2156 public void onEnterVr() {} 2156 public void onEnterVr() {}
2157 2157
2158 /** 2158 /**
2159 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored 2159 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored
2160 * in this call, including showing 2D UI that was hidden. 2160 * in this call, including showing 2D UI that was hidden.
2161 */ 2161 */
2162 public void onExitVr() {} 2162 public void onExitVr() {}
2163 } 2163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698