Add most missing blink files to .gn files

I copied the list of missing files to a txt file and ran this script:

    import os, re, subprocess
    edits = {}
    for filename in open('headers.txt'):
      filename = filename.strip()
      dirname = os.path.dirname(filename)
      while not os.path.exists(os.path.join(dirname, 'BUILD.gn')):
	dirname = os.path.dirname(dirname)
      rel = filename[len(dirname) + 1:]
      gnfile = os.path.join(dirname, 'BUILD.gn')
      #print gnfile, rel

      lines = open(gnfile).read().splitlines()
      index = next( (i for i, l in enumerate(lines) if ' sources = [' in l), -1)
      if index == -1:
	continue
      lines.insert(index + 1, '"%s",' % rel)
      open(gnfile, 'w').write('\n'.join(lines))

Then I ran `git cl format` to re-sort source lists.

I manually fixed up
third_party/WebKit/Source/platform/BUILD.gn,
third_party/WebKit/public/BUILD.gn,
third_party/WebKit/Source/platform/BUILD.gn,
where this simple heuristic hadn't worked well.

I reverted changes to third_party/WebKit/Source/platform/mojo/BUILD.gn
because I don't understand that directory.

BUG=661774
NOTRY=true
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2771373003
Cr-Original-Commit-Position: refs/heads/master@{#459673}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 71d33c3169cf175d2d367834907b86c4023c0496
1 file changed
tree: ec764bbbff6765fc60cd71faa314b280b3c607d9
  1. allocator/
  2. debug/
  3. dtoa/
  4. testing/
  5. text/
  6. typed_arrays/
  7. .gitignore
  8. AddressSanitizer.h
  9. Alignment.h
  10. Allocator.h
  11. ASCIICType.h
  12. ASCIICTypeTest.cpp
  13. Assertions.h
  14. AssertionsTest.cpp
  15. Atomics.h
  16. AutoReset.h
  17. BitVector.h
  18. BitwiseOperations.h
  19. BloomFilter.h
  20. BUILD.gn
  21. build_config.h
  22. ByteOrder.h
  23. ByteSwap.h
  24. CheckedNumeric.h
  25. Compiler.h
  26. ConditionalDestructor.h
  27. ContainerAnnotations.h
  28. CPU.h
  29. CryptographicallyRandomNumber.h
  30. CurrentTime.h
  31. DataLog.h
  32. DateMath.h
  33. DEPS
  34. Deque.h
  35. DequeTest.cpp
  36. DoublyLinkedList.h
  37. dtoa.h
  38. dtoa_test.cpp
  39. Dummy.cpp
  40. DynamicAnnotations.h
  41. FilePrintStream.h
  42. Forward.h
  43. Functional.h
  44. FunctionalTest.cpp
  45. GetPtr.h
  46. HashCountedSet.h
  47. HashFunctions.h
  48. HashIterators.h
  49. HashMap.h
  50. HashMapTest.cpp
  51. HashSet.h
  52. HashSetTest.cpp
  53. HashTable.h
  54. HashTableDeletedValueType.h
  55. HashTraits.h
  56. HexNumber.h
  57. InstanceCounter.h
  58. LeakAnnotations.h
  59. LinkedHashSet.h
  60. ListHashSet.h
  61. ListHashSetTest.cpp
  62. Locker.h
  63. MathExtras.h
  64. MathExtrasTest.cpp
  65. Noncopyable.h
  66. NonCopyingSort.h
  67. NotFound.h
  68. Optional.h
  69. OptionalTest.cpp
  70. OWNERS
  71. PassRefPtr.h
  72. PassRefPtrTest.cpp
  73. PrintStream.h
  74. PtrUtil.h
  75. README.md
  76. RefCounted.h
  77. RefPtr.h
  78. RefPtrTest.cpp
  79. RefVector.h
  80. RetainPtr.h
  81. SaturatedArithmetic.h
  82. SizeAssertions.h
  83. SpinLock.h
  84. StackUtil.h
  85. StaticConstructors.h
  86. StdLibExtras.h
  87. StringExtras.h
  88. StringExtrasTest.cpp
  89. StringHasher.h
  90. StringHasherTest.cpp
  91. TerminatedArray.h
  92. TerminatedArrayBuilder.h
  93. Threading.h
  94. ThreadingPrimitives.h
  95. ThreadRestrictionVerifier.h
  96. ThreadSafeRefCounted.h
  97. ThreadSpecific.h
  98. Time.h
  99. TimeTest.cpp
  100. TreeNode.h
  101. TreeNodeTest.cpp
  102. TriState.h
  103. TypeTraits.h
  104. TypeTraitsTest.cpp
  105. UniquePtrTransitionGuide.md
  106. Vector.h
  107. VectorTest.cpp
  108. VectorTraits.h
  109. WeakPtr.h
  110. WTF.h
  111. WTFExport.h
  112. WTFThreadData.h
README.md

WTF -- Web Template Framework

The contents in this directory are being moved to platform/wtf. See platform/wtf/README.md for details.