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

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

Issue 2613863007: Track context menu creation for suggestions. (Closed)
Patch Set: format Created 3 years, 11 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.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import android.view.ContextMenu; 7 import android.view.ContextMenu;
8 import android.view.ContextMenu.ContextMenuInfo; 8 import android.view.ContextMenu.ContextMenuInfo;
9 import android.view.View; 9 import android.view.View;
10 import android.view.View.OnClickListener; 10 import android.view.View.OnClickListener;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 @Override 165 @Override
166 public String getUrl() { 166 public String getUrl() {
167 return MostVisitedItem.this.getUrl(); 167 return MostVisitedItem.this.getUrl();
168 } 168 }
169 169
170 @Override 170 @Override
171 public boolean isItemSupported(@ContextMenuItemId int menuIt emId) { 171 public boolean isItemSupported(@ContextMenuItemId int menuIt emId) {
172 return true; 172 return true;
173 } 173 }
174
175 @Override
176 public void onContextMenuCreated() {}
174 }); 177 });
175 } 178 }
176 179
177 @Override 180 @Override
178 public void onClick(View v) { 181 public void onClick(View v) {
179 mManager.openMostVisitedItem(WindowOpenDisposition.CURRENT_TAB, MostVisi tedItem.this); 182 mManager.openMostVisitedItem(WindowOpenDisposition.CURRENT_TAB, MostVisi tedItem.this);
180 } 183 }
181 } 184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698