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

Side by Side Diff: third_party/WebKit/public/platform/modules/mediasession/WebMediaSessionError.h

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert throwing in the constructor; would needlessly complicate existing tests Created 5 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
(Empty)
1 // Copyright 2015 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 WebMediaSessionError_h
6 #define WebMediaSessionError_h
7
8 namespace blink {
9
10 struct WebMediaSessionError {
11 enum ErrorType {
mlamouri (slow - plz ping) 2015/10/07 14:19:31 I think it would be beneficial to move this outsid
davve 2015/10/08 09:17:35 Good point. Seems like I only need the enum really
12 ErrorTypeActivate = 0,
13 ErrorTypeLast = ErrorTypeActivate
14 };
15
16 WebMediaSessionError(ErrorType errorType)
17 : errorType(errorType)
18 {
19 }
20
21 ErrorType errorType;
22 };
23
24 } // namespace blink
25
26 #endif // WebMediaSessionError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698