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

Side by Side Diff: ui/views/test/test_widget_observer.h

Issue 11639012: Add tests to verify accelerators properly work on constrained window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698