GitHub PullRequestReviewCommentEvent at 2014-02-10 07:56:15
Repository: crosswalk
Actor: kurli
Payload: {"comment":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/comments/9576031","id":9576031,"diff_hunk":"@@ -0,0 +1,43 @@\n+// Copyright (c) 2014 Intel Corporation. All rights reserved.\n+// Use of this source code is governed by a BSD-style license that can be\n+// found in the LICENSE file.\n+\n+package org.xwalk.runtime.extension.api.launchscreen;\n+\n+import android.content.Intent;\n+import android.util.Log;\n+\n+import org.xwalk.core.XWalkLaunchScreenManager;\n+import org.xwalk.runtime.extension.XWalkExtension;\n+import org.xwalk.runtime.extension.XWalkExtensionContext;\n+\n+/**\n+ * A XWalk extension for LaunchScreen API implementation on Android.\n+ */\n+public class LaunchScreenExtension extends XWalkExtension {\n+    public final static String JS_API_PATH = \"jsapi/launch_screen_api.js\";\n+    public final static String NAME = \"xwalk.launchscreen\";\n+    public final static String[] JS_ENTRY_POINTS = {\n+        \"window.screen.show\"\n+    };\n+\n+    // Command messages:\n+    private final static String CMD_HIDE_LAUNCH_SCREEN = \"hideLaunchScreen\";\n+\n+    public LaunchScreenExtension(String name, String jsApi, String[] entryPoints, XWalkExtensionContext context) {\n+        super(name, jsApi, entryPoints, context);\n+    }\n+\n+    @Override\n+    public void onMessage(int instanceId, String message) {\n+        if (message.equals(CMD_HIDE_LAUNCH_SCREEN)) {\n+            hideLaunchScreen();\n+        }\n+    }\n+\n+    private void hideLaunchScreen() {\n+        String filterStr = XWalkLaunchScreenManager.getHideLaunchScreenFilterStr();\n+        Intent intent = new Intent(filterStr);\n+        mExtensionContext.getActivity().sendBroadcast(intent);","path":"runtime/android/java/src/org/xwalk/runtime/extension/api/launchscreen/LaunchScreenExtension.java","position":41,"original_position":41,"commit_id":"07461a5aea5a05100bcfb595327d292287eb9fed","original_commit_id":"07461a5aea5a05100bcfb595327d292287eb9fed","user":{"login":"kurli","id":3134528,"avatar_url":"https://gravatar.com/avatar/1c2fdfb6619635b3e93fea2de2822218?d=https%3A%2F%2Fidenticons.github.com%2Fb0062bfd39f42849508ce30d85506007.png&r=x","gravatar_id":"1c2fdfb6619635b3e93fea2de2822218","url":"https://api.github.com/users/kurli","html_url":"https://github.com/kurli","followers_url":"https://api.github.com/users/kurli/followers","following_url":"https://api.github.com/users/kurli/following{/other_user}","gists_url":"https://api.github.com/users/kurli/gists{/gist_id}","starred_url":"https://api.github.com/users/kurli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurli/subscriptions","organizations_url":"https://api.github.com/users/kurli/orgs","repos_url":"https://api.github.com/users/kurli/repos","events_url":"https://api.github.com/users/kurli/events{/privacy}","received_events_url":"https://api.github.com/users/kurli/received_events","type":"User","site_admin":false},"body":"Yes, no public API yet.","created_at":"2014-02-10T07:56:15Z","updated_at":"2014-02-10T07:56:15Z","html_url":"https://github.com/crosswalk-project/crosswalk/pull/1498#discussion_r9576031","pull_request_url":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/1498","_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/comments/9576031"},"html":{"href":"https://github.com/crosswalk-project/crosswalk/pull/1498#discussion_r9576031"},"pull_request":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/1498"}}}}