Changeset 71178 in webkit
- Timestamp:
- Nov 2, 2010 3:28:05 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r71177 r71178 1 2010-11-02 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Implement NP_HasProperty for NPObjectProxy 6 https://bugs.webkit.org/show_bug.cgi?id=48876 7 8 Remove now passing test. 9 10 * platform/mac-wk2/Skipped: 11 1 12 2010-11-02 David Hyatt <hyatt@apple.com> 2 13 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r71126 r71178 1738 1738 plugins/update-widgets-crash.html 1739 1739 plugins/window-open.html 1740 plugins/npruntime/embed-property.html1741 1740 plugins/npruntime/enumerate.html 1742 1741 plugins/npruntime/evaluate.html -
trunk/WebKit2/ChangeLog
r71175 r71178 1 2010-11-02 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Implement NP_HasProperty for NPObjectProxy 6 https://bugs.webkit.org/show_bug.cgi?id=48876 7 8 * Shared/Plugins/NPObjectMessageReceiver.cpp: 9 (WebKit::NPObjectMessageReceiver::hasProperty): 10 Call The hasProperty callback function. 11 12 * Shared/Plugins/NPObjectMessageReceiver.messages.in: 13 Add HasProperty message. 14 15 * Shared/Plugins/NPObjectProxy.cpp: 16 (WebKit::NPObjectProxy::hasProperty): 17 Send the HasProperty message. 18 19 (WebKit::NPObjectProxy::NP_HasProperty): 20 Call hasProperty. 21 22 1 23 2010-11-02 Sam Weinig <sam@webkit.org> 2 24 -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.cpp
r71140 r71178 61 61 } 62 62 63 void NPObjectMessageReceiver::hasProperty(const NPIdentifierData& propertyNameData, bool& returnValue) 64 { 65 if (!m_npObject->_class->hasProperty) { 66 returnValue = false; 67 return; 68 } 69 70 returnValue = m_npObject->_class->hasProperty(m_npObject, propertyNameData.createNPIdentifier()); 71 } 72 63 73 void NPObjectMessageReceiver::getProperty(const NPIdentifierData& propertyNameData, bool& returnValue, NPVariantData& resultData) 64 74 { -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h
r71127 r71178 54 54 // Message handlers. 55 55 void deallocate(); 56 void hasProperty(const NPIdentifierData&, bool& returnValue); 56 57 void getProperty(const NPIdentifierData&, bool& returnValue, NPVariantData& resultData); 57 58 -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.messages.in
r71127 r71178 24 24 25 25 messages -> NPObjectMessageReceiver { 26 # Deallocate the NPObject.27 26 Deallocate() -> () 28 29 # Get the given property. 27 HasProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue) 30 28 GetProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue, WebKit::NPVariantData resultData) 31 29 } -
trunk/WebKit2/Shared/Plugins/NPObjectProxy.cpp
r71140 r71178 85 85 } 86 86 87 bool NPObjectProxy::hasProperty(NPIdentifier propertyName) 88 { 89 if (!m_npRemoteObjectMap) 90 return false; 91 92 NPIdentifierData propertyNameData = NPIdentifierData::fromNPIdentifier(propertyName); 93 94 bool returnValue = false; 95 96 if (!m_npRemoteObjectMap->connection()->sendSync(Messages::NPObjectMessageReceiver::HasProperty(propertyNameData), Messages::NPObjectMessageReceiver::HasProperty::Reply(returnValue), m_npObjectID)) 97 return false; 98 99 return returnValue; 100 } 101 87 102 bool NPObjectProxy::getProperty(NPIdentifier propertyName, NPVariant* result) 88 103 { … … 157 172 } 158 173 159 bool NPObjectProxy::NP_HasProperty(NPObject*, NPIdentifier propertyName) 160 { 161 notImplemented(); 162 return false; 174 bool NPObjectProxy::NP_HasProperty(NPObject* npObject, NPIdentifier propertyName) 175 { 176 return toNPObjectProxy(npObject)->hasProperty(propertyName); 163 177 } 164 178 -
trunk/WebKit2/Shared/Plugins/NPObjectProxy.h
r71140 r71178 58 58 void initialize(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID); 59 59 60 bool hasProperty(NPIdentifier propertyName); 60 61 bool getProperty(NPIdentifier propertyName, NPVariant* result); 61 62
Note: See TracChangeset
for help on using the changeset viewer.