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

Unified Diff: webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc

Issue 12648005: cc: Chromify the LayerTreeHostImpl class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compl Created 7 years, 9 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 | « webkit/compositor_bindings/web_to_ccinput_handler_adapter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
diff --git a/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc b/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
index 2142e1363ed44b554239a04d3b69da6ea3b0161c..581e515766522638c9f8317049c09bd6830a006b 100644
--- a/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
+++ b/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
@@ -43,23 +43,23 @@ class WebToCCInputHandlerAdapter::ClientAdapter : public WebInputHandlerClient {
virtual ScrollStatus scrollBegin(WebPoint point, ScrollInputType type) {
return static_cast<WebInputHandlerClient::ScrollStatus>(
- client_->scrollBegin(
+ client_->ScrollBegin(
point, static_cast<cc::InputHandlerClient::ScrollInputType>(type)));
}
virtual bool scrollByIfPossible(WebPoint point, WebFloatSize delta) {
- return client_->scrollBy(point, delta);
+ return client_->ScrollBy(point, delta);
}
- virtual void scrollEnd() { client_->scrollEnd(); }
+ virtual void scrollEnd() { client_->ScrollEnd(); }
- virtual void pinchGestureBegin() { client_->pinchGestureBegin(); }
+ virtual void pinchGestureBegin() { client_->PinchGestureBegin(); }
virtual void pinchGestureUpdate(float magnify_delta, WebPoint anchor) {
- client_->pinchGestureUpdate(magnify_delta, anchor);
+ client_->PinchGestureUpdate(magnify_delta, anchor);
}
- virtual void pinchGestureEnd() { client_->pinchGestureEnd(); }
+ virtual void pinchGestureEnd() { client_->PinchGestureEnd(); }
virtual void startPageScaleAnimation(WebSize target_position,
bool anchor_point,
@@ -70,31 +70,31 @@ class WebToCCInputHandlerAdapter::ClientAdapter : public WebInputHandlerClient {
start_time_sec * base::Time::kMicrosecondsPerSecond);
base::TimeDelta duration = base::TimeDelta::FromMicroseconds(
duration_sec * base::Time::kMicrosecondsPerSecond);
- client_->startPageScaleAnimation(
+ client_->StartPageScaleAnimation(
target_position, anchor_point, page_scale, start_time, duration);
}
- virtual void scheduleAnimation() { client_->scheduleAnimation(); }
+ virtual void scheduleAnimation() { client_->ScheduleAnimation(); }
virtual bool haveTouchEventHandlersAt(WebPoint point) {
- return client_->haveTouchEventHandlersAt(point);
+ return client_->HaveTouchEventHandlersAt(point);
}
private:
cc::InputHandlerClient* client_;
};
-void WebToCCInputHandlerAdapter::bindToClient(cc::InputHandlerClient* client) {
+void WebToCCInputHandlerAdapter::BindToClient(cc::InputHandlerClient* client) {
client_adapter_.reset(new ClientAdapter(client));
handler_->bindToClient(client_adapter_.get());
}
-void WebToCCInputHandlerAdapter::animate(base::TimeTicks time) {
+void WebToCCInputHandlerAdapter::Animate(base::TimeTicks time) {
double monotonic_time_seconds = (time - base::TimeTicks()).InSecondsF();
handler_->animate(monotonic_time_seconds);
}
-void WebToCCInputHandlerAdapter::mainThreadHasStoppedFlinging() {
+void WebToCCInputHandlerAdapter::MainThreadHasStoppedFlinging() {
handler_->mainThreadHasStoppedFlinging();
}
« no previous file with comments | « webkit/compositor_bindings/web_to_ccinput_handler_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698