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

Unified Diff: ui/views/examples/examples_window.h

Issue 138783002: Cleans up gyp file for views example and removes duplicate code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/examples/examples_main.cc ('k') | ui/views/examples/examples_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/examples_window.h
diff --git a/ui/views/examples/examples_window.h b/ui/views/examples/examples_window.h
index 94139db4d096ea31a992434db6f4f1a977af30a8..ba910e10e8f90ac7ce3d2bb7130c0b5d8a06781a 100644
--- a/ui/views/examples/examples_window.h
+++ b/ui/views/examples/examples_window.h
@@ -5,18 +5,31 @@
#ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
#define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
#include "ui/views/examples/views_examples_export.h"
+namespace aura {
+class Window;
+}
+
namespace views {
namespace examples {
+class ExampleBase;
+
enum Operation {
DO_NOTHING_ON_CLOSE = 0,
QUIT_ON_CLOSE,
};
-// Shows a window with the views examples in it.
-VIEWS_EXAMPLES_EXPORT void ShowExamplesWindow(Operation operation);
+// Shows a window with the views examples in it. |extra_examples| contains any
+// additional examples to add. |window_context| is used to determine where the
+// window should be created (see |Widget::InitParams::context| for details).
+VIEWS_EXAMPLES_EXPORT void ShowExamplesWindow(
+ Operation operation,
+ aura::Window* window_context,
+ scoped_ptr<ScopedVector<ExampleBase> > extra_examples);
} // namespace examples
} // namespace views
« no previous file with comments | « ui/views/examples/examples_main.cc ('k') | ui/views/examples/examples_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698