#ifndef UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_
#define UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_
#include <stddef.h>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/views/widget/widget_observer.h"
namespace views {
namespace test {
class TestWidgetObserver : public WidgetObserver {
public:
explicit TestWidgetObserver(Widget* widget);
virtual ~TestWidgetObserver();
bool widget_closed() const { return widget_ == NULL; }
private:
virtual void OnWidgetDestroying(Widget* widget) OVERRIDE;
Widget* widget_;
DISALLOW_COPY_AND_ASSIGN(TestWidgetObserver);
};
}
}
#endif