1/*
2 * Copyright (C) 2014 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
17
18package android.support.v7.widget;
19
20import android.graphics.drawable.Drawable;
21import android.os.Parcelable;
22import android.support.v7.view.menu.MenuPresenter;
23import android.util.SparseArray;
24import android.view.Menu;
25import android.view.Window;
26
27/**
28 * Implemented by the top-level decor layout for a window. DecorContentParent offers
29 * entry points for a number of title/window decor features.
30 *
31 * @hide
32 */
33public interface DecorContentParent {
34    void setWindowCallback(Window.Callback cb);
35    void setWindowTitle(CharSequence title);
36    CharSequence getTitle();
37    void initFeature(int windowFeature);
38    void setUiOptions(int uiOptions);
39    boolean hasIcon();
40    boolean hasLogo();
41    void setIcon(int resId);
42    void setIcon(Drawable d);
43    void setLogo(int resId);
44    boolean canShowOverflowMenu();
45    boolean isOverflowMenuShowing();
46    boolean isOverflowMenuShowPending();
47    boolean showOverflowMenu();
48    boolean hideOverflowMenu();
49    void setMenuPrepared();
50    void setMenu(Menu menu, MenuPresenter.Callback cb);
51    void saveToolbarHierarchyState(SparseArray<Parcelable> toolbarStates);
52    void restoreToolbarHierarchyState(SparseArray<Parcelable> toolbarStates);
53    void dismissPopups();
54
55}