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

Side by Side Diff: chrome/browser/ui/toolbar/app_menu_model.h

Issue 1786453002: Add UMA metrics for "Cast..." menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | chrome/browser/ui/toolbar/app_menu_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 MENU_ACTION_SHOW_SYNC_SETUP = 35, 63 MENU_ACTION_SHOW_SYNC_SETUP = 35,
64 MENU_ACTION_OPTIONS = 36, 64 MENU_ACTION_OPTIONS = 36,
65 MENU_ACTION_ABOUT = 37, 65 MENU_ACTION_ABOUT = 37,
66 MENU_ACTION_HELP_PAGE_VIA_MENU = 38, 66 MENU_ACTION_HELP_PAGE_VIA_MENU = 38,
67 MENU_ACTION_FEEDBACK = 39, 67 MENU_ACTION_FEEDBACK = 39,
68 MENU_ACTION_TOGGLE_REQUEST_TABLET_SITE = 40, 68 MENU_ACTION_TOGGLE_REQUEST_TABLET_SITE = 40,
69 MENU_ACTION_EXIT = 43, 69 MENU_ACTION_EXIT = 43,
70 MENU_ACTION_RECENT_TAB = 41, 70 MENU_ACTION_RECENT_TAB = 41,
71 MENU_ACTION_BOOKMARK_OPEN = 42, 71 MENU_ACTION_BOOKMARK_OPEN = 42,
72 MENU_ACTION_UPGRADE_DIALOG = 44, 72 MENU_ACTION_UPGRADE_DIALOG = 44,
73 MENU_ACTION_CAST = 45,
73 LIMIT_MENU_ACTION 74 LIMIT_MENU_ACTION
74 }; 75 };
75 76
76 // A menu model that builds the contents of an encoding menu. 77 // A menu model that builds the contents of an encoding menu.
77 class EncodingMenuModel : public ui::SimpleMenuModel, 78 class EncodingMenuModel : public ui::SimpleMenuModel,
78 public ui::SimpleMenuModel::Delegate { 79 public ui::SimpleMenuModel::Delegate {
79 public: 80 public:
80 explicit EncodingMenuModel(Browser* browser); 81 explicit EncodingMenuModel(Browser* browser);
81 ~EncodingMenuModel() override; 82 ~EncodingMenuModel() override;
82 83
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 Browser* browser_; // weak 246 Browser* browser_; // weak
246 247
247 scoped_ptr<content::HostZoomMap::Subscription> browser_zoom_subscription_; 248 scoped_ptr<content::HostZoomMap::Subscription> browser_zoom_subscription_;
248 content::NotificationRegistrar registrar_; 249 content::NotificationRegistrar registrar_;
249 250
250 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); 251 DISALLOW_COPY_AND_ASSIGN(AppMenuModel);
251 }; 252 };
252 253
253 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_ 254 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/app_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698