+/*\r
+ * Copyright (C) 2006 The Android Open Source Project\r
+ * Copyright (C) 2011 Jake Wharton\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package com.actionbarsherlock.view;\r
+\r
+import android.content.Context;\r
+\r
+/**\r
+ * <p>Abstract base class for a top-level window look and behavior policy. An\r
+ * instance of this class should be used as the top-level view added to the\r
+ * window manager. It provides standard UI policies such as a background, title\r
+ * area, default key processing, etc.</p>\r
+ *\r
+ * <p>The only existing implementation of this abstract class is\r
+ * android.policy.PhoneWindow, which you should instantiate when needing a\r
+ * Window. Eventually that class will be refactored and a factory method added\r
+ * for creating Window instances without knowing about a particular\r
+ * implementation.</p>\r
+ */\r
+public abstract class Window extends android.view.Window {\r
+ public static final long FEATURE_ACTION_BAR = android.view.Window.FEATURE_ACTION_BAR;\r
+ public static final long FEATURE_ACTION_BAR_OVERLAY = android.view.Window.FEATURE_ACTION_BAR_OVERLAY;\r
+ public static final long FEATURE_ACTION_MODE_OVERLAY = android.view.Window.FEATURE_ACTION_MODE_OVERLAY;\r
+ public static final long FEATURE_NO_TITLE = android.view.Window.FEATURE_NO_TITLE;\r
+ public static final long FEATURE_PROGRESS = android.view.Window.FEATURE_PROGRESS;\r
+ public static final long FEATURE_INDETERMINATE_PROGRESS = android.view.Window.FEATURE_INDETERMINATE_PROGRESS;\r
+\r
+ /**\r
+ * Create a new instance for a context.\r
+ *\r
+ * @param context Context.\r
+ */\r
+ private Window(Context context) {\r
+ super(context);\r
+ }\r
+\r
+\r
+ public interface Callback {\r
+ /**\r
+ * Called when a panel's menu item has been selected by the user.\r
+ *\r
+ * @param featureId The panel that the menu is in.\r
+ * @param item The menu item that was selected.\r
+ *\r
+ * @return boolean Return true to finish processing of selection, or\r
+ * false to perform the normal menu handling (calling its\r
+ * Runnable or sending a Message to its target Handler).\r
+ */\r
+ public boolean onMenuItemSelected(int featureId, MenuItem item);\r
+ }\r
+}\r