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

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

Issue 2772713002: Remove IDC_CREATE_SHORTCUT and its associated UI. (Closed)
Patch Set: respond to comments Created 3 years, 8 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
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/timer/elapsed_timer.h" 13 #include "base/timer/elapsed_timer.h"
14 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 14 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
15 #include "content/public/browser/host_zoom_map.h" 15 #include "content/public/browser/host_zoom_map.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "ui/base/accelerators/accelerator.h" 18 #include "ui/base/accelerators/accelerator.h"
19 #include "ui/base/models/button_menu_item_model.h" 19 #include "ui/base/models/button_menu_item_model.h"
20 #include "ui/base/models/simple_menu_model.h" 20 #include "ui/base/models/simple_menu_model.h"
21 21
22 class BookmarkSubMenuModel; 22 class BookmarkSubMenuModel;
23 class Browser; 23 class Browser;
24 class RecentTabsSubMenuModel; 24 class RecentTabsSubMenuModel;
25 25
26 namespace { 26 namespace {
27 class MockAppMenuModel; 27 class MockAppMenuModel;
28 } // namespace 28 } // namespace
29 29
30 // Values should correspond to 'WretchMenuAction' enum in histograms.xml. 30 // Values should correspond to 'WrenchMenuAction' enum in histograms.xml.
31 enum AppMenuAction { 31 enum AppMenuAction {
32 MENU_ACTION_NEW_TAB = 0, 32 MENU_ACTION_NEW_TAB = 0,
33 MENU_ACTION_NEW_WINDOW = 1, 33 MENU_ACTION_NEW_WINDOW = 1,
34 MENU_ACTION_NEW_INCOGNITO_WINDOW = 2, 34 MENU_ACTION_NEW_INCOGNITO_WINDOW = 2,
35 MENU_ACTION_SHOW_BOOKMARK_BAR = 3, 35 MENU_ACTION_SHOW_BOOKMARK_BAR = 3,
36 MENU_ACTION_SHOW_BOOKMARK_MANAGER = 4, 36 MENU_ACTION_SHOW_BOOKMARK_MANAGER = 4,
37 MENU_ACTION_IMPORT_SETTINGS = 5, 37 MENU_ACTION_IMPORT_SETTINGS = 5,
38 MENU_ACTION_BOOKMARK_PAGE = 6, 38 MENU_ACTION_BOOKMARK_PAGE = 6,
39 MENU_ACTION_BOOKMARK_ALL_TABS = 7, 39 MENU_ACTION_BOOKMARK_ALL_TABS = 7,
40 MENU_ACTION_PIN_TO_START_SCREEN = 8, 40 MENU_ACTION_PIN_TO_START_SCREEN = 8,
41 MENU_ACTION_RESTORE_TAB = 9, 41 MENU_ACTION_RESTORE_TAB = 9,
42 MENU_ACTION_DISTILL_PAGE = 13, 42 MENU_ACTION_DISTILL_PAGE = 13,
43 MENU_ACTION_SAVE_PAGE = 14, 43 MENU_ACTION_SAVE_PAGE = 14,
44 MENU_ACTION_FIND = 15, 44 MENU_ACTION_FIND = 15,
45 MENU_ACTION_PRINT = 16, 45 MENU_ACTION_PRINT = 16,
46 MENU_ACTION_CUT = 17, 46 MENU_ACTION_CUT = 17,
47 MENU_ACTION_COPY = 18, 47 MENU_ACTION_COPY = 18,
48 MENU_ACTION_PASTE = 19, 48 MENU_ACTION_PASTE = 19,
49 MENU_ACTION_CREATE_HOSTED_APP = 20, 49 MENU_ACTION_CREATE_HOSTED_APP = 20,
50 MENU_ACTION_CREATE_SHORTCUTS = 21,
51 MENU_ACTION_MANAGE_EXTENSIONS = 22, 50 MENU_ACTION_MANAGE_EXTENSIONS = 22,
52 MENU_ACTION_TASK_MANAGER = 23, 51 MENU_ACTION_TASK_MANAGER = 23,
53 MENU_ACTION_CLEAR_BROWSING_DATA = 24, 52 MENU_ACTION_CLEAR_BROWSING_DATA = 24,
54 MENU_ACTION_VIEW_SOURCE = 25, 53 MENU_ACTION_VIEW_SOURCE = 25,
55 MENU_ACTION_DEV_TOOLS = 26, 54 MENU_ACTION_DEV_TOOLS = 26,
56 MENU_ACTION_DEV_TOOLS_CONSOLE = 27, 55 MENU_ACTION_DEV_TOOLS_CONSOLE = 27,
57 MENU_ACTION_DEV_TOOLS_DEVICES = 28, 56 MENU_ACTION_DEV_TOOLS_DEVICES = 28,
58 MENU_ACTION_PROFILING_ENABLED = 29, 57 MENU_ACTION_PROFILING_ENABLED = 29,
59 MENU_ACTION_ZOOM_MINUS = 30, 58 MENU_ACTION_ZOOM_MINUS = 30,
60 MENU_ACTION_ZOOM_PLUS = 31, 59 MENU_ACTION_ZOOM_PLUS = 31,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 Browser* browser_; // weak 222 Browser* browser_; // weak
224 223
225 std::unique_ptr<content::HostZoomMap::Subscription> 224 std::unique_ptr<content::HostZoomMap::Subscription>
226 browser_zoom_subscription_; 225 browser_zoom_subscription_;
227 content::NotificationRegistrar registrar_; 226 content::NotificationRegistrar registrar_;
228 227
229 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); 228 DISALLOW_COPY_AND_ASSIGN(AppMenuModel);
230 }; 229 };
231 230
232 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_ 231 #endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698