OLD | NEW |
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/metrics/user_metrics.h" | 10 #include "base/metrics/user_metrics.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 case IDC_PRINT: | 219 case IDC_PRINT: |
220 base::RecordAction(UserMetricsAction("MobileMenuPrint")); | 220 base::RecordAction(UserMetricsAction("MobileMenuPrint")); |
221 break; | 221 break; |
222 case IDC_REPORT_AN_ISSUE: | 222 case IDC_REPORT_AN_ISSUE: |
223 self.containerView.hidden = YES; | 223 self.containerView.hidden = YES; |
224 base::RecordAction(UserMetricsAction("MobileMenuReportAnIssue")); | 224 base::RecordAction(UserMetricsAction("MobileMenuReportAnIssue")); |
225 break; | 225 break; |
226 case IDC_VIEW_SOURCE: | 226 case IDC_VIEW_SOURCE: |
227 // Debug only; no metric. | 227 // Debug only; no metric. |
228 break; | 228 break; |
229 case IDC_SHOW_TOOLS_MENU: | 229 case TOOLS_MENU_ITEM: |
230 // Do nothing when tapping the tools menu a second time. | 230 // Do nothing when tapping the tools menu a second time. |
231 break; | 231 break; |
232 case IDC_SHOW_READING_LIST: | 232 case IDC_SHOW_READING_LIST: |
233 base::RecordAction(UserMetricsAction("MobileMenuReadingList")); | 233 base::RecordAction(UserMetricsAction("MobileMenuReadingList")); |
234 break; | 234 break; |
235 default: | 235 default: |
236 NOTREACHED(); | 236 NOTREACHED(); |
237 break; | 237 break; |
238 } | 238 } |
239 | 239 |
240 // Close the menu. | 240 // Close the menu. |
241 [self.delegate dismissPopupMenu:self]; | 241 [self.delegate dismissPopupMenu:self]; |
242 } | 242 } |
243 | 243 |
244 @end | 244 @end |
OLD | NEW |