summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher
diff options
context:
space:
mode:
authorMatt Garnes <matt@cyngn.com>2014-06-20 13:39:50 -0700
committerMatt Garnes <matt@cyngn.com>2014-07-15 12:02:49 -0700
commit4a65b0c3022357d2b14db196224931cc35f14417 (patch)
treea7cf6c311589d8430f0a50627d894815380ad7da /src/com/android/launcher
parent7a1a596b98941f7bda517e5c401086e57c9dff61 (diff)
downloadandroid_packages_apps_Trebuchet-4a65b0c3022357d2b14db196224931cc35f14417.tar.gz
android_packages_apps_Trebuchet-4a65b0c3022357d2b14db196224931cc35f14417.tar.bz2
android_packages_apps_Trebuchet-4a65b0c3022357d2b14db196224931cc35f14417.zip
Add support for CMHome (1/2)
Add permission for DashClock extensions. Change Trebuchet to allow viewing additional screen. Add setting that to configure Google Now / CMHome. Change-Id: I63286a2cce87455ed411bd4c77680200eec89be7
Diffstat (limited to 'src/com/android/launcher')
-rw-r--r--src/com/android/launcher/home/Home.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/com/android/launcher/home/Home.java b/src/com/android/launcher/home/Home.java
index 5dce71e86..e6fedc8db 100644
--- a/src/com/android/launcher/home/Home.java
+++ b/src/com/android/launcher/home/Home.java
@@ -65,7 +65,7 @@ public interface Home {
* </pre><br/>
* DO NOT MODIFY!
*/
- public static final String SIGNATURE = "5/A6Mxkz8gHHzzVf4qZR+hiSOAw=";
+ public static final String SIGNATURE = "sZFp8JclUBYdIw0QaJZDosZ8SWM=";
/**
* Defines the name of the metadata used to declared the full qualified Home stub class
@@ -98,6 +98,14 @@ public interface Home {
public static final int MODE_SEARCH_VOICE = 0x0001;
/**
+ * Invoked when creating the Home object to set
+ * a reference to the host Activity that will
+ * contain this instance.
+ * @param context The Activity Context of the host activity.
+ */
+ void setHostActivityContext(Context context);
+
+ /**
* Invoked the first time the <code>Home</code> app is created.<br/>
* This method should be used by implementors classes of this protocol to load the needed
* resources.
@@ -106,6 +114,13 @@ public interface Home {
void onStart(Context context);
/**
+ * Load and show the content of this home app if true,
+ * hide and remove providers if false.
+ * @param showContent Should content be shown
+ */
+ void setShowContent(boolean showContent);
+
+ /**
* Invoked when the <code>Home</code> app should be destroy.<br/>
* This method should be used by implementors classes of this protocol to unload all unneeded
* resources.