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

Side by Side Diff: ui/events/test/platform_event_waiter.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
« no previous file with comments | « ui/events/test/mock_motion_event.h ('k') | ui/events/test/test_event_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_ 5 #ifndef UI_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_
6 #define UI_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_ 6 #define UI_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/events/platform/platform_event_observer.h" 9 #include "ui/events/platform/platform_event_observer.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 class PlatformEventWaiter : public PlatformEventObserver { 13 class PlatformEventWaiter : public PlatformEventObserver {
14 public: 14 public:
15 typedef base::Callback<bool(const PlatformEvent&)> PlatformEventMatcher; 15 typedef base::Callback<bool(const PlatformEvent&)> PlatformEventMatcher;
16 16
17 static PlatformEventWaiter* Create(const base::Closure& success_callback, 17 static PlatformEventWaiter* Create(const base::Closure& success_callback,
18 const PlatformEventMatcher& event_matcher); 18 const PlatformEventMatcher& event_matcher);
19 19
20 private: 20 private:
21 PlatformEventWaiter(const base::Closure& success_callback, 21 PlatformEventWaiter(const base::Closure& success_callback,
22 const PlatformEventMatcher& event_matcher); 22 const PlatformEventMatcher& event_matcher);
23 virtual ~PlatformEventWaiter(); 23 virtual ~PlatformEventWaiter();
24 24
25 // PlatformEventObserver: 25 // PlatformEventObserver:
26 virtual void WillProcessEvent(const PlatformEvent& event) OVERRIDE; 26 virtual void WillProcessEvent(const PlatformEvent& event) override;
27 virtual void DidProcessEvent(const PlatformEvent& event) OVERRIDE; 27 virtual void DidProcessEvent(const PlatformEvent& event) override;
28 28
29 base::Closure success_callback_; 29 base::Closure success_callback_;
30 PlatformEventMatcher event_matcher_; 30 PlatformEventMatcher event_matcher_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(PlatformEventWaiter); 32 DISALLOW_COPY_AND_ASSIGN(PlatformEventWaiter);
33 }; 33 };
34 34
35 } // namespace ui 35 } // namespace ui
36 36
37 #endif // UI_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_ 37 #endif // UI_EVENTS_TEST_PLATFORM_EVENT_WAITER_H_
OLDNEW
« no previous file with comments | « ui/events/test/mock_motion_event.h ('k') | ui/events/test/test_event_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698