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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ 5 #ifndef UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_
6 #define UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ 6 #define UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/views/widget/widget_observer.h" 12 #include "ui/views/widget/widget_observer.h"
13 13
14 namespace views { 14 namespace views {
15 namespace test { 15 namespace test {
16 16
17 // A Widget observer class used in the tests below to observe bubbles closing. 17 // A Widget observer class used in the tests below to observe bubbles closing.
18 class TestWidgetObserver : public WidgetObserver { 18 class TestWidgetObserver : public WidgetObserver {
19 public: 19 public:
20 explicit TestWidgetObserver(Widget* widget); 20 explicit TestWidgetObserver(Widget* widget);
21 virtual ~TestWidgetObserver(); 21 virtual ~TestWidgetObserver();
22 22
23 bool widget_closed() const { return widget_ == NULL; } 23 bool widget_closed() const { return widget_ == NULL; }
24 24
25 private: 25 private:
26 // WidgetObserver overrides: 26 // WidgetObserver overrides:
27 virtual void OnWidgetDestroying(Widget* widget) OVERRIDE; 27 virtual void OnWidgetDestroying(Widget* widget) override;
28 28
29 Widget* widget_; 29 Widget* widget_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(TestWidgetObserver); 31 DISALLOW_COPY_AND_ASSIGN(TestWidgetObserver);
32 }; 32 };
33 33
34 } // namespace test 34 } // namespace test
35 } // namespace views 35 } // namespace views
36 36
37 #endif // UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_ 37 #endif // UI_VIEWS_TEST_TEST_WIDGET_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/test/ui_controls_factory_desktop_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698