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

Unified Diff: content/renderer/pepper/event_conversion.cc

Issue 2173073003: Move WebInputEvent into public/platform from public/web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build failure with android Created 4 years, 5 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
Index: content/renderer/pepper/event_conversion.cc
diff --git a/content/renderer/pepper/event_conversion.cc b/content/renderer/pepper/event_conversion.cc
index 142de441f7b0864c8b34772c6386d67871cc2d3f..f6b4cdc1a8a35ad056eb8eecd6aac057eb16488b 100644
--- a/content/renderer/pepper/event_conversion.cc
+++ b/content/renderer/pepper/event_conversion.cc
@@ -290,7 +290,7 @@ bool HasTouchPointWithId(const WebTouchPoint* web_touches,
uint32_t web_touches_length,
uint32_t id) {
// Note: A brute force search to find the (potentially) existing touch point
- // is cheap given the small bound on |WebTouchEvent::touchesLengthCap|.
+ // is cheap given the small bound on |WebTouchEvent::kTouchesLengthCap|.
for (uint32_t i = 0; i < web_touches_length; ++i) {
if (web_touches[i].id == static_cast<int>(id))
return true;
@@ -305,10 +305,10 @@ void SetWebTouchPointsIfNotYetSet(const std::vector<PP_TouchPoint>& pp_touches,
const uint32_t initial_web_touches_length = *web_touches_length;
const uint32_t touches_length =
std::min(static_cast<uint32_t>(pp_touches.size()),
- static_cast<uint32_t>(WebTouchEvent::touchesLengthCap));
+ static_cast<uint32_t>(WebTouchEvent::kTouchesLengthCap));
for (uint32_t i = 0; i < touches_length; ++i) {
const uint32_t touch_index = *web_touches_length;
- if (touch_index >= static_cast<uint32_t>(WebTouchEvent::touchesLengthCap))
+ if (touch_index >= static_cast<uint32_t>(WebTouchEvent::kTouchesLengthCap))
return;
const PP_TouchPoint& pp_pt = pp_touches[i];
« no previous file with comments | « content/common/input/synthetic_web_input_event_builders.cc ('k') | third_party/WebKit/Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698