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

Unified Diff: ash/system/web_notification/web_notification_view.cc

Issue 11145005: Migrate ui::Transform to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Hopefully should work this time Created 8 years, 2 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 | « ash/system/tray/tray_item_view.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/web_notification_view.cc
diff --git a/ash/system/web_notification/web_notification_view.cc b/ash/system/web_notification/web_notification_view.cc
index 5919112b767ae196415f2b241b8364c4b0cdbf1e..faa3714493e2f475d8cb74bc4f69c88ee5884303 100644
--- a/ash/system/web_notification/web_notification_view.cc
+++ b/ash/system/web_notification/web_notification_view.cc
@@ -245,7 +245,7 @@ ui::EventResult WebNotificationView::OnGestureEvent(
// The scroll-update events include the incremental scroll amount.
gesture_scroll_amount_ += event.details().scroll_x();
- ui::Transform transform;
+ gfx::Transform transform;
transform.SetTranslateX(gesture_scroll_amount_);
layer()->SetTransform(transform);
layer()->SetOpacity(
@@ -298,7 +298,7 @@ void WebNotificationView::RestoreVisualState() {
ui::ScopedLayerAnimationSettings settings(layer()->GetAnimator());
settings.SetTransitionDuration(
base::TimeDelta::FromMilliseconds(kSwipeRestoreDurationMS));
- layer()->SetTransform(ui::Transform());
+ layer()->SetTransform(gfx::Transform());
layer()->SetOpacity(1.f);
}
@@ -310,7 +310,7 @@ void WebNotificationView::SlideOutAndClose(SlideDirection direction) {
base::TimeDelta::FromMilliseconds(swipe_out_duration));
settings.AddObserver(this);
- ui::Transform transform;
+ gfx::Transform transform;
transform.SetTranslateX(direction == SLIDE_LEFT ? -width() : width());
layer()->SetTransform(transform);
layer()->SetOpacity(0.f);
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698