Selection.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Selection/Selection.h>
  7. namespace Web::Selection {
  8. NonnullRefPtr<Selection> Selection::create()
  9. {
  10. return adopt_ref(*new Selection);
  11. }
  12. DOM::Node* Selection::anchor_node()
  13. {
  14. TODO();
  15. }
  16. unsigned Selection::anchor_offset()
  17. {
  18. TODO();
  19. }
  20. DOM::Node* Selection::focus_node()
  21. {
  22. TODO();
  23. }
  24. unsigned Selection::focus_offset() const
  25. {
  26. TODO();
  27. }
  28. bool Selection::is_collapsed() const
  29. {
  30. TODO();
  31. }
  32. unsigned Selection::range_count() const
  33. {
  34. TODO();
  35. }
  36. String Selection::type() const
  37. {
  38. TODO();
  39. }
  40. NonnullRefPtr<DOM::Range> Selection::get_range_at(unsigned index)
  41. {
  42. (void)index;
  43. TODO();
  44. }
  45. void Selection::add_range(DOM::Range&)
  46. {
  47. TODO();
  48. }
  49. void Selection::remove_range(DOM::Range&)
  50. {
  51. TODO();
  52. }
  53. void Selection::remove_all_ranges()
  54. {
  55. TODO();
  56. }
  57. void Selection::empty()
  58. {
  59. TODO();
  60. }
  61. void Selection::collapse(DOM::Node*, unsigned offset)
  62. {
  63. (void)offset;
  64. TODO();
  65. }
  66. void Selection::set_position(DOM::Node*, unsigned offset)
  67. {
  68. (void)offset;
  69. TODO();
  70. }
  71. void Selection::collapse_to_start()
  72. {
  73. TODO();
  74. }
  75. void Selection::collapse_to_end()
  76. {
  77. TODO();
  78. }
  79. void Selection::extend(DOM::Node&, unsigned offset)
  80. {
  81. (void)offset;
  82. TODO();
  83. }
  84. void Selection::set_base_and_extent(DOM::Node& anchor_node, unsigned anchor_offset, DOM::Node& focus_node, unsigned focus_offset)
  85. {
  86. (void)anchor_node;
  87. (void)anchor_offset;
  88. (void)focus_node;
  89. (void)focus_offset;
  90. TODO();
  91. }
  92. void Selection::select_all_children(DOM::Node&)
  93. {
  94. TODO();
  95. }
  96. void Selection::delete_from_document()
  97. {
  98. TODO();
  99. }
  100. bool Selection::contains_node(DOM::Node&, bool allow_partial_containment) const
  101. {
  102. (void)allow_partial_containment;
  103. TODO();
  104. }
  105. String Selection::to_string() const
  106. {
  107. TODO();
  108. }
  109. }