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

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

Issue 2779543005: Add support for highlighting menu items (Closed)
Patch Set: Moved PulseDrawable Created 3 years, 8 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 } 508 }
509 if (!isVisible) { 509 if (!isVisible) {
510 mAppMenuPropertiesDelegate.onMenuDismissed(); 510 mAppMenuPropertiesDelegate.onMenuDismissed();
511 MenuItem updateMenuItem = mAppMenuHandler.getAppMenu().getMe nu().findItem( 511 MenuItem updateMenuItem = mAppMenuHandler.getAppMenu().getMe nu().findItem(
512 R.id.update_menu_id); 512 R.id.update_menu_id);
513 if (updateMenuItem != null && updateMenuItem.isVisible()) { 513 if (updateMenuItem != null && updateMenuItem.isVisible()) {
514 UpdateMenuItemHelper.getInstance().onMenuDismissed(); 514 UpdateMenuItemHelper.getInstance().onMenuDismissed();
515 } 515 }
516 } 516 }
517 } 517 }
518
519 @Override
520 public void onMenuHighlightChanged(boolean highlighting) {}
518 }); 521 });
519 } 522 }
520 523
521 /** 524 /**
522 * Initialize the {@link TabModelSelector}, {@link TabModel}s, and 525 * Initialize the {@link TabModelSelector}, {@link TabModel}s, and
523 * {@link org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator} needed by 526 * {@link org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator} needed by
524 * this activity. 527 * this activity.
525 */ 528 */
526 protected final void initializeTabModels() { 529 protected final void initializeTabModels() {
527 if (mTabModelsInitialized) return; 530 if (mTabModelsInitialized) return;
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 * draw over VR contents should be hidden in this call. 2181 * draw over VR contents should be hidden in this call.
2179 */ 2182 */
2180 public void onEnterVR() {} 2183 public void onEnterVR() {}
2181 2184
2182 /** 2185 /**
2183 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored 2186 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored
2184 * in this call, including showing 2D UI that was hidden. 2187 * in this call, including showing 2D UI that was hidden.
2185 */ 2188 */
2186 public void onExitVR() {} 2189 public void onExitVR() {}
2187 } 2190 }
OLDNEW
« no previous file with comments | « chrome/android/java/res/values/ids.xml ('k') | chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698