OLD | NEW |
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_WITH_CONTENT_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_ |
6 #define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_ | 6 #define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/views/examples/examples_window.h" |
9 #include "ui/views/examples/views_examples_with_content_export.h" | 10 #include "ui/views/examples/views_examples_with_content_export.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 class BrowserContext; | 13 class BrowserContext; |
13 } | 14 } |
14 | 15 |
15 namespace views { | 16 namespace views { |
16 namespace examples { | 17 namespace examples { |
17 | 18 |
18 enum Operation { | |
19 DO_NOTHING_ON_CLOSE = 0, | |
20 QUIT_ON_CLOSE, | |
21 }; | |
22 | |
23 // Shows a window with the views examples in it. | 19 // Shows a window with the views examples in it. |
24 VIEWS_EXAMPLES_WITH_CONTENT_EXPORT void ShowExamplesWindowWithContent( | 20 VIEWS_EXAMPLES_WITH_CONTENT_EXPORT void ShowExamplesWindowWithContent( |
25 Operation operation, | 21 Operation operation, |
26 content::BrowserContext* browser_context, | 22 content::BrowserContext* browser_context, |
27 gfx::NativeView window_context); | 23 gfx::NativeView window_context); |
28 | 24 |
29 } // namespace examples | 25 } // namespace examples |
30 } // namespace views | 26 } // namespace views |
31 | 27 |
32 #endif // UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_ | 28 #endif // UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_ |
OLD | NEW |