{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/comments/27255111","id":27255111,"diff_hunk":"@@ -0,0 +1,203 @@\n+﻿//\n+// Copyright (C) Microsoft. All rights reserved.\n+//\n+\n+/// <reference path=\"Interfaces.d.ts\"/>\n+/// <reference path=\"Browser.ts\"/>\n+module F12.Proxy {\n+    \"use strict\";\n+\n+    declare var browser: IBrowser;\n+    export class DOMHandler {\n+        private _mapUidToNode: Map<number, Node>;\n+        private _mapNodeToUid: WeakMap<Node, number>;\n+        private _nextAvailableUid: number;\n+        private _windowExternal: any; //todo: Make an appropriate TS interface for external\n+        private _elementHighlightColor: any;\n+        constructor() {\n+            this._mapUidToNode = new Map<number, Node>();\n+            this._mapNodeToUid = new WeakMap<Node, number>();\n+            this._nextAvailableUid = 2; // 1 is reserved for the root\n+            this._windowExternal = (<any>external);\n+            this._elementHighlightColor = {\n+                margin: \"rgba(250, 212, 107, 0.50)\",\n+                border: \"rgba(120, 181, 51, 0.50)\",\n+                padding: \"rgba(247, 163, 135, 0.50)\",\n+                content: \"rgba(168, 221, 246, 0.50)\"\n+            };\n+        }\n+\n+        private createChromeNodeFromIENode(node: Node): INode {\n+            var inode: INode = {\n+                nodeId: +this.getOrAssignUid(node),","path":"IEWebKitImpl/DOM.ts","position":32,"original_position":32,"commit_id":"f3c7ea21b71165eef0c02148800572bc07f84e30","original_commit_id":"f3c7ea21b71165eef0c02148800572bc07f84e30","user":{"login":"jalissia","id":10660853,"avatar_url":"https://avatars.githubusercontent.com/u/10660853?v=3","gravatar_id":"","url":"https://api.github.com/users/jalissia","html_url":"https://github.com/jalissia","followers_url":"https://api.github.com/users/jalissia/followers","following_url":"https://api.github.com/users/jalissia/following{/other_user}","gists_url":"https://api.github.com/users/jalissia/gists{/gist_id}","starred_url":"https://api.github.com/users/jalissia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalissia/subscriptions","organizations_url":"https://api.github.com/users/jalissia/orgs","repos_url":"https://api.github.com/users/jalissia/repos","events_url":"https://api.github.com/users/jalissia/events{/privacy}","received_events_url":"https://api.github.com/users/jalissia/received_events","type":"User","site_admin":false},"body":"nodeId: +this.getOrAssignUid(node),\r\nWhat is that + for?","created_at":"2015-03-26T20:56:11Z","updated_at":"2015-03-26T20:56:11Z","html_url":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5#discussion_r27255111","pull_request_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/comments/27255111"},"html":{"href":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5#discussion_r27255111"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5","id":32059141,"html_url":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5","diff_url":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5.diff","patch_url":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5.patch","issue_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/5","number":5,"state":"open","locked":false,"title":"Dom implementation","user":{"login":"alexcope","id":5401011,"avatar_url":"https://avatars.githubusercontent.com/u/5401011?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcope","html_url":"https://github.com/alexcope","followers_url":"https://api.github.com/users/alexcope/followers","following_url":"https://api.github.com/users/alexcope/following{/other_user}","gists_url":"https://api.github.com/users/alexcope/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcope/subscriptions","organizations_url":"https://api.github.com/users/alexcope/orgs","repos_url":"https://api.github.com/users/alexcope/repos","events_url":"https://api.github.com/users/alexcope/events{/privacy}","received_events_url":"https://api.github.com/users/alexcope/received_events","type":"User","site_admin":false},"body":"Added the ability to navigate the DOM, Highlight nodes, and added the ability to execute commands in the console","created_at":"2015-03-26T20:50:18Z","updated_at":"2015-03-26T20:56:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/5/comments","statuses_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/statuses/f3c7ea21b71165eef0c02148800572bc07f84e30","head":{"label":"Microsoft:DOM_implementation","ref":"DOM_implementation","sha":"f3c7ea21b71165eef0c02148800572bc07f84e30","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":31328023,"name":"IEDiagnosticsAdapter","full_name":"Microsoft/IEDiagnosticsAdapter","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/IEDiagnosticsAdapter","description":"IE Diagnostics Adapter is a standalone exe that enables tools to debug and diagnose IE11 using the Chrome remote debug protocol. ","fork":false,"url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter","forks_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/forks","keys_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/teams","hooks_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/events","assignees_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/tags","blobs_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/languages","stargazers_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/subscription","commits_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/merges","archive_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/downloads","issues_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/releases{/id}","created_at":"2015-02-25T18:06:05Z","updated_at":"2015-03-26T20:31:04Z","pushed_at":"2015-03-26T20:50:19Z","git_url":"git://github.com/Microsoft/IEDiagnosticsAdapter.git","ssh_url":"git@github.com:Microsoft/IEDiagnosticsAdapter.git","clone_url":"https://github.com/Microsoft/IEDiagnosticsAdapter.git","svn_url":"https://github.com/Microsoft/IEDiagnosticsAdapter","homepage":"","size":735,"stargazers_count":98,"watchers_count":98,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":98,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"269163d2e86c90994780395a30248935913287ed","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":31328023,"name":"IEDiagnosticsAdapter","full_name":"Microsoft/IEDiagnosticsAdapter","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/IEDiagnosticsAdapter","description":"IE Diagnostics Adapter is a standalone exe that enables tools to debug and diagnose IE11 using the Chrome remote debug protocol. ","fork":false,"url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter","forks_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/forks","keys_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/teams","hooks_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/events","assignees_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/tags","blobs_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/languages","stargazers_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/subscription","commits_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/merges","archive_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/downloads","issues_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/releases{/id}","created_at":"2015-02-25T18:06:05Z","updated_at":"2015-03-26T20:31:04Z","pushed_at":"2015-03-26T20:50:19Z","git_url":"git://github.com/Microsoft/IEDiagnosticsAdapter.git","ssh_url":"git@github.com:Microsoft/IEDiagnosticsAdapter.git","clone_url":"https://github.com/Microsoft/IEDiagnosticsAdapter.git","svn_url":"https://github.com/Microsoft/IEDiagnosticsAdapter","homepage":"","size":735,"stargazers_count":98,"watchers_count":98,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5"},"html":{"href":"https://github.com/Microsoft/IEDiagnosticsAdapter/pull/5"},"issue":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/5"},"comments":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/IEDiagnosticsAdapter/statuses/f3c7ea21b71165eef0c02148800572bc07f84e30"}}}}