| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WRENCH_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/menus/button_menu_item_model.h" | 12 #include "app/menus/button_menu_item_model.h" |
| 13 #include "app/menus/simple_menu_model.h" | 13 #include "app/menus/simple_menu_model.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "chrome/browser/tabs/tab_strip_model.h" | 16 #include "chrome/browser/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/notification_observer.h" | 17 #include "chrome/common/notification_observer.h" |
| 18 #include "chrome/common/notification_registrar.h" | 18 #include "chrome/common/notification_registrar.h" |
| 19 | 19 |
| 20 class Browser; | 20 class Browser; |
| 21 | 21 |
| 22 namespace menus { | |
| 23 class ButtonMenuItemModel; | |
| 24 } // namespace menus | |
| 25 | |
| 26 namespace { | 22 namespace { |
| 27 class MockWrenchMenuModel; | 23 class MockWrenchMenuModel; |
| 28 } // namespace | 24 } // namespace |
| 29 | 25 |
| 30 // A menu model that builds the contents of an encoding menu. | 26 // A menu model that builds the contents of an encoding menu. |
| 31 class EncodingMenuModel : public menus::SimpleMenuModel, | 27 class EncodingMenuModel : public menus::SimpleMenuModel, |
| 32 public menus::SimpleMenuModel::Delegate { | 28 public menus::SimpleMenuModel::Delegate { |
| 33 public: | 29 public: |
| 34 explicit EncodingMenuModel(Browser* browser); | 30 explicit EncodingMenuModel(Browser* browser); |
| 35 virtual ~EncodingMenuModel() {} | 31 virtual ~EncodingMenuModel() {} |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 143 |
| 148 Browser* browser_; // weak | 144 Browser* browser_; // weak |
| 149 TabStripModel* tabstrip_model_; // weak | 145 TabStripModel* tabstrip_model_; // weak |
| 150 | 146 |
| 151 NotificationRegistrar registrar_; | 147 NotificationRegistrar registrar_; |
| 152 | 148 |
| 153 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); | 149 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); |
| 154 }; | 150 }; |
| 155 | 151 |
| 156 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_ | 152 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_ |
| OLD | NEW |