This is the implementation for our proposed design for the device element. This patch is not intended to be reviewed or directly submitted, but to be used to understand our proposal. If accepted, this is intended to be uploaded in a set of small, easy to review patches for which https://bugs.webkit.org/show_bug.cgi?id=53595 and https://bugs.webkit.org/show_bug.cgi?id=53776 should be the first and second one. ChangeLogs and the mock-related code have been left out of this patch.
Created attachment 81234 [details] Patch
Attachment 81234 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/Configurations/Featu..." exit_code: 1 Source/WebCore/dom/DeviceConnection.h:76: One space before end of line comments [whitespace/comments] [5] Total errors found: 1 in 52 files If any of these errors are false positives, please file a bug against check-webkit-style.
Attachment 81234 [details] did not build on win: Build output: http://queues.webkit.org/results/7694912
Created attachment 81277 [details] Class diagram of the proposed model.
Created attachment 81854 [details] Diagram for the local device successful connection/disconnection use case.
Created attachment 81855 [details] Patch
Attachment 81855 [details] did not build on win: Build output: http://queues.webkit.org/results/7884047