Bug 781900 - Move site preferences dialog to urlbar context menu. r=mfinkle

This commit is contained in:
Wes Johnston 2012-08-20 10:28:36 -07:00
parent d186aadf93
commit f23310a06d
12 changed files with 10 additions and 21 deletions

View File

@ -769,9 +769,6 @@ abstract public class BrowserApp extends GeckoApp
intent = new Intent(this, GeckoPreferences.class);
startActivity(intent);
return true;
case R.id.site_settings:
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("Permissions:Get", null));
return true;
case R.id.addons:
loadUrlInTab("about:addons");
return true;

View File

@ -2724,6 +2724,10 @@ abstract public class GeckoApp
}
return true;
}
case R.id.site_settings: {
GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("Permissions:Get", null));
return true;
}
case R.id.paste: {
String text = GeckoAppShell.getClipboardText();
if (text != null && !TextUtils.isEmpty(text)) {

View File

@ -635,7 +635,6 @@ RES_DRAWABLE_MDPI_V11 = \
res/drawable-mdpi-v11/ic_menu_back.png \
res/drawable-mdpi-v11/ic_menu_bookmark_add.png \
res/drawable-mdpi-v11/ic_menu_bookmark_remove.png \
res/drawable-mdpi-v11/ic_menu_clear_site_settings.png \
res/drawable-mdpi-v11/ic_menu_desktop_mode.png \
res/drawable-mdpi-v11/ic_menu_find_in_page.png \
res/drawable-mdpi-v11/ic_menu_forward.png \
@ -664,7 +663,6 @@ RES_DRAWABLE_HDPI_V11 = \
res/drawable-hdpi-v11/ic_menu_back.png \
res/drawable-hdpi-v11/ic_menu_bookmark_add.png \
res/drawable-hdpi-v11/ic_menu_bookmark_remove.png \
res/drawable-hdpi-v11/ic_menu_clear_site_settings.png \
res/drawable-hdpi-v11/ic_menu_desktop_mode.png \
res/drawable-hdpi-v11/ic_menu_find_in_page.png \
res/drawable-hdpi-v11/ic_menu_forward.png \
@ -693,7 +691,6 @@ RES_DRAWABLE_XHDPI_V11 = \
res/drawable-xhdpi-v11/ic_menu_back.png \
res/drawable-xhdpi-v11/ic_menu_bookmark_add.png \
res/drawable-xhdpi-v11/ic_menu_bookmark_remove.png \
res/drawable-xhdpi-v11/ic_menu_clear_site_settings.png \
res/drawable-xhdpi-v11/ic_menu_desktop_mode.png \
res/drawable-xhdpi-v11/ic_menu_find_in_page.png \
res/drawable-xhdpi-v11/ic_menu_forward.png \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -40,10 +40,6 @@
gecko:icon="@drawable/ic_menu_desktop_mode"
gecko:title="@string/desktop_mode"
gecko:checkable="true" />
<item gecko:id="@+id/site_settings"
gecko:icon="@drawable/ic_menu_clear_site_settings"
gecko:title="@string/site_settings_title" />
<item gecko:id="@+id/addons"
gecko:title="@string/addons"/>

View File

@ -39,10 +39,6 @@
gecko:title="@string/desktop_mode"
gecko:checkable="true" />
<item gecko:id="@+id/site_settings"
gecko:icon="@drawable/ic_menu_clear_site_settings"
gecko:title="@string/site_settings_title" />
<item gecko:id="@+id/addons"
gecko:title="@string/addons"/>

View File

@ -18,6 +18,9 @@
<item gecko:id="@+id/copyurl"
gecko:title="@string/contextmenu_copyurl"/>
<item gecko:id="@+id/site_settings"
gecko:title="@string/site_settings_title" />
<item gecko:id="@+id/add_to_launcher"
gecko:title="@string/contextmenu_add_to_launcher"/>

View File

@ -41,10 +41,6 @@
gecko:icon="@drawable/ic_menu_desktop_mode"
gecko:title="@string/desktop_mode"
gecko:checkable="true" />
<item gecko:id="@+id/site_settings"
gecko:icon="@drawable/ic_menu_clear_site_settings"
gecko:title="@string/site_settings_title" />
<item gecko:id="@+id/addons"
gecko:title="@string/addons"/>

View File

@ -36,9 +36,6 @@
android:title="@string/desktop_mode"
android:checkable="true" />
<item android:id="@+id/site_settings"
android:title="@string/site_settings_title" />
<item android:id="@+id/addons"
android:title="@string/addons"/>

View File

@ -17,6 +17,9 @@
<item android:id="@+id/copyurl"
android:title="@string/contextmenu_copyurl"/>
<item android:id="@+id/site_settings"
android:title="@string/site_settings_title" />
<item android:id="@+id/add_to_launcher"
android:title="@string/contextmenu_add_to_launcher"/>