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

Side by Side Diff: content/renderer/pepper/event_conversion.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/pepper/event_conversion.h" 5 #include "content/renderer/pepper/event_conversion.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/i18n/char_iterator.h" 10 #include "base/i18n/char_iterator.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/strings/utf_string_conversion_utils.h" 15 #include "base/strings/utf_string_conversion_utils.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "content/renderer/pepper/common.h" 17 #include "content/renderer/pepper/common.h"
18 #include "content/renderer/pepper/usb_key_code_conversion.h" 18 #include "content/renderer/pepper/usb_key_code_conversion.h"
19 #include "ppapi/c/pp_input_event.h" 19 #include "ppapi/c/pp_input_event.h"
20 #include "ppapi/shared_impl/ppb_input_event_shared.h" 20 #include "ppapi/shared_impl/ppb_input_event_shared.h"
21 #include "ppapi/shared_impl/time_conversion.h" 21 #include "ppapi/shared_impl/time_conversion.h"
22 #include "third_party/WebKit/public/platform/WebGamepads.h" 22 #include "third_party/WebKit/public/platform/WebGamepads.h"
23 #include "third_party/WebKit/public/platform/WebString.h" 23 #include "third_party/WebKit/public/platform/WebString.h"
24 #include "third_party/WebKit/public/web/WebInputEvent.h" 24 #include "third_party/WebKit/public/web/WebInputEvent.h"
25 25
26 using ppapi::EventTimeToPPTimeTicks; 26 using ppapi::EventTimeToPPTimeTicks;
27 using ppapi::InputEventData; 27 using ppapi::InputEventData;
28 using ppapi::PPTimeTicksToEventTime; 28 using ppapi::PPTimeTicksToEventTime;
29 using WebKit::WebInputEvent; 29 using blink::WebInputEvent;
30 using WebKit::WebKeyboardEvent; 30 using blink::WebKeyboardEvent;
31 using WebKit::WebMouseEvent; 31 using blink::WebMouseEvent;
32 using WebKit::WebMouseWheelEvent; 32 using blink::WebMouseWheelEvent;
33 using WebKit::WebString; 33 using blink::WebString;
34 using WebKit::WebTouchEvent; 34 using blink::WebTouchEvent;
35 using WebKit::WebTouchPoint; 35 using blink::WebTouchPoint;
36 using WebKit::WebUChar; 36 using blink::WebUChar;
37 37
38 namespace content { 38 namespace content {
39 39
40 namespace { 40 namespace {
41 41
42 // Verify the modifier flags WebKit uses match the Pepper ones. If these start 42 // Verify the modifier flags WebKit uses match the Pepper ones. If these start
43 // not matching, we'll need to write conversion code to preserve the Pepper 43 // not matching, we'll need to write conversion code to preserve the Pepper
44 // values (since plugins will be depending on them). 44 // values (since plugins will be depending on them).
45 COMPILE_ASSERT(static_cast<int>(PP_INPUTEVENT_MODIFIER_SHIFTKEY) == 45 COMPILE_ASSERT(static_cast<int>(PP_INPUTEVENT_MODIFIER_SHIFTKEY) ==
46 static_cast<int>(WebInputEvent::ShiftKey), 46 static_cast<int>(WebInputEvent::ShiftKey),
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 case WebInputEvent::TouchStart: 725 case WebInputEvent::TouchStart:
726 return PP_INPUTEVENT_CLASS_TOUCH; 726 return PP_INPUTEVENT_CLASS_TOUCH;
727 case WebInputEvent::Undefined: 727 case WebInputEvent::Undefined:
728 default: 728 default:
729 NOTREACHED(); 729 NOTREACHED();
730 return PP_InputEvent_Class(0); 730 return PP_InputEvent_Class(0);
731 } 731 }
732 } 732 }
733 733
734 } // namespace content 734 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/event_conversion.h ('k') | content/renderer/pepper/fullscreen_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698