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

Side by Side Diff: ui/views/examples/combobox_example.h

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux build Created 4 years, 9 months 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/base/models/combobox_model.h" 9 #include "ui/base/models/combobox_model.h"
10 #include "ui/views/controls/combobox/combobox_listener.h" 10 #include "ui/views/controls/combobox/combobox_listener.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // ExampleBase: 36 // ExampleBase:
37 void CreateExampleView(View* container) override; 37 void CreateExampleView(View* container) override;
38 38
39 private: 39 private:
40 // ComboboxListener: 40 // ComboboxListener:
41 void OnPerformAction(Combobox* combobox) override; 41 void OnPerformAction(Combobox* combobox) override;
42 42
43 ComboboxModelExample combobox_model_; 43 ComboboxModelExample combobox_model_;
44 Combobox* combobox_ = nullptr; 44 Combobox* combobox_ = nullptr;
45 Combobox* disabled_combobox_ = nullptr;
45 Combobox* action_combobox_ = nullptr; 46 Combobox* action_combobox_ = nullptr;
46 47
47 DISALLOW_COPY_AND_ASSIGN(ComboboxExample); 48 DISALLOW_COPY_AND_ASSIGN(ComboboxExample);
48 }; 49 };
49 50
50 } // namespace examples 51 } // namespace examples
51 } // namespace views 52 } // namespace views
52 53
53 #endif // UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_ 54 #endif // UI_VIEWS_EXAMPLES_COMBOBOX_EXAMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698