зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1191161 - p2 - Remove OptionalGeneratedParameter, which no longer has any meaning, r=jchen
This commit is contained in:
Родитель
a715087aff
Коммит
81c2c280e9
|
@ -41,7 +41,6 @@ import org.mozilla.gecko.mozglue.ContextUtils;
|
|||
import org.mozilla.gecko.mozglue.GeckoLoader;
|
||||
import org.mozilla.gecko.mozglue.JNITarget;
|
||||
import org.mozilla.gecko.mozglue.RobocopTarget;
|
||||
import org.mozilla.gecko.mozglue.generatorannotations.OptionalGeneratedParameter;
|
||||
import org.mozilla.gecko.mozglue.generatorannotations.WrapElementForJNI;
|
||||
import org.mozilla.gecko.overlays.ui.ShareDialog;
|
||||
import org.mozilla.gecko.prompts.PromptService;
|
||||
|
@ -1098,10 +1097,10 @@ public class GeckoAppShell
|
|||
@WrapElementForJNI
|
||||
public static boolean openUriExternal(String targetURI,
|
||||
String mimeType,
|
||||
@OptionalGeneratedParameter String packageName,
|
||||
@OptionalGeneratedParameter String className,
|
||||
@OptionalGeneratedParameter String action,
|
||||
@OptionalGeneratedParameter String title) {
|
||||
String packageName,
|
||||
String className,
|
||||
String action,
|
||||
String title) {
|
||||
final Context context = getContext();
|
||||
final Intent intent = getOpenURIIntent(context, targetURI,
|
||||
mimeType, action, title);
|
||||
|
|
|
@ -54,7 +54,6 @@ mgjar.sources += [
|
|||
'mozglue/ContextUtils.java',
|
||||
'mozglue/DirectBufferAllocator.java',
|
||||
'mozglue/GeckoLoader.java',
|
||||
'mozglue/generatorannotations/OptionalGeneratedParameter.java',
|
||||
'mozglue/generatorannotations/WrapElementForJNI.java',
|
||||
'mozglue/JNIObject.java',
|
||||
'mozglue/JNITarget.java',
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
/* 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.mozglue.generatorannotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Used to annotate parameters which are optional on the C++ side of the bridge. The annotation is
|
||||
* used by the annotation processor to generate the appropriate C++ headers so calls into the Java
|
||||
* method all have the optional params set to the default value.
|
||||
* The default values are zero for numerical types, false for booleans, "" for strings, and null
|
||||
* for all other reference types.
|
||||
*/
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface OptionalGeneratedParameter {}
|
Загрузка…
Ссылка в новой задаче