| 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 #include "views/controls/menu/menu_2.h" | 5 #include "views/controls/menu/menu_2.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | |
| 8 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 10 #include "views/controls/menu/menu_wrapper.h" | 9 #include "views/controls/menu/menu_wrapper.h" |
| 11 | 10 |
| 12 namespace views { | 11 namespace views { |
| 13 | 12 |
| 14 Menu2::Menu2(menus::MenuModel* model) | 13 Menu2::Menu2(menus::MenuModel* model) |
| 15 : model_(model), | 14 : model_(model), |
| 16 ALLOW_THIS_IN_INITIALIZER_LIST( | 15 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 17 wrapper_(MenuWrapper::CreateWrapper(this))) { | 16 wrapper_(MenuWrapper::CreateWrapper(this))) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 | 47 |
| 49 void Menu2::AddMenuListener(MenuListener* listener) { | 48 void Menu2::AddMenuListener(MenuListener* listener) { |
| 50 wrapper_->AddMenuListener(listener); | 49 wrapper_->AddMenuListener(listener); |
| 51 } | 50 } |
| 52 | 51 |
| 53 void Menu2::RemoveMenuListener(MenuListener* listener) { | 52 void Menu2::RemoveMenuListener(MenuListener* listener) { |
| 54 wrapper_->RemoveMenuListener(listener); | 53 wrapper_->RemoveMenuListener(listener); |
| 55 } | 54 } |
| 56 | 55 |
| 57 } // namespace | 56 } // namespace |
| OLD | NEW |