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

Unified Diff: webkit/glue/plugins/pepper_event_conversion.cc

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/pepper_directory_reader.cc ('k') | webkit/glue/plugins/pepper_file_chooser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_event_conversion.cc
===================================================================
--- webkit/glue/plugins/pepper_event_conversion.cc (revision 65116)
+++ webkit/glue/plugins/pepper_event_conversion.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/utf_string_conversion_utils.h"
#include "ppapi/c/pp_input_event.h"
#include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
+#include "webkit/glue/plugins/pepper_common.h"
using WebKit::WebInputEvent;
using WebKit::WebKeyboardEvent;
@@ -142,7 +143,8 @@
result.u.wheel.delta_y = mouse_wheel_event.deltaY;
result.u.wheel.wheel_ticks_x = mouse_wheel_event.wheelTicksX;
result.u.wheel.wheel_ticks_y = mouse_wheel_event.wheelTicksY;
- result.u.wheel.scroll_by_page = !!mouse_wheel_event.scrollByPage;
+ result.u.wheel.scroll_by_page =
+ pepper::BoolToPPBool(!!mouse_wheel_event.scrollByPage);
pp_events->push_back(result);
}
« no previous file with comments | « webkit/glue/plugins/pepper_directory_reader.cc ('k') | webkit/glue/plugins/pepper_file_chooser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698