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

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

Issue 3404027: webkit: Append base:: in the StringPrintf calls. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: 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
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
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/iat_patch.h" 12 #include "base/iat_patch.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/registry.h" 15 #include "base/registry.h"
16 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
17 #include "base/stats_counters.h" 17 #include "base/stats_counters.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/string_split.h" 19 #include "base/string_split.h"
20 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "base/stringprintf.h"
21 #include "base/win_util.h" 22 #include "base/win_util.h"
22 #include "skia/ext/platform_canvas.h" 23 #include "skia/ext/platform_canvas.h"
23 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 24 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
24 #include "webkit/glue/plugins/default_plugin_shared.h" 25 #include "webkit/glue/plugins/default_plugin_shared.h"
25 #include "webkit/glue/plugins/plugin_constants_win.h" 26 #include "webkit/glue/plugins/plugin_constants_win.h"
26 #include "webkit/glue/plugins/plugin_instance.h" 27 #include "webkit/glue/plugins/plugin_instance.h"
27 #include "webkit/glue/plugins/plugin_lib.h" 28 #include "webkit/glue/plugins/plugin_lib.h"
28 #include "webkit/glue/plugins/plugin_list.h" 29 #include "webkit/glue/plugins/plugin_list.h"
29 #include "webkit/glue/plugins/plugin_stream_url.h" 30 #include "webkit/glue/plugins/plugin_stream_url.h"
30 #include "webkit/glue/plugins/webplugin.h" 31 #include "webkit/glue/plugins/webplugin.h"
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 // the one translated with ToUnicode(). (Since a plug-in is running on a 1189 // the one translated with ToUnicode(). (Since a plug-in is running on a
1189 // separate process from the browser process, we need to syncronize it 1190 // separate process from the browser process, we need to syncronize it
1190 // manually.) 1191 // manually.)
1191 if (np_event.event == WM_CHAR) { 1192 if (np_event.event == WM_CHAR) {
1192 if (!keyboard_layout_) 1193 if (!keyboard_layout_)
1193 keyboard_layout_ = GetKeyboardLayout(GetCurrentThreadId()); 1194 keyboard_layout_ = GetKeyboardLayout(GetCurrentThreadId());
1194 if (!parent_thread_id_) 1195 if (!parent_thread_id_)
1195 parent_thread_id_ = GetWindowThreadProcessId(parent_, NULL); 1196 parent_thread_id_ = GetWindowThreadProcessId(parent_, NULL);
1196 HKL parent_layout = GetKeyboardLayout(parent_thread_id_); 1197 HKL parent_layout = GetKeyboardLayout(parent_thread_id_);
1197 if (keyboard_layout_ != parent_layout) { 1198 if (keyboard_layout_ != parent_layout) {
1198 std::wstring layout_name(StringPrintf(L"%08x", parent_layout)); 1199 std::wstring layout_name(base::StringPrintf(L"%08x", parent_layout));
1199 LoadKeyboardLayout(layout_name.c_str(), KLF_ACTIVATE); 1200 LoadKeyboardLayout(layout_name.c_str(), KLF_ACTIVATE);
1200 keyboard_layout_ = parent_layout; 1201 keyboard_layout_ = parent_layout;
1201 } 1202 }
1202 } 1203 }
1203 1204
1204 if (ShouldTrackEventForModalLoops(&np_event)) { 1205 if (ShouldTrackEventForModalLoops(&np_event)) {
1205 // A windowless plugin can enter a modal loop in a NPP_HandleEvent call. 1206 // A windowless plugin can enter a modal loop in a NPP_HandleEvent call.
1206 // For e.g. Flash puts up a context menu when we right click on the 1207 // For e.g. Flash puts up a context menu when we right click on the
1207 // windowless plugin area. We detect this by setting up a message filter 1208 // windowless plugin area. We detect this by setting up a message filter
1208 // hook pror to calling NPP_HandleEvent on the plugin and unhook on 1209 // hook pror to calling NPP_HandleEvent on the plugin and unhook on
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 case WM_LBUTTONUP: 1397 case WM_LBUTTONUP:
1397 case WM_MBUTTONUP: 1398 case WM_MBUTTONUP:
1398 case WM_RBUTTONUP: 1399 case WM_RBUTTONUP:
1399 ::ReleaseCapture(); 1400 ::ReleaseCapture();
1400 break; 1401 break;
1401 1402
1402 default: 1403 default:
1403 break; 1404 break;
1404 } 1405 }
1405 } 1406 }
OLDNEW
« no previous file with comments | « webkit/glue/plugins/test/plugin_arguments_test.cc ('k') | webkit/glue/plugins/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698