equal
deleted
inserted
replaced
60 return false; |
60 return false; |
61 |
61 |
62 m_description = buf; |
62 m_description = buf; |
63 determineModuleVersionFromDescription(); |
63 determineModuleVersionFromDescription(); |
64 |
64 |
65 String s = gm(); |
65 String mimeDescription = gm(); |
|
66 setMIMEDescription(mimeDescription); |
|
67 m_infoIsFromCache = false; |
|
68 |
|
69 return true; |
|
70 } |
|
71 |
|
72 void PluginPackage::setMIMEDescription(const String& mimeDescription) |
|
73 { |
|
74 m_fullMIMEDescription = mimeDescription; |
|
75 |
66 Vector<String> types; |
76 Vector<String> types; |
67 s.split(UChar(';'), false, types); |
77 mimeDescription.split(UChar(';'), false, types); |
68 for (unsigned i = 0; i < types.size(); ++i) { |
78 for (unsigned i = 0; i < types.size(); ++i) { |
69 Vector<String> mime; |
79 Vector<String> mime; |
70 types[i].split(UChar(':'), true, mime); |
80 types[i].split(UChar(':'), true, mime); |
71 if (mime.size() > 0) { |
81 if (mime.size() > 0) { |
72 Vector<String> exts; |
82 Vector<String> exts; |
76 m_mimeToExtensions.add(mime[0], exts); |
86 m_mimeToExtensions.add(mime[0], exts); |
77 if (mime.size() > 2) |
87 if (mime.size() > 2) |
78 m_mimeToDescriptions.add(mime[0], mime[2]); |
88 m_mimeToDescriptions.add(mime[0], mime[2]); |
79 } |
89 } |
80 } |
90 } |
81 |
|
82 return true; |
|
83 } |
91 } |
84 |
92 |
85 static NPError staticPluginQuirkRequiresGtkToolKit_NPN_GetValue(NPP instance, NPNVariable variable, void* value) |
93 static NPError staticPluginQuirkRequiresGtkToolKit_NPN_GetValue(NPP instance, NPNVariable variable, void* value) |
86 { |
94 { |
87 if (variable == NPNVToolkit) { |
95 if (variable == NPNVToolkit) { |
168 |
176 |
169 uint16_t PluginPackage::NPVersion() const |
177 uint16_t PluginPackage::NPVersion() const |
170 { |
178 { |
171 return NP_VERSION_MINOR; |
179 return NP_VERSION_MINOR; |
172 } |
180 } |
|
181 |
173 } |
182 } |