| 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/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |