Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/views/controls/combobox/combobox_menu_runner.h

Issue 59383003: Add the button style for combobox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's review (4) Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698