18b1871d74137d7e36ba0fed5608772f51f62015bWinson/*
28b1871d74137d7e36ba0fed5608772f51f62015bWinson * Copyright (C) 2015 The Android Open Source Project
38b1871d74137d7e36ba0fed5608772f51f62015bWinson *
48b1871d74137d7e36ba0fed5608772f51f62015bWinson * Licensed under the Apache License, Version 2.0 (the "License");
58b1871d74137d7e36ba0fed5608772f51f62015bWinson * you may not use this file except in compliance with the License.
68b1871d74137d7e36ba0fed5608772f51f62015bWinson * You may obtain a copy of the License at
78b1871d74137d7e36ba0fed5608772f51f62015bWinson *
88b1871d74137d7e36ba0fed5608772f51f62015bWinson *      http://www.apache.org/licenses/LICENSE-2.0
98b1871d74137d7e36ba0fed5608772f51f62015bWinson *
108b1871d74137d7e36ba0fed5608772f51f62015bWinson * Unless required by applicable law or agreed to in writing, software
118b1871d74137d7e36ba0fed5608772f51f62015bWinson * distributed under the License is distributed on an "AS IS" BASIS,
128b1871d74137d7e36ba0fed5608772f51f62015bWinson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138b1871d74137d7e36ba0fed5608772f51f62015bWinson * See the License for the specific language governing permissions and
148b1871d74137d7e36ba0fed5608772f51f62015bWinson * limitations under the License.
158b1871d74137d7e36ba0fed5608772f51f62015bWinson */
168b1871d74137d7e36ba0fed5608772f51f62015bWinson
178b1871d74137d7e36ba0fed5608772f51f62015bWinsonpackage com.android.systemui.recents.events.ui;
188b1871d74137d7e36ba0fed5608772f51f62015bWinson
195500390a006f2bbea565068234774a36cea076c0Winsonimport android.util.MutableInt;
20c0d7058b14c24cd07912f5629c26b39b7b4673d5Winson
218b1871d74137d7e36ba0fed5608772f51f62015bWinsonimport com.android.systemui.recents.events.EventBus;
228b1871d74137d7e36ba0fed5608772f51f62015bWinson
238b1871d74137d7e36ba0fed5608772f51f62015bWinson/**
248b1871d74137d7e36ba0fed5608772f51f62015bWinson * This is sent whenever a new scroll gesture happens on a stack view.
258b1871d74137d7e36ba0fed5608772f51f62015bWinson */
265500390a006f2bbea565068234774a36cea076c0Winsonpublic class StackViewScrolledEvent extends EventBus.ReusableEvent {
278b1871d74137d7e36ba0fed5608772f51f62015bWinson
285500390a006f2bbea565068234774a36cea076c0Winson    public final MutableInt yMovement;
298b1871d74137d7e36ba0fed5608772f51f62015bWinson
305500390a006f2bbea565068234774a36cea076c0Winson    public StackViewScrolledEvent() {
315500390a006f2bbea565068234774a36cea076c0Winson        yMovement = new MutableInt(0);
325500390a006f2bbea565068234774a36cea076c0Winson    }
335500390a006f2bbea565068234774a36cea076c0Winson
345500390a006f2bbea565068234774a36cea076c0Winson    public void updateY(int y) {
355500390a006f2bbea565068234774a36cea076c0Winson        yMovement.value = y;
368b1871d74137d7e36ba0fed5608772f51f62015bWinson    }
378b1871d74137d7e36ba0fed5608772f51f62015bWinson}
38