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

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

Issue 3750001: base: Move SplitString functions into the base namespace and update the callers. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: brett review, reverted changes in o3d due to it's using an old base revision Created 10 years, 2 months 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
« no previous file with comments | « webkit/glue/plugins/plugin_list_win.cc ('k') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Flash only requests windowless plugins if we return a Mozilla user 282 // Flash only requests windowless plugins if we return a Mozilla user
283 // agent. 283 // agent.
284 instance_->set_use_mozilla_user_agent(); 284 instance_->set_use_mozilla_user_agent();
285 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE; 285 quirks_ |= PLUGIN_QUIRK_THROTTLE_WM_USER_PLUS_ONE;
286 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR; 286 quirks_ |= PLUGIN_QUIRK_PATCH_SETCURSOR;
287 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS; 287 quirks_ |= PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS;
288 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE; 288 quirks_ |= PLUGIN_QUIRK_HANDLE_MOUSE_CAPTURE;
289 } else if (filename == kAcrobatReaderPlugin) { 289 } else if (filename == kAcrobatReaderPlugin) {
290 // Check for the version number above or equal 9. 290 // Check for the version number above or equal 9.
291 std::vector<std::wstring> version; 291 std::vector<std::wstring> version;
292 SplitString(plugin_info.version, L'.', &version); 292 base::SplitString(plugin_info.version, L'.', &version);
293 if (version.size() > 0) { 293 if (version.size() > 0) {
294 int major; 294 int major;
295 base::StringToInt(version[0], &major); 295 base::StringToInt(version[0], &major);
296 if (major >= 9) { 296 if (major >= 9) {
297 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD; 297 quirks_ |= PLUGIN_QUIRK_DIE_AFTER_UNLOAD;
298 298
299 // 9.2 needs this. 299 // 9.2 needs this.
300 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE; 300 quirks_ |= PLUGIN_QUIRK_SETWINDOW_TWICE;
301 } 301 }
302 } 302 }
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 case WM_LBUTTONUP: 1400 case WM_LBUTTONUP:
1401 case WM_MBUTTONUP: 1401 case WM_MBUTTONUP:
1402 case WM_RBUTTONUP: 1402 case WM_RBUTTONUP:
1403 ::ReleaseCapture(); 1403 ::ReleaseCapture();
1404 break; 1404 break;
1405 1405
1406 default: 1406 default:
1407 break; 1407 break;
1408 } 1408 }
1409 } 1409 }
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_list_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698