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/native_menu_win.h" | 5 #include "views/controls/menu/native_menu_win.h" |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "app/l10n_util_win.h" | 9 #include "app/l10n_util_win.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 for (std::vector<MenuListener*>::iterator iter = listeners_.begin(); | 402 for (std::vector<MenuListener*>::iterator iter = listeners_.begin(); |
403 iter != listeners_.end(); | 403 iter != listeners_.end(); |
404 ++iter) { | 404 ++iter) { |
405 if (*iter == listener) { | 405 if (*iter == listener) { |
406 listeners_.erase(iter); | 406 listeners_.erase(iter); |
407 return; | 407 return; |
408 } | 408 } |
409 } | 409 } |
410 } | 410 } |
411 | 411 |
| 412 void NativeMenuWin::SetMinimumWidth(int width) { |
| 413 NOTIMPLEMENTED(); |
| 414 } |
| 415 |
412 //////////////////////////////////////////////////////////////////////////////// | 416 //////////////////////////////////////////////////////////////////////////////// |
413 // NativeMenuWin, private: | 417 // NativeMenuWin, private: |
414 | 418 |
415 // static | 419 // static |
416 NativeMenuWin* NativeMenuWin::open_native_menu_win_ = NULL; | 420 NativeMenuWin* NativeMenuWin::open_native_menu_win_ = NULL; |
417 | 421 |
418 // static | 422 // static |
419 bool NativeMenuWin::GetHighlightedMenuItemInfo( | 423 bool NativeMenuWin::GetHighlightedMenuItemInfo( |
420 HMENU menu, bool* has_parent, bool* has_submenu) { | 424 HMENU menu, bool* has_parent, bool* has_submenu) { |
421 for (int i = 0; i < ::GetMenuItemCount(menu); i++) { | 425 for (int i = 0; i < ::GetMenuItemCount(menu); i++) { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 | 629 |
626 //////////////////////////////////////////////////////////////////////////////// | 630 //////////////////////////////////////////////////////////////////////////////// |
627 // MenuWrapper, public: | 631 // MenuWrapper, public: |
628 | 632 |
629 // static | 633 // static |
630 MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) { | 634 MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) { |
631 return new NativeMenuWin(menu->model(), NULL); | 635 return new NativeMenuWin(menu->model(), NULL); |
632 } | 636 } |
633 | 637 |
634 } // namespace views | 638 } // namespace views |
OLD | NEW |