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

Unified Diff: ui/views/examples/widget_example.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/throbber_example.cc ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/widget_example.h
===================================================================
--- ui/views/examples/widget_example.h (revision 111815)
+++ ui/views/examples/widget_example.h (working copy)
@@ -14,16 +14,17 @@
#include "ui/views/examples/example_base.h"
#include "ui/views/widget/widget.h"
+namespace views {
namespace examples {
// WidgetExample demonstrates how to create a popup widget.
-class WidgetExample : public ExampleBase, public views::ButtonListener {
+class WidgetExample : public ExampleBase, public ButtonListener {
public:
- explicit WidgetExample(ExamplesMain* main);
+ WidgetExample();
virtual ~WidgetExample();
// Overridden from ExampleBase:
- virtual void CreateExampleView(views::View* container) OVERRIDE;
+ virtual void CreateExampleView(View* container) OVERRIDE;
private:
enum Command {
@@ -34,23 +35,23 @@
CLOSE_WIDGET,
};
- void BuildButton(views::View* container, const std::string& label, int tag);
+ void BuildButton(View* container, const std::string& label, int tag);
- void InitWidget(views::Widget* widget, bool transparent);
+ void InitWidget(Widget* widget, bool transparent);
#if defined(OS_LINUX)
- void CreateChild(views::View* parent, bool transparent);
+ void CreateChild(View* parent, bool transparent);
#endif
- void CreatePopup(views::View* parent, bool transparent);
+ void CreatePopup(View* parent, bool transparent);
- // Overridden from views::ButtonListener:
- virtual void ButtonPressed(views::Button* sender,
- const views::Event& event) OVERRIDE;
+ // Overridden from ButtonListener:
+ virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WidgetExample);
};
} // namespace examples
+} // namespace views
#endif // UI_VIEWS_EXAMPLES_WIDGET_EXAMPLE_H_
« no previous file with comments | « ui/views/examples/throbber_example.cc ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698