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