| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 Browser* browser() const { return browser_; } | 128 Browser* browser() const { return browser_; } |
| 129 | 129 |
| 130 // Calculates |zoom_label_| in response to a zoom change. | 130 // Calculates |zoom_label_| in response to a zoom change. |
| 131 void UpdateZoomControls(); | 131 void UpdateZoomControls(); |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 // Testing constructor used for mocking. | 134 // Testing constructor used for mocking. |
| 135 friend class ::MockWrenchMenuModel; | 135 friend class ::MockWrenchMenuModel; |
| 136 WrenchMenuModel(); | 136 WrenchMenuModel(); |
| 137 | 137 |
| 138 void Build(); | 138 void BuildBrowserMenu(); |
| 139 void BuildCrosMenu(); |
| 139 | 140 |
| 140 // Adds custom items to the menu. Deprecated in favor of a cross platform | 141 // Adds custom items to the menu. Deprecated in favor of a cross platform |
| 141 // model for button items. | 142 // model for button items. |
| 142 void CreateCutCopyPaste(); | 143 void CreateCutCopyPaste(); |
| 143 void CreateZoomFullscreen(); | 144 void CreateZoomFullscreen(); |
| 144 | 145 |
| 145 string16 GetSyncMenuLabel() const; | 146 string16 GetSyncMenuLabel() const; |
| 146 | 147 |
| 147 // Models for the special menu items with buttons. | 148 // Models for the special menu items with buttons. |
| 148 scoped_ptr<ui::ButtonMenuItemModel> edit_menu_item_model_; | 149 scoped_ptr<ui::ButtonMenuItemModel> edit_menu_item_model_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 161 | 162 |
| 162 Browser* browser_; // weak | 163 Browser* browser_; // weak |
| 163 TabStripModel* tabstrip_model_; // weak | 164 TabStripModel* tabstrip_model_; // weak |
| 164 | 165 |
| 165 NotificationRegistrar registrar_; | 166 NotificationRegistrar registrar_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 168 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ | 171 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |