1929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta/*
2929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * Copyright (C) 2014 The Android Open Source Project
3929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta *
4929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * Licensed under the Apache License, Version 2.0 (the "License");
5929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * you may not use this file except in compliance with the License.
6929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * You may obtain a copy of the License at
7929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta *
8929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta *      http://www.apache.org/licenses/LICENSE-2.0
9929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta *
10929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * Unless required by applicable law or agreed to in writing, software
11929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * distributed under the License is distributed on an "AS IS" BASIS,
12929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * See the License for the specific language governing permissions and
14929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * limitations under the License.
15929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta */
16929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta
17929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Guptapackage com.android.internal.widget;
18929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta
19929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Guptaimport android.widget.ActionMenuPresenter;
20929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta
21929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta/**
22929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta * To access non public members of AbsActionBarView
23929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta */
24929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Guptapublic class ActionBarAccessor {
25929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta
26929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta    /**
27929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta     * Returns the {@link ActionMenuPresenter} associated with the {@link AbsActionBarView}
28929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta     */
29929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta    public static ActionMenuPresenter getActionMenuPresenter(AbsActionBarView view) {
30929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta        return view.mActionMenuPresenter;
31929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta    }
32929eea6bc1824bf98d244550c0984ecf8ea98811Deepanshu Gupta}
33