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

Unified Diff: ppapi/shared_impl/ppb_input_event_shared.cc

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_image_data_shared.cc ('k') | ppapi/shared_impl/ppb_network_list_private_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_input_event_shared.cc
diff --git a/ppapi/shared_impl/ppb_input_event_shared.cc b/ppapi/shared_impl/ppb_input_event_shared.cc
index 0d7ebb9e15ac0e5cea0b7f1c2f36775eb872d6e7..4cd918d161851b9d782a5821f70b893de6ddb79d 100644
--- a/ppapi/shared_impl/ppb_input_event_shared.cc
+++ b/ppapi/shared_impl/ppb_input_event_shared.cc
@@ -111,7 +111,7 @@ uint32_t PPB_InputEvent_Shared::GetUsbKeyCode() {
uint32_t PPB_InputEvent_Shared::GetIMESegmentNumber() {
if (data_.composition_segment_offsets.empty())
return 0;
- return data_.composition_segment_offsets.size() - 1;
+ return static_cast<uint32_t>(data_.composition_segment_offsets.size() - 1);
}
uint32_t PPB_InputEvent_Shared::GetIMESegmentOffset(uint32_t index) {
@@ -151,11 +151,11 @@ void PPB_InputEvent_Shared::AddTouchPoint(PP_TouchListType list,
uint32_t PPB_InputEvent_Shared::GetTouchCount(PP_TouchListType list) {
switch (list) {
case PP_TOUCHLIST_TYPE_TOUCHES:
- return data_.touches.size();
+ return static_cast<uint32_t>(data_.touches.size());
case PP_TOUCHLIST_TYPE_CHANGEDTOUCHES:
- return data_.changed_touches.size();
+ return static_cast<uint32_t>(data_.changed_touches.size());
case PP_TOUCHLIST_TYPE_TARGETTOUCHES:
- return data_.target_touches.size();
+ return static_cast<uint32_t>(data_.target_touches.size());
}
return 0;
« no previous file with comments | « ppapi/shared_impl/ppb_image_data_shared.cc ('k') | ppapi/shared_impl/ppb_network_list_private_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698