| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef WebMIDIPermissionRequest_h | 31 #ifndef WebMIDIPermissionRequest_h |
| 32 #define WebMIDIPermissionRequest_h | 32 #define WebMIDIPermissionRequest_h |
| 33 | 33 |
| 34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 class MIDIAccess; | 38 class MIDIAccess; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace WebKit { | 41 namespace blink { |
| 42 | 42 |
| 43 class WebSecurityOrigin; | 43 class WebSecurityOrigin; |
| 44 | 44 |
| 45 // WebMIDIPermissionRequest encapsulates a WebCore MIDIAccess object and represe
nts | 45 // WebMIDIPermissionRequest encapsulates a WebCore MIDIAccess object and represe
nts |
| 46 // a request from WebCore for permissions. | 46 // a request from WebCore for permissions. |
| 47 // The underlying MIDIAccess object is guaranteed to be valid until the invocati
on of | 47 // The underlying MIDIAccess object is guaranteed to be valid until the invocati
on of |
| 48 // either WebMIDIPermissionRequest::setIsAllowed (request complete) or | 48 // either WebMIDIPermissionRequest::setIsAllowed (request complete) or |
| 49 // WebMIDIClient::cancelPermissionRequest (request canceled). | 49 // WebMIDIClient::cancelPermissionRequest (request canceled). |
| 50 class WebMIDIPermissionRequest { | 50 class WebMIDIPermissionRequest { |
| 51 public: | 51 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 73 inline bool operator==(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) | 73 inline bool operator==(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) |
| 74 { | 74 { |
| 75 return a.equals(b); | 75 return a.equals(b); |
| 76 } | 76 } |
| 77 | 77 |
| 78 inline bool operator!=(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) | 78 inline bool operator!=(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) |
| 79 { | 79 { |
| 80 return !(a == b); | 80 return !(a == b); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace WebKit | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // WebMIDIPermissionRequest_h | 85 #endif // WebMIDIPermissionRequest_h |
| OLD | NEW |