Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ | |
| 6 #define UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
|
sky
2012/12/21 15:46:01
Is this include really needed?
mazda
2013/01/07 22:41:14
This file cannot be compiled without this because
| |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "ui/views/widget/widget_observer.h" | |
| 12 | |
| 13 namespace views { | |
| 14 namespace test { | |
| 15 | |
| 16 // A Widget observer class used in the tests below to observe bubbles closing. | |
| 17 class TestWidgetObserver : public WidgetObserver { | |
| 18 public: | |
| 19 explicit TestWidgetObserver(Widget* widget); | |
| 20 virtual ~TestWidgetObserver(); | |
| 21 | |
| 22 bool widget_closed() const { return widget_ == NULL; } | |
| 23 | |
| 24 private: | |
| 25 // WidgetObserver overrides: | |
| 26 virtual void OnWidgetClosing(Widget* widget) OVERRIDE; | |
| 27 | |
| 28 Widget* widget_; | |
| 29 }; | |
|
sky
2012/12/21 15:46:01
DISALLOW_...
mazda
2013/01/07 22:41:14
Done.
| |
| 30 | |
| 31 } // namespace test | |
| 32 } // namespace views | |
| 33 | |
| 34 #endif // UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ | |
| OLD | NEW |