mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 10:50:35 +00:00
de35e11712
--HG-- extra : rebase_source : 473a746b802fdc9ff10c4bdc7a95e4a13700f23a
86 lines
1.9 KiB
Java
86 lines
1.9 KiB
Java
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package org.mozilla.gecko;
|
|
|
|
import android.content.ComponentName;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.AttributeSet;
|
|
import android.view.KeyEvent;
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import android.view.SubMenu;
|
|
import android.view.View;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.LinearLayout.LayoutParams;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class GeckoSubMenu extends GeckoMenu
|
|
implements SubMenu {
|
|
private static final String LOGTAG = "GeckoSubMenu";
|
|
|
|
private Context mContext;
|
|
|
|
// MenuItem associated with this submenu.
|
|
private MenuItem mMenuItem;
|
|
|
|
public GeckoSubMenu(Context context, AttributeSet attrs) {
|
|
super(context, attrs);
|
|
mContext = context;
|
|
}
|
|
|
|
@Override
|
|
public void clearHeader() {
|
|
}
|
|
|
|
public SubMenu setMenuItem(MenuItem item) {
|
|
mMenuItem = item;
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public MenuItem getItem() {
|
|
return mMenuItem;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setHeaderIcon(Drawable icon) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setHeaderIcon(int iconRes) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setHeaderTitle(CharSequence title) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setHeaderTitle(int titleRes) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setHeaderView(View view) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setIcon(Drawable icon) {
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public SubMenu setIcon(int iconRes) {
|
|
return this;
|
|
}
|
|
}
|