Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl.cc

Issue 337036: Fix painting issue in Reader 9.2. ... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 5 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; 207 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE;
208 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; 208 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR;
209 } else if (filename == "nppdf32.dll") { 209 } else if (filename == "nppdf32.dll") {
210 // Check for the version number above or equal 9. 210 // Check for the version number above or equal 9.
211 std::vector<std::wstring> version; 211 std::vector<std::wstring> version;
212 SplitString(plugin_info.version, L'.', &version); 212 SplitString(plugin_info.version, L'.', &version);
213 if (version.size() > 0) { 213 if (version.size() > 0) {
214 int major = static_cast<int>(StringToInt64(version[0])); 214 int major = static_cast<int>(StringToInt64(version[0]));
215 if (major >= 9) { 215 if (major >= 9) {
216 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD; 216 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD;
217 // 9.2 needs this.
218 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE;
217 } 219 }
218 } 220 }
219 quirks_ |= PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS; 221 quirks_ |= PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS;
220 } else if (plugin_info.name.find(L"Windows Media Player") != 222 } else if (plugin_info.name.find(L"Windows Media Player") !=
221 std::wstring::npos) { 223 std::wstring::npos) {
222 // Windows Media Player needs two NPP_SetWindow calls. 224 // Windows Media Player needs two NPP_SetWindow calls.
223 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE; 225 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE;
224 } else if (instance_->mime_type() == "audio/x-pn-realaudio-plugin" || 226 } else if (instance_->mime_type() == "audio/x-pn-realaudio-plugin" ||
225 filename == "nppl3260.dll") { 227 filename == "nppl3260.dll") {
226 quirks_ |= PLUGIN_QUIRK_DONT_CALL_WND_PROC_RECURSIVELY; 228 quirks_ |= PLUGIN_QUIRK_DONT_CALL_WND_PROC_RECURSIVELY;
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 1330
1329 // It is ok to pass NULL here to GetCursor as we are not looking for cursor 1331 // It is ok to pass NULL here to GetCursor as we are not looking for cursor
1330 // types defined by Webkit. 1332 // types defined by Webkit.
1331 HCURSOR previous_cursor = 1333 HCURSOR previous_cursor =
1332 g_current_plugin_instance->current_windowless_cursor_.GetCursor(NULL); 1334 g_current_plugin_instance->current_windowless_cursor_.GetCursor(NULL);
1333 1335
1334 g_current_plugin_instance->current_windowless_cursor_.InitFromExternalCursor( 1336 g_current_plugin_instance->current_windowless_cursor_.InitFromExternalCursor(
1335 cursor); 1337 cursor);
1336 return previous_cursor; 1338 return previous_cursor;
1337 } 1339 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698