Index: ui/aura/root_window_host_x11_unittest.cc |
diff --git a/ui/aura/root_window_host_x11_unittest.cc b/ui/aura/root_window_host_x11_unittest.cc |
index 049e0fa2e165b20093563e6c79e02687f9bf265e..4070bbe8696400e286bba20f21ee2b97ec8844f5 100644 |
--- a/ui/aura/root_window_host_x11_unittest.cc |
+++ b/ui/aura/root_window_host_x11_unittest.cc |
@@ -15,17 +15,17 @@ |
#include "ui/events/test/events_test_utils_x11.h" |
namespace { |
-class TestRootWindowHostDelegate : public aura::RootWindowHostDelegate, |
+class TestWindowTreeHostDelegate : public aura::WindowTreeHostDelegate, |
public ui::EventProcessor, |
public ui::EventTarget { |
public: |
- TestRootWindowHostDelegate() : last_touch_type_(ui::ET_UNKNOWN), |
+ TestWindowTreeHostDelegate() : last_touch_type_(ui::ET_UNKNOWN), |
last_touch_id_(-1), |
last_touch_location_(0, 0) { |
} |
- virtual ~TestRootWindowHostDelegate() {} |
+ virtual ~TestWindowTreeHostDelegate() {} |
- // aura::RootWindowHostDelegate: |
+ // aura::WindowTreeHostDelegate: |
virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE { |
return true; |
} |
@@ -96,29 +96,29 @@ class TestRootWindowHostDelegate : public aura::RootWindowHostDelegate, |
gfx::Point last_touch_location_; |
ui::EventTargeter targeter_; |
- DISALLOW_COPY_AND_ASSIGN(TestRootWindowHostDelegate); |
+ DISALLOW_COPY_AND_ASSIGN(TestWindowTreeHostDelegate); |
}; |
} // namespace |
namespace aura { |
-typedef test::AuraTestBase RootWindowHostX11Test; |
+typedef test::AuraTestBase WindowTreeHostX11Test; |
-// Send X touch events to one RootWindowHost. The RootWindowHost's |
+// Send X touch events to one WindowTreeHost. The WindowTreeHost's |
// delegate will get corresponding ui::TouchEvent if the touch events |
-// are winthin the bound of the RootWindowHost. |
-TEST_F(RootWindowHostX11Test, DispatchTouchEventToOneRootWindow) { |
+// are winthin the bound of the WindowTreeHost. |
+TEST_F(WindowTreeHostX11Test, DispatchTouchEventToOneRootWindow) { |
#if defined(OS_CHROMEOS) |
// Fake a ChromeOS running env. |
const char* kLsbRelease = "CHROMEOS_RELEASE_NAME=Chromium OS\n"; |
base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time()); |
#endif // defined(OS_CHROMEOS) |
- scoped_ptr<RootWindowHostX11> root_window_host( |
- new RootWindowHostX11(gfx::Rect(0, 0, 2560, 1700))); |
- scoped_ptr<TestRootWindowHostDelegate> delegate( |
- new TestRootWindowHostDelegate()); |
+ scoped_ptr<WindowTreeHostX11> root_window_host( |
+ new WindowTreeHostX11(gfx::Rect(0, 0, 2560, 1700))); |
+ scoped_ptr<TestWindowTreeHostDelegate> delegate( |
+ new TestWindowTreeHostDelegate()); |
root_window_host->set_delegate(delegate.get()); |
std::vector<unsigned int> devices; |
@@ -171,26 +171,26 @@ TEST_F(RootWindowHostX11Test, DispatchTouchEventToOneRootWindow) { |
#endif // defined(OS_CHROMEOS) |
} |
-// Send X touch events to two RootWindowHost. The RootWindowHost which is |
+// Send X touch events to two WindowTreeHost. The WindowTreeHost which is |
// the event target of the X touch events should generate the corresponding |
// ui::TouchEvent for its delegate. |
#if defined(OS_CHROMEOS) |
-TEST_F(RootWindowHostX11Test, DispatchTouchEventToTwoRootWindow) { |
+TEST_F(WindowTreeHostX11Test, DispatchTouchEventToTwoRootWindow) { |
// Fake a ChromeOS running env. |
const char* kLsbRelease = "CHROMEOS_RELEASE_NAME=Chromium OS\n"; |
base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time()); |
- scoped_ptr<RootWindowHostX11> root_window_host1( |
- new RootWindowHostX11(gfx::Rect(0, 0, 2560, 1700))); |
- scoped_ptr<TestRootWindowHostDelegate> delegate1( |
- new TestRootWindowHostDelegate()); |
+ scoped_ptr<WindowTreeHostX11> root_window_host1( |
+ new WindowTreeHostX11(gfx::Rect(0, 0, 2560, 1700))); |
+ scoped_ptr<TestWindowTreeHostDelegate> delegate1( |
+ new TestWindowTreeHostDelegate()); |
root_window_host1->set_delegate(delegate1.get()); |
int host2_y_offset = 1700; |
- scoped_ptr<RootWindowHostX11> root_window_host2( |
- new RootWindowHostX11(gfx::Rect(0, host2_y_offset, 1920, 1080))); |
- scoped_ptr<TestRootWindowHostDelegate> delegate2( |
- new TestRootWindowHostDelegate()); |
+ scoped_ptr<WindowTreeHostX11> root_window_host2( |
+ new WindowTreeHostX11(gfx::Rect(0, host2_y_offset, 1920, 1080))); |
+ scoped_ptr<TestWindowTreeHostDelegate> delegate2( |
+ new TestWindowTreeHostDelegate()); |
root_window_host2->set_delegate(delegate2.get()); |
std::vector<unsigned int> devices; |
@@ -203,7 +203,7 @@ TEST_F(RootWindowHostX11Test, DispatchTouchEventToTwoRootWindow) { |
EXPECT_EQ(ui::ET_UNKNOWN, delegate2->last_touch_type()); |
EXPECT_EQ(-1, delegate2->last_touch_id()); |
- // 2 Touch events are targeted at the second RootWindowHost. |
+ // 2 Touch events are targeted at the second WindowTreeHost. |
ui::ScopedXI2Event scoped_xevent; |
scoped_xevent.InitTouchEvent( |
0, XI_TouchBegin, 5, gfx::Point(1500, 2500), valuators); |