Chromium Code Reviews| 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_WRENCH_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 | 183 |
| 184 private: | 184 private: |
| 185 class HelpMenuModel; | 185 class HelpMenuModel; |
| 186 // Testing constructor used for mocking. | 186 // Testing constructor used for mocking. |
| 187 friend class ::MockWrenchMenuModel; | 187 friend class ::MockWrenchMenuModel; |
| 188 | 188 |
| 189 WrenchMenuModel(); | 189 WrenchMenuModel(); |
| 190 | 190 |
| 191 void Build(); | 191 void Build(); |
| 192 | 192 |
| 193 void AddGlobalErrorMenuItems(); | 193 bool AddGlobalErrorMenuItems(); |
|
Peter Kasting
2015/03/30 19:37:02
Nit: Please add a comment explaining what this fun
edwardjung
2015/03/31 11:44:05
Done.
| |
| 194 | 194 |
| 195 // Appends everything needed for the clipboard menu: a menu break, the | 195 // Appends everything needed for the clipboard menu: a menu break, the |
| 196 // clipboard menu content and the finalizing menu break. | 196 // clipboard menu content and the finalizing menu break. |
| 197 void CreateCutCopyPasteMenu(); | 197 void CreateCutCopyPasteMenu(); |
| 198 | 198 |
| 199 // Add a menu item for the extension icons. | 199 // Add a menu item for the extension icons. |
| 200 void CreateExtensionToolbarOverflowMenu(); | 200 void CreateExtensionToolbarOverflowMenu(); |
| 201 | 201 |
| 202 // Appends everything needed for the zoom menu: a menu break, then the zoom | 202 // Appends everything needed for the zoom menu: a menu break, then the zoom |
| 203 // menu content and then another menu break. | 203 // menu content and then another menu break. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 Browser* browser_; // weak | 250 Browser* browser_; // weak |
| 251 TabStripModel* tab_strip_model_; // weak | 251 TabStripModel* tab_strip_model_; // weak |
| 252 | 252 |
| 253 scoped_ptr<content::HostZoomMap::Subscription> browser_zoom_subscription_; | 253 scoped_ptr<content::HostZoomMap::Subscription> browser_zoom_subscription_; |
| 254 content::NotificationRegistrar registrar_; | 254 content::NotificationRegistrar registrar_; |
| 255 | 255 |
| 256 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 256 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 259 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |