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

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

Issue 8687013: Get the examples to run in aura_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
===================================================================
--- ui/views/examples/examples_window.h (revision 111708)
+++ ui/views/examples/examples_window.h (working copy)
@@ -2,59 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef VIEWS_EXAMPLES_EXAMPLE_MAIN_H_
-#define VIEWS_EXAMPLES_EXAMPLE_MAIN_H_
+#ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
+#define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_H_
#pragma once
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/views/widget/widget_delegate.h"
-
namespace views {
-class Label;
-class TabbedPane;
-class View;
-} // namespace views
-
namespace examples {
-class ExampleBase;
-
-// ExamplesMain creates all view examples.
-class ExamplesMain : public views::WidgetDelegate {
- public:
- ExamplesMain();
- virtual ~ExamplesMain();
-
- // Creates all the examples and shows the window.
- void Init();
-
- // Prints a message in the status area, at the bottom of the window.
- void SetStatus(const std::string& status);
-
- private:
- // Adds a new example to the tabbed window.
- void AddExample(ExampleBase* example);
-
- // views::WidgetDelegate implementation:
- virtual bool CanResize() const OVERRIDE;
- virtual bool CanMaximize() const OVERRIDE;
- virtual string16 GetWindowTitle() const OVERRIDE;
- virtual views::View* GetContentsView() OVERRIDE;
- virtual void WindowClosing() OVERRIDE;
- virtual views::Widget* GetWidget() OVERRIDE;
- virtual const views::Widget* GetWidget() const OVERRIDE;
-
- views::TabbedPane* tabbed_pane_;
- views::View* contents_;
- views::Label* status_label_;
- std::vector<ExampleBase*> examples_;
-
- DISALLOW_COPY_AND_ASSIGN(ExamplesMain);
-};
-
+// Shows a window with the views examples in it.
+void ShowExamplesWindow(bool quit_on_close);
} // namespace examples
+} // namespace views
#endif // VIEWS_EXAMPLES_EXAMPLE_MAIN_H_
« 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