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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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: |
52 WebMIDIPermissionRequest(const WebMIDIPermissionRequest& o) { assign(o); } | |
53 | |
52 WEBKIT_EXPORT WebSecurityOrigin securityOrigin() const; | 54 WEBKIT_EXPORT WebSecurityOrigin securityOrigin() const; |
53 WEBKIT_EXPORT void setIsAllowed(bool); | 55 WEBKIT_EXPORT void setIsAllowed(bool); |
54 | 56 |
57 WEBKIT_EXPORT void assign(const WebMIDIPermissionRequest&); | |
58 WEBKIT_EXPORT bool equals(const WebMIDIPermissionRequest&) const; | |
abarth-chromium
2013/07/12 23:00:34
You might want to add an inline operator== to call
Takashi Toyoshima
2013/07/14 08:33:29
I see. I added inline operator functions for == an
| |
59 | |
55 #if WEBKIT_IMPLEMENTATION | 60 #if WEBKIT_IMPLEMENTATION |
56 explicit WebMIDIPermissionRequest(const PassRefPtr<WebCore::MIDIAccess>&); | 61 explicit WebMIDIPermissionRequest(const PassRefPtr<WebCore::MIDIAccess>&); |
57 explicit WebMIDIPermissionRequest(WebCore::MIDIAccess*); | 62 explicit WebMIDIPermissionRequest(WebCore::MIDIAccess*); |
58 #endif | 63 #endif |
59 | 64 |
60 private: | 65 private: |
61 WebPrivatePtr<WebCore::MIDIAccess> m_private; | 66 WebPrivatePtr<WebCore::MIDIAccess> m_private; |
62 }; | 67 }; |
63 | 68 |
64 } // namespace WebKit | 69 } // namespace WebKit |
65 | 70 |
66 #endif // WebMIDIPermissionRequest_h | 71 #endif // WebMIDIPermissionRequest_h |
OLD | NEW |