{"action":"created","comment":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/comments/43207370","id":43207370,"diff_hunk":"@@ -0,0 +1,139 @@\n+/*\n+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved\n+ *\n+ *    Licensed under the Apache License, Version 2.0 (the \"License\");\n+ *    you may not use this file except in compliance with the License.\n+ *    You may obtain a copy of the License at\n+ *\n+ *        http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *    Unless required by applicable law or agreed to in writing, software\n+ *    distributed under the License is distributed on an \"AS IS\" BASIS,\n+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *    See the License for the specific language governing permissions and\n+ *    limitations under the License.\n+ */\n+\n+#include \"runtime/browser/splash_screen.h\"\n+\n+#include <map>\n+\n+#if defined(HAVE_X11)\n+#include <Ecore_X.h>\n+#elif defined(HAVE_WAYLAND)\n+#include <Ecore_Wayland.h>\n+#endif\n+\n+#include \"common/logger.h\"\n+#include \"manifest_handlers/splash_screen_handler.h\"\n+#include \"runtime/browser/native_window.h\"\n+\n+namespace {\n+\n+wgt::parse::ScreenOrientation ChooseOrientation(\n+    const std::map<wgt::parse::ScreenOrientation,\n+    wgt::parse::SplashScreenData>& splash_map,\n+    runtime::NativeWindow::ScreenOrientation screen_orientation) {\n+  auto orientation_pair = splash_map.end();\n+\n+  if (screen_orientation ==\n+      runtime::NativeWindow::ScreenOrientation::PORTRAIT_PRIMARY) {\n+     orientation_pair =\n+         splash_map.find(wgt::parse::ScreenOrientation::PORTRAIT);\n+  } else {\n+    orientation_pair =\n+        splash_map.find(wgt::parse::ScreenOrientation::LANDSCAPE);\n+  }","path":"runtime/browser/splash_screen.cc","position":46,"original_position":46,"commit_id":"fa84f77f3dc01ae8f8012142c1872b00e1c9ea2a","original_commit_id":"fa84f77f3dc01ae8f8012142c1872b00e1c9ea2a","user":{"login":"myroot","id":1029155,"avatar_url":"https://avatars.githubusercontent.com/u/1029155?v=3","gravatar_id":"","url":"https://api.github.com/users/myroot","html_url":"https://github.com/myroot","followers_url":"https://api.github.com/users/myroot/followers","following_url":"https://api.github.com/users/myroot/following{/other_user}","gists_url":"https://api.github.com/users/myroot/gists{/gist_id}","starred_url":"https://api.github.com/users/myroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myroot/subscriptions","organizations_url":"https://api.github.com/users/myroot/orgs","repos_url":"https://api.github.com/users/myroot/repos","events_url":"https://api.github.com/users/myroot/events{/privacy}","received_events_url":"https://api.github.com/users/myroot/received_events","type":"User","site_admin":false},"body":"auto primary_orientation = screen_orientation == runtime::NativeWindow::ScreenOrientation::PORTRAIT_PRIMARY ? wgt::parse::ScreenOrientation::PORTRAIT : wgt::parse::ScreenOrientation::LANDSCAPE;\r\norienatation_pair = splash_map.find(primary_orientation);\r\n\r\n ","created_at":"2015-10-28T00:36:57Z","updated_at":"2015-10-28T00:36:57Z","html_url":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32#discussion_r43207370","pull_request_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/comments/43207370"},"html":{"href":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32#discussion_r43207370"},"pull_request":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32","id":48738597,"html_url":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32","diff_url":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32.diff","patch_url":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32.patch","issue_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/32","number":32,"state":"open","locked":false,"title":"LaunchScreen feature implementation","user":{"login":"szulak","id":4438359,"avatar_url":"https://avatars.githubusercontent.com/u/4438359?v=3","gravatar_id":"","url":"https://api.github.com/users/szulak","html_url":"https://github.com/szulak","followers_url":"https://api.github.com/users/szulak/followers","following_url":"https://api.github.com/users/szulak/following{/other_user}","gists_url":"https://api.github.com/users/szulak/gists{/gist_id}","starred_url":"https://api.github.com/users/szulak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szulak/subscriptions","organizations_url":"https://api.github.com/users/szulak/orgs","repos_url":"https://api.github.com/users/szulak/repos","events_url":"https://api.github.com/users/szulak/events{/privacy}","received_events_url":"https://api.github.com/users/szulak/received_events","type":"User","site_admin":false},"body":"This commit is dependent on manifest-parser change:\r\nhttps://review.tizen.org/gerrit/#/c/48846/\r\n\r\nFor more details:\r\nhttps://crosswalk-project.org/documentation/manifest/launch_screen.html","created_at":"2015-10-26T13:28:42Z","updated_at":"2015-10-28T00:36:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02ee7e5e73b25cbaf486240631d1965519260612","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32/commits","review_comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32/comments","review_comment_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/32/comments","statuses_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/statuses/fa84f77f3dc01ae8f8012142c1872b00e1c9ea2a","head":{"label":"szulak:launch_screen","ref":"launch_screen","sha":"fa84f77f3dc01ae8f8012142c1872b00e1c9ea2a","user":{"login":"szulak","id":4438359,"avatar_url":"https://avatars.githubusercontent.com/u/4438359?v=3","gravatar_id":"","url":"https://api.github.com/users/szulak","html_url":"https://github.com/szulak","followers_url":"https://api.github.com/users/szulak/followers","following_url":"https://api.github.com/users/szulak/following{/other_user}","gists_url":"https://api.github.com/users/szulak/gists{/gist_id}","starred_url":"https://api.github.com/users/szulak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szulak/subscriptions","organizations_url":"https://api.github.com/users/szulak/orgs","repos_url":"https://api.github.com/users/szulak/repos","events_url":"https://api.github.com/users/szulak/events{/privacy}","received_events_url":"https://api.github.com/users/szulak/received_events","type":"User","site_admin":false},"repo":{"id":44962671,"name":"crosswalk-tizen","full_name":"szulak/crosswalk-tizen","owner":{"login":"szulak","id":4438359,"avatar_url":"https://avatars.githubusercontent.com/u/4438359?v=3","gravatar_id":"","url":"https://api.github.com/users/szulak","html_url":"https://github.com/szulak","followers_url":"https://api.github.com/users/szulak/followers","following_url":"https://api.github.com/users/szulak/following{/other_user}","gists_url":"https://api.github.com/users/szulak/gists{/gist_id}","starred_url":"https://api.github.com/users/szulak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szulak/subscriptions","organizations_url":"https://api.github.com/users/szulak/orgs","repos_url":"https://api.github.com/users/szulak/repos","events_url":"https://api.github.com/users/szulak/events{/privacy}","received_events_url":"https://api.github.com/users/szulak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szulak/crosswalk-tizen","description":"Crosswalk for Tizen project","fork":true,"url":"https://api.github.com/repos/szulak/crosswalk-tizen","forks_url":"https://api.github.com/repos/szulak/crosswalk-tizen/forks","keys_url":"https://api.github.com/repos/szulak/crosswalk-tizen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szulak/crosswalk-tizen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szulak/crosswalk-tizen/teams","hooks_url":"https://api.github.com/repos/szulak/crosswalk-tizen/hooks","issue_events_url":"https://api.github.com/repos/szulak/crosswalk-tizen/issues/events{/number}","events_url":"https://api.github.com/repos/szulak/crosswalk-tizen/events","assignees_url":"https://api.github.com/repos/szulak/crosswalk-tizen/assignees{/user}","branches_url":"https://api.github.com/repos/szulak/crosswalk-tizen/branches{/branch}","tags_url":"https://api.github.com/repos/szulak/crosswalk-tizen/tags","blobs_url":"https://api.github.com/repos/szulak/crosswalk-tizen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szulak/crosswalk-tizen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szulak/crosswalk-tizen/git/refs{/sha}","trees_url":"https://api.github.com/repos/szulak/crosswalk-tizen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szulak/crosswalk-tizen/statuses/{sha}","languages_url":"https://api.github.com/repos/szulak/crosswalk-tizen/languages","stargazers_url":"https://api.github.com/repos/szulak/crosswalk-tizen/stargazers","contributors_url":"https://api.github.com/repos/szulak/crosswalk-tizen/contributors","subscribers_url":"https://api.github.com/repos/szulak/crosswalk-tizen/subscribers","subscription_url":"https://api.github.com/repos/szulak/crosswalk-tizen/subscription","commits_url":"https://api.github.com/repos/szulak/crosswalk-tizen/commits{/sha}","git_commits_url":"https://api.github.com/repos/szulak/crosswalk-tizen/git/commits{/sha}","comments_url":"https://api.github.com/repos/szulak/crosswalk-tizen/comments{/number}","issue_comment_url":"https://api.github.com/repos/szulak/crosswalk-tizen/issues/comments{/number}","contents_url":"https://api.github.com/repos/szulak/crosswalk-tizen/contents/{+path}","compare_url":"https://api.github.com/repos/szulak/crosswalk-tizen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szulak/crosswalk-tizen/merges","archive_url":"https://api.github.com/repos/szulak/crosswalk-tizen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szulak/crosswalk-tizen/downloads","issues_url":"https://api.github.com/repos/szulak/crosswalk-tizen/issues{/number}","pulls_url":"https://api.github.com/repos/szulak/crosswalk-tizen/pulls{/number}","milestones_url":"https://api.github.com/repos/szulak/crosswalk-tizen/milestones{/number}","notifications_url":"https://api.github.com/repos/szulak/crosswalk-tizen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szulak/crosswalk-tizen/labels{/name}","releases_url":"https://api.github.com/repos/szulak/crosswalk-tizen/releases{/id}","created_at":"2015-10-26T10:54:50Z","updated_at":"2015-10-26T10:54:51Z","pushed_at":"2015-10-27T10:55:09Z","git_url":"git://github.com/szulak/crosswalk-tizen.git","ssh_url":"git@github.com:szulak/crosswalk-tizen.git","clone_url":"https://github.com/szulak/crosswalk-tizen.git","svn_url":"https://github.com/szulak/crosswalk-tizen","homepage":null,"size":1899,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crosswalk-project:master","ref":"master","sha":"fb27cf1021a593f82b07e806b74df9a8c0aaa21c","user":{"login":"crosswalk-project","id":4867377,"avatar_url":"https://avatars.githubusercontent.com/u/4867377?v=3","gravatar_id":"","url":"https://api.github.com/users/crosswalk-project","html_url":"https://github.com/crosswalk-project","followers_url":"https://api.github.com/users/crosswalk-project/followers","following_url":"https://api.github.com/users/crosswalk-project/following{/other_user}","gists_url":"https://api.github.com/users/crosswalk-project/gists{/gist_id}","starred_url":"https://api.github.com/users/crosswalk-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosswalk-project/subscriptions","organizations_url":"https://api.github.com/users/crosswalk-project/orgs","repos_url":"https://api.github.com/users/crosswalk-project/repos","events_url":"https://api.github.com/users/crosswalk-project/events{/privacy}","received_events_url":"https://api.github.com/users/crosswalk-project/received_events","type":"Organization","site_admin":false},"repo":{"id":42498305,"name":"crosswalk-tizen","full_name":"crosswalk-project/crosswalk-tizen","owner":{"login":"crosswalk-project","id":4867377,"avatar_url":"https://avatars.githubusercontent.com/u/4867377?v=3","gravatar_id":"","url":"https://api.github.com/users/crosswalk-project","html_url":"https://github.com/crosswalk-project","followers_url":"https://api.github.com/users/crosswalk-project/followers","following_url":"https://api.github.com/users/crosswalk-project/following{/other_user}","gists_url":"https://api.github.com/users/crosswalk-project/gists{/gist_id}","starred_url":"https://api.github.com/users/crosswalk-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosswalk-project/subscriptions","organizations_url":"https://api.github.com/users/crosswalk-project/orgs","repos_url":"https://api.github.com/users/crosswalk-project/repos","events_url":"https://api.github.com/users/crosswalk-project/events{/privacy}","received_events_url":"https://api.github.com/users/crosswalk-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crosswalk-project/crosswalk-tizen","description":"Crosswalk for Tizen project","fork":false,"url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen","forks_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/forks","keys_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/teams","hooks_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/hooks","issue_events_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/events{/number}","events_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/events","assignees_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/assignees{/user}","branches_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/branches{/branch}","tags_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/tags","blobs_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/git/refs{/sha}","trees_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/statuses/{sha}","languages_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/languages","stargazers_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/stargazers","contributors_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/contributors","subscribers_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/subscribers","subscription_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/subscription","commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/commits{/sha}","git_commits_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/git/commits{/sha}","comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/comments{/number}","issue_comment_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/comments{/number}","contents_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/contents/{+path}","compare_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/merges","archive_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/downloads","issues_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues{/number}","pulls_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls{/number}","milestones_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/milestones{/number}","notifications_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/labels{/name}","releases_url":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/releases{/id}","created_at":"2015-09-15T05:55:19Z","updated_at":"2015-10-26T13:34:35Z","pushed_at":"2015-10-27T10:55:09Z","git_url":"git://github.com/crosswalk-project/crosswalk-tizen.git","ssh_url":"git@github.com:crosswalk-project/crosswalk-tizen.git","clone_url":"https://github.com/crosswalk-project/crosswalk-tizen.git","svn_url":"https://github.com/crosswalk-project/crosswalk-tizen","homepage":null,"size":2248,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32"},"html":{"href":"https://github.com/crosswalk-project/crosswalk-tizen/pull/32"},"issue":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/32"},"comments":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/crosswalk-project/crosswalk-tizen/statuses/fa84f77f3dc01ae8f8012142c1872b00e1c9ea2a"}}}}