| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // For WinDDK ATL compatibility, these ATL headers must come first. | 5 // For WinDDK ATL compatibility, these ATL headers must come first. |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <atlbase.h> // NOLINT | 10 #include <atlbase.h> // NOLINT |
| 11 #include <atlwin.h> // NOLINT | 11 #include <atlwin.h> // NOLINT |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <vector> // NOLINT | 14 #include <vector> // NOLINT |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 #include "ui/base/models/table_model.h" | 21 #include "ui/base/models/table_model.h" |
| 22 #include "ui/base/models/table_model_observer.h" | 22 #include "ui/base/models/table_model_observer.h" |
| 23 #include "ui/views/widget/widget.h" | |
| 24 #include "ui/views/widget/widget_delegate.h" | |
| 25 #include "views/controls/table/table_view.h" | 23 #include "views/controls/table/table_view.h" |
| 26 #include "views/controls/table/table_view2.h" | 24 #include "views/controls/table/table_view2.h" |
| 25 #include "views/widget/widget.h" |
| 26 #include "views/widget/widget_delegate.h" |
| 27 | 27 |
| 28 // Put the tests in the views namespace to make it easier to declare them as | 28 // Put the tests in the views namespace to make it easier to declare them as |
| 29 // friend classes. | 29 // friend classes. |
| 30 namespace views { | 30 namespace views { |
| 31 | 31 |
| 32 // TestTableModel -------------------------------------------------------------- | 32 // TestTableModel -------------------------------------------------------------- |
| 33 | 33 |
| 34 // Trivial TableModel implementation that is backed by a vector of vectors. | 34 // Trivial TableModel implementation that is backed by a vector of vectors. |
| 35 // Provides methods for adding/removing/changing the contents that notify the | 35 // Provides methods for adding/removing/changing the contents that notify the |
| 36 // observer appropriately. | 36 // observer appropriately. |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 638 |
| 639 table_->FocusRow(2); | 639 table_->FocusRow(2); |
| 640 EXPECT_EQ(2, table_->GetFirstFocusedRow()); | 640 EXPECT_EQ(2, table_->GetFirstFocusedRow()); |
| 641 | 641 |
| 642 table_->ClearRowFocus(); | 642 table_->ClearRowFocus(); |
| 643 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); | 643 EXPECT_EQ(-1, table_->GetFirstSelectedRow()); |
| 644 } | 644 } |
| 645 #endif | 645 #endif |
| 646 | 646 |
| 647 } // namespace views | 647 } // namespace views |
| OLD | NEW |