blob: e8ca61fb31458d3018fe1ca92dd7278d86923101 [file] [log] [blame]
Joe Onorato93839052009-08-06 20:34:32 -07001/*
2 * Copyright (C) 2008 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.launcher2;
18
Mike Cleron4a5c1e12009-11-03 10:17:05 -080019import java.util.ArrayList;
Joe Onorato93839052009-08-06 20:34:32 -070020
Daniel Sandler388f6792010-03-02 14:08:08 -050021public interface AllAppsView {
Daniel Sandlerc351eb82010-03-03 15:05:19 -050022 public interface Watcher {
23 public void zoomed(float zoom);
Romain Guy060b5c82010-03-04 10:07:38 -080024 }
Daniel Sandlerc351eb82010-03-03 15:05:19 -050025
Winson Chung785d2eb2011-04-14 16:08:02 -070026 public void setup(Launcher launcher, DragController dragController);
Joe Onoratofb0ca672009-09-14 17:55:46 -040027
Daniel Sandler388f6792010-03-02 14:08:08 -050028 public void zoom(float zoom, boolean animate);
Joe Onoratobcbeab82009-10-01 21:45:43 -070029
Daniel Sandler388f6792010-03-02 14:08:08 -050030 public boolean isVisible();
Joe Onoratoeb8325a2009-11-08 13:20:30 -050031
Patrick Dubroyff5f0402010-07-26 15:23:26 -070032 public boolean isAnimating();
Joe Onoratoeb8325a2009-11-08 13:20:30 -050033
Daniel Sandler388f6792010-03-02 14:08:08 -050034 public void setApps(ArrayList<ApplicationInfo> list);
Joe Onoratofb0ca672009-09-14 17:55:46 -040035
Daniel Sandler388f6792010-03-02 14:08:08 -050036 public void addApps(ArrayList<ApplicationInfo> list);
Joe Onorato6665c0f2009-09-02 15:27:24 -070037
Daniel Sandler388f6792010-03-02 14:08:08 -050038 public void removeApps(ArrayList<ApplicationInfo> list);
Joe Onoratof7b0e012009-10-01 14:09:15 -070039
Joe Onorato64e6be72010-03-05 15:05:52 -050040 public void updateApps(ArrayList<ApplicationInfo> list);
Daniel Sandlerdca66122010-04-13 16:23:58 -040041
Winson Chung337cd9d2011-03-30 10:39:30 -070042 // Resets the AllApps page to the front
43 public void reset();
44
Daniel Sandler388f6792010-03-02 14:08:08 -050045 public void dumpState();
Daniel Sandlerdca66122010-04-13 16:23:58 -040046
Romain Guy13c2e7b2010-03-10 19:45:00 -080047 public void surrender();
Joe Onorato93839052009-08-06 20:34:32 -070048}