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

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

Issue 2882013002: Add experiment for having a "Beta forum" link in the help menu. (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/ui/chrome_pages.cc ('k') | 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 <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 MENU_ACTION_CAST = 45,
74 MENU_ACTION_BETA_FORUM = 46,
74 LIMIT_MENU_ACTION 75 LIMIT_MENU_ACTION
75 }; 76 };
76 77
77 // A menu model that builds the contents of the zoom menu. 78 // A menu model that builds the contents of the zoom menu.
78 class ZoomMenuModel : public ui::SimpleMenuModel { 79 class ZoomMenuModel : public ui::SimpleMenuModel {
79 public: 80 public:
80 explicit ZoomMenuModel(ui::SimpleMenuModel::Delegate* delegate); 81 explicit ZoomMenuModel(ui::SimpleMenuModel::Delegate* delegate);
81 ~ZoomMenuModel() override; 82 ~ZoomMenuModel() override;
82 83
83 private: 84 private:
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Browser* browser_; // weak 223 Browser* browser_; // weak
223 224
224 std::unique_ptr<content::HostZoomMap::Subscription> 225 std::unique_ptr<content::HostZoomMap::Subscription>
225 browser_zoom_subscription_; 226 browser_zoom_subscription_;
226 content::NotificationRegistrar registrar_; 227 content::NotificationRegistrar registrar_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); 229 DISALLOW_COPY_AND_ASSIGN(AppMenuModel);
229 }; 230 };
230 231
231 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_ 232 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/toolbar/app_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698