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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build 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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.annotation.TargetApi; 7 import android.annotation.TargetApi;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.SearchManager; 9 import android.app.SearchManager;
10 import android.content.ClipData; 10 import android.content.ClipData;
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if (supportsFloatingActionMode()) { 431 if (supportsFloatingActionMode()) {
432 return ViewConfiguration.getDefaultActionModeHideDuration(); 432 return ViewConfiguration.getDefaultActionModeHideDuration();
433 } 433 }
434 return 2000; 434 return 2000;
435 } 435 }
436 436
437 // Default handlers for action mode callbacks. 437 // Default handlers for action mode callbacks.
438 438
439 @Override 439 @Override
440 public void onCreateActionMode(ActionMode mode, Menu menu) { 440 public void onCreateActionMode(ActionMode mode, Menu menu) {
441 mode.setTitle(DeviceFormFactor.isTablet(mContext) 441 mode.setTitle(DeviceFormFactor.isTablet()
442 ? mContext.getString(R.string.actionbar_textselection_ti tle) 442 ? mContext.getString(R.string.actionbar_textselection_ti tle)
443 : null); 443 : null);
444 mode.setSubtitle(null); 444 mode.setSubtitle(null);
445 createActionMenu(mode, menu); 445 createActionMenu(mode, menu);
446 } 446 }
447 447
448 @Override 448 @Override
449 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 449 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
450 menu.removeGroup(R.id.select_action_menu_default_items); 450 menu.removeGroup(R.id.select_action_menu_default_items);
451 menu.removeGroup(R.id.select_action_menu_text_processing_menus); 451 menu.removeGroup(R.id.select_action_menu_text_processing_menus);
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 if (mPendingShowActionMode) return; 1147 if (mPendingShowActionMode) return;
1148 } 1148 }
1149 1149
1150 // Rely on this method to clear |mHidden| and unhide the action mode . 1150 // Rely on this method to clear |mHidden| and unhide the action mode .
1151 showActionModeOrClearOnFailure(); 1151 showActionModeOrClearOnFailure();
1152 } 1152 }
1153 }; 1153 };
1154 1154
1155 private native void nativeInit(WebContents webContents); 1155 private native void nativeInit(WebContents webContents);
1156 } 1156 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698