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

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

Issue 2915223002: mash: Fix mash app shelf items; encapsulate ash property setup. (Closed)
Patch Set: Similar changes for other mash apps. Created 3 years, 6 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_EXAMPLES_WINDOW_H_ 5 #ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
6 #define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_ 6 #define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/views/examples/example_base.h" 12 #include "ui/views/examples/example_base.h"
13 #include "ui/views/examples/views_examples_export.h" 13 #include "ui/views/examples/views_examples_export.h"
14 14
15 namespace views { 15 namespace views {
16 class Widget;
16 namespace examples { 17 namespace examples {
17 18
18 enum Operation { 19 enum Operation {
19 DO_NOTHING_ON_CLOSE = 0, 20 DO_NOTHING_ON_CLOSE = 0,
20 QUIT_ON_CLOSE, 21 QUIT_ON_CLOSE,
21 }; 22 };
22 23
23 // Shows a window with the views examples in it. |extra_examples| contains any 24 // Shows a window with the views examples in it. |extra_examples| contains any
24 // additional examples to add. |window_context| is used to determine where the 25 // additional examples to add. |window_context| is used to determine where the
25 // window should be created (see |Widget::InitParams::context| for details). 26 // window should be created (see |Widget::InitParams::context| for details).
26 VIEWS_EXAMPLES_EXPORT void ShowExamplesWindow( 27 VIEWS_EXAMPLES_EXPORT Widget* ShowExamplesWindow(
27 Operation operation, 28 Operation operation,
28 gfx::NativeWindow window_context = nullptr, 29 gfx::NativeWindow window_context = nullptr,
29 std::vector<std::unique_ptr<ExampleBase>> extra_examples = 30 std::vector<std::unique_ptr<ExampleBase>> extra_examples =
30 std::vector<std::unique_ptr<ExampleBase>>()); 31 std::vector<std::unique_ptr<ExampleBase>>());
31 32
32 } // namespace examples 33 } // namespace examples
33 } // namespace views 34 } // namespace views
34 35
35 #endif // UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_ 36 #endif // UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698