blob: b85ddac62b1922fd0409639e7c66b6187292f391 [file] [log] [blame]
Winsonbe7607a2015-10-01 17:24:51 -07001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.systemui.recents.events.ui.dragndrop;
18
19import com.android.systemui.recents.events.EventBus;
20import com.android.systemui.recents.model.Task;
Winsoneca4ab62015-11-04 10:50:28 -080021import com.android.systemui.recents.views.DropTarget;
Winsonbe7607a2015-10-01 17:24:51 -070022
23/**
Winsoneca4ab62015-11-04 10:50:28 -080024 * This event is sent when a user drags in/out of a drop target.
Winsonbe7607a2015-10-01 17:24:51 -070025 */
Winsoneca4ab62015-11-04 10:50:28 -080026public class DragDropTargetChangedEvent extends EventBus.Event {
Winsonbe7607a2015-10-01 17:24:51 -070027
Winson3e874742016-01-07 10:08:17 -080028 // The task that is currently being dragged
Winsonbe7607a2015-10-01 17:24:51 -070029 public final Task task;
Winsoneca4ab62015-11-04 10:50:28 -080030 public final DropTarget dropTarget;
Winsonbe7607a2015-10-01 17:24:51 -070031
Winsoneca4ab62015-11-04 10:50:28 -080032 public DragDropTargetChangedEvent(Task task, DropTarget dropTarget) {
Winsonbe7607a2015-10-01 17:24:51 -070033 this.task = task;
Winsoneca4ab62015-11-04 10:50:28 -080034 this.dropTarget = dropTarget;
Winsonbe7607a2015-10-01 17:24:51 -070035 }
36}