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

Side by Side Diff: Source/core/html/MediaKeyEvent.h

Issue 126793004: Update HTML classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « Source/core/html/MediaController.h ('k') | Source/core/html/PublicURLManager.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 /* 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 36
37 String keySystem; 37 String keySystem;
38 String sessionId; 38 String sessionId;
39 RefPtr<Uint8Array> initData; 39 RefPtr<Uint8Array> initData;
40 RefPtr<Uint8Array> message; 40 RefPtr<Uint8Array> message;
41 String defaultURL; 41 String defaultURL;
42 RefPtr<MediaKeyError> errorCode; 42 RefPtr<MediaKeyError> errorCode;
43 unsigned short systemCode; 43 unsigned short systemCode;
44 }; 44 };
45 45
46 class MediaKeyEvent : public Event { 46 class MediaKeyEvent FINAL : public Event {
47 public: 47 public:
48 virtual ~MediaKeyEvent(); 48 virtual ~MediaKeyEvent();
49 49
50 static PassRefPtr<MediaKeyEvent> create() 50 static PassRefPtr<MediaKeyEvent> create()
51 { 51 {
52 return adoptRef(new MediaKeyEvent); 52 return adoptRef(new MediaKeyEvent);
53 } 53 }
54 54
55 static PassRefPtr<MediaKeyEvent> create(const AtomicString& type, const Medi aKeyEventInit& initializer) 55 static PassRefPtr<MediaKeyEvent> create(const AtomicString& type, const Medi aKeyEventInit& initializer)
56 { 56 {
57 return adoptRef(new MediaKeyEvent(type, initializer)); 57 return adoptRef(new MediaKeyEvent(type, initializer));
58 } 58 }
59 59
60 virtual const AtomicString& interfaceName() const; 60 virtual const AtomicString& interfaceName() const OVERRIDE;
61 61
62 String keySystem() const { return m_keySystem; } 62 String keySystem() const { return m_keySystem; }
63 String sessionId() const { return m_sessionId; } 63 String sessionId() const { return m_sessionId; }
64 Uint8Array* initData() const { return m_initData.get(); } 64 Uint8Array* initData() const { return m_initData.get(); }
65 Uint8Array* message() const { return m_message.get(); } 65 Uint8Array* message() const { return m_message.get(); }
66 String defaultURL() const { return m_defaultURL; } 66 String defaultURL() const { return m_defaultURL; }
67 MediaKeyError* errorCode() const { return m_errorCode.get(); } 67 MediaKeyError* errorCode() const { return m_errorCode.get(); }
68 MediaKeyError* errorCode(bool& isNull) const { isNull = !m_errorCode; return m_errorCode.get(); } 68 MediaKeyError* errorCode(bool& isNull) const { isNull = !m_errorCode; return m_errorCode.get(); }
69 unsigned short systemCode() const { return m_systemCode; } 69 unsigned short systemCode() const { return m_systemCode; }
70 70
71 private: 71 private:
72 MediaKeyEvent(); 72 MediaKeyEvent();
73 MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer ); 73 MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer );
74 74
75 String m_keySystem; 75 String m_keySystem;
76 String m_sessionId; 76 String m_sessionId;
77 RefPtr<Uint8Array> m_initData; 77 RefPtr<Uint8Array> m_initData;
78 RefPtr<Uint8Array> m_message; 78 RefPtr<Uint8Array> m_message;
79 String m_defaultURL; 79 String m_defaultURL;
80 RefPtr<MediaKeyError> m_errorCode; 80 RefPtr<MediaKeyError> m_errorCode;
81 unsigned short m_systemCode; 81 unsigned short m_systemCode;
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif 86 #endif
OLDNEW
« no previous file with comments | « Source/core/html/MediaController.h ('k') | Source/core/html/PublicURLManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698