Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ | |
| 6 #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ | |
| 7 | |
| 8 #include "ui/base/ui_base_types.h" | |
| 9 #include "ui/views/controls/menu/menu_runner.h" | |
| 10 | |
| 11 namespace gfx { | |
| 12 class Rect; | |
| 13 } | |
| 14 | |
| 15 namespace views { | |
| 16 | |
| 17 class Combobox; | |
| 18 class MenuRunner; | |
| 19 | |
| 20 // An interface to run a dropdown menu for a combobox. | |
| 21 class ComboboxMenuRunner { | |
|
sky
2013/12/06 17:12:23
I like this, but I think it should be done at the
hajimehoshi
2013/12/09 07:44:28
Done. (Added MenuRunnerCore to implement RunMenuAt
| |
| 22 public: | |
| 23 virtual ~ComboboxMenuRunner() {} | |
| 24 | |
| 25 // Runs the menu for a combobox. | |
| 26 virtual MenuRunner::RunResult Run(Combobox* combobox, | |
| 27 MenuRunner* menu_runner, | |
| 28 const gfx::Rect& bounds, | |
| 29 ui::MenuSourceType source_type) = 0; | |
| 30 }; | |
| 31 | |
| 32 } // namespace views | |
| 33 | |
| 34 #endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ | |
| OLD | NEW |