#ifndef UI_VIEWS_EXAMPLES_WIDGET_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_WIDGET_EXAMPLE_H_
#include <string>
#include "base/macros.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/examples/example_base.h"
#include "ui/views/widget/widget.h"
namespace views {
namespace examples {
class VIEWS_EXAMPLES_EXPORT WidgetExample : public ExampleBase,
                                            public ButtonListener {
 public:
  WidgetExample();
  virtual ~WidgetExample();
  
  virtual void CreateExampleView(View* container) OVERRIDE;
 private:
  
  enum Command {
    POPUP,        
    DIALOG,       
    CHILD,        
    CLOSE_WIDGET, 
  };
  
  void BuildButton(View* container, const std::string& label, int tag);
  
  void ShowWidget(View* sender, Widget::InitParams params);
  
  virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
  DISALLOW_COPY_AND_ASSIGN(WidgetExample);
};
}  
}  
#endif