OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/controls/table/table_view.h" | 5 #include "ui/views/controls/table/table_view.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/events/event_utils.h" | 13 #include "ui/events/event_utils.h" |
11 #include "ui/views/controls/table/table_grouper.h" | 14 #include "ui/views/controls/table/table_grouper.h" |
12 #include "ui/views/controls/table/table_header.h" | 15 #include "ui/views/controls/table/table_header.h" |
13 #include "ui/views/controls/table/table_view_observer.h" | 16 #include "ui/views/controls/table/table_view_observer.h" |
14 | 17 |
15 // Put the tests in the views namespace to make it easier to declare them as | 18 // Put the tests in the views namespace to make it easier to declare them as |
16 // friend classes. | 19 // friend classes. |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 new_selection.AddIndexToSelection(0); | 914 new_selection.AddIndexToSelection(0); |
912 new_selection.AddIndexToSelection(1); | 915 new_selection.AddIndexToSelection(1); |
913 new_selection.set_active(0); | 916 new_selection.set_active(0); |
914 new_selection.set_anchor(0); | 917 new_selection.set_anchor(0); |
915 helper_->SetSelectionModel(new_selection); | 918 helper_->SetSelectionModel(new_selection); |
916 model_->RemoveRow(0); | 919 model_->RemoveRow(0); |
917 helper_->OnFocus(); | 920 helper_->OnFocus(); |
918 } | 921 } |
919 | 922 |
920 } // namespace views | 923 } // namespace views |
OLD | NEW |