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

Side by Side Diff: ios/chrome/browser/ui/tools_menu/tools_popup_controller.mm

Issue 2643753002: Add the suggestions UI in chrome (Closed)
Patch Set: Update comments 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
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" 5 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h"
6 6
7 #import <QuartzCore/QuartzCore.h> 7 #import <QuartzCore/QuartzCore.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 break; 217 break;
218 case IDC_VIEW_SOURCE: 218 case IDC_VIEW_SOURCE:
219 // Debug only; no metric. 219 // Debug only; no metric.
220 break; 220 break;
221 case IDC_SHOW_TOOLS_MENU: 221 case IDC_SHOW_TOOLS_MENU:
222 // Do nothing when tapping the tools menu a second time. 222 // Do nothing when tapping the tools menu a second time.
223 break; 223 break;
224 case IDC_SHOW_READING_LIST: 224 case IDC_SHOW_READING_LIST:
225 base::RecordAction(UserMetricsAction("MobileMenuReadingList")); 225 base::RecordAction(UserMetricsAction("MobileMenuReadingList"));
226 break; 226 break;
227 case IDC_SHOW_SUGGESTIONS:
228 // TODO(crbug.com/682174): Move it out of the tool menu or add metrics.
229 break;
227 default: 230 default:
228 NOTREACHED(); 231 NOTREACHED();
229 break; 232 break;
230 } 233 }
231 234
232 // Close the menu. 235 // Close the menu.
233 [self.delegate dismissPopupMenu:self]; 236 [self.delegate dismissPopupMenu:self];
234 } 237 }
235 238
236 @end 239 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698