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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 BLINK_EXPORT WebMIDIPermissionRequest(const WebMIDIPermissionRequest& other) | 49 BLINK_EXPORT WebMIDIPermissionRequest(const WebMIDIPermissionRequest& other) |
50 { | 50 { |
51 assign(other); | 51 assign(other); |
52 } | 52 } |
53 | 53 |
54 ~WebMIDIPermissionRequest() | 54 ~WebMIDIPermissionRequest() |
55 { | 55 { |
56 reset(); | 56 reset(); |
57 } | 57 } |
58 | 58 |
59 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; | 59 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; |
60 BLINK_EXPORT void setIsAllowed(bool); | 60 BLINK_EXPORT void setIsAllowed(bool); |
61 | 61 |
62 BLINK_EXPORT bool equals(const WebMIDIPermissionRequest&) const; | 62 BLINK_EXPORT bool equals(const WebMIDIPermissionRequest&) const; |
63 | 63 |
64 #if BLINK_IMPLEMENTATION | 64 #if BLINK_IMPLEMENTATION |
65 explicit WebMIDIPermissionRequest(MIDIAccessInitializer*); | 65 explicit WebMIDIPermissionRequest(MIDIAccessInitializer*); |
66 | 66 |
67 MIDIAccessInitializer* midiAccessInitializer() const { return m_private.get(
); } | 67 MIDIAccessInitializer* midiAccessInitializer() const { return m_private.get(
); } |
68 #endif | 68 #endif |
69 | 69 |
(...skipping 10 matching lines...) Expand all Loading... |
80 } | 80 } |
81 | 81 |
82 inline bool operator!=(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) | 82 inline bool operator!=(const WebMIDIPermissionRequest& a, const WebMIDIPermissio
nRequest& b) |
83 { | 83 { |
84 return !(a == b); | 84 return !(a == b); |
85 } | 85 } |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // WebMIDIPermissionRequest_h | 89 #endif // WebMIDIPermissionRequest_h |
OLD | NEW |