| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |