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

Side by Side Diff: Source/core/inspector/InspectorInputAgent.h

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "wtf/Noncopyable.h" 35 #include "wtf/Noncopyable.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 class InspectorClient; 40 class InspectorClient;
41 class Page; 41 class Page;
42 42
43 typedef String ErrorString; 43 typedef String ErrorString;
44 44
45 class InspectorInputAgent FINAL : public InspectorBaseAgent<InspectorInputAgent> , public InspectorBackendDispatcher::InputCommandHandler { 45 class InspectorInputAgent final : public InspectorBaseAgent<InspectorInputAgent> , public InspectorBackendDispatcher::InputCommandHandler {
46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent); 46 WTF_MAKE_NONCOPYABLE(InspectorInputAgent);
47 public: 47 public:
48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(Page* page, Inspec torClient* client) 48 static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(Page* page, Inspec torClient* client)
49 { 49 {
50 return adoptPtrWillBeNoop(new InspectorInputAgent(page, client)); 50 return adoptPtrWillBeNoop(new InspectorInputAgent(page, client));
51 } 51 }
52 52
53 virtual ~InspectorInputAgent(); 53 virtual ~InspectorInputAgent();
54 virtual void trace(Visitor*) OVERRIDE; 54 virtual void trace(Visitor*) override;
55 55
56 // Methods called from the frontend for simulating input. 56 // Methods called from the frontend for simulating input.
57 virtual void dispatchKeyEvent(ErrorString*, const String& type, const int* m odifiers, const double* timestamp, const String* text, const String* unmodifiedT ext, const String* keyIdentifier, const int* windowsVirtualKeyCode, const int* n ativeVirtualKeyCode, const bool* autoRepeat, const bool* isKeypad, const bool* i sSystemKey) OVERRIDE; 57 virtual void dispatchKeyEvent(ErrorString*, const String& type, const int* m odifiers, const double* timestamp, const String* text, const String* unmodifiedT ext, const String* keyIdentifier, const int* windowsVirtualKeyCode, const int* n ativeVirtualKeyCode, const bool* autoRepeat, const bool* isKeypad, const bool* i sSystemKey) override;
58 virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const i nt* clickCount) OVERRIDE; 58 virtual void dispatchMouseEvent(ErrorString*, const String& type, int x, int y, const int* modifiers, const double* timestamp, const String* button, const i nt* clickCount) override;
59 virtual void dispatchTouchEvent(ErrorString*, const String& type, const RefP tr<JSONArray>& touchPoints, const int* modifiers, const double* timestamp) OVERR IDE; 59 virtual void dispatchTouchEvent(ErrorString*, const String& type, const RefP tr<JSONArray>& touchPoints, const int* modifiers, const double* timestamp) overr ide;
60 private: 60 private:
61 InspectorInputAgent(Page*, InspectorClient*); 61 InspectorInputAgent(Page*, InspectorClient*);
62 62
63 RawPtrWillBeMember<Page> m_page; 63 RawPtrWillBeMember<Page> m_page;
64 InspectorClient* m_client; 64 InspectorClient* m_client;
65 }; 65 };
66 66
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // !defined(InspectorInputAgent_h) 70 #endif // !defined(InspectorInputAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHistory.cpp ('k') | Source/core/inspector/InspectorInspectorAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698