Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: ui/aura/root_window_host_x11_unittest.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window_host_x11.cc ('k') | ui/aura/test/ui_controls_factory_aurawin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c9cb258050680cb6b125836db131d28232ca00c7..1552d4985fc9ef777e33c1e1663d2e7104dcb10e 100644
--- a/ui/aura/root_window_host_x11_unittest.cc
+++ b/ui/aura/root_window_host_x11_unittest.cc
@@ -62,6 +62,9 @@ class TestRootWindowHostDelegate : public aura::RootWindowHostDelegate {
virtual aura::RootWindow* AsRootWindow() OVERRIDE {
return NULL;
}
+ virtual const aura::RootWindow* AsRootWindow() const OVERRIDE {
+ return NULL;
+ }
ui::EventType last_touch_type() {
return last_touch_type_;
@@ -103,7 +106,7 @@ TEST_F(RootWindowHostX11Test, DispatchTouchEventToOneRootWindow) {
new RootWindowHostX11(gfx::Rect(0, 0, 2560, 1700)));
scoped_ptr<TestRootWindowHostDelegate> delegate(
new TestRootWindowHostDelegate());
- root_window_host->SetDelegate(delegate.get());
+ root_window_host->set_delegate(delegate.get());
std::vector<unsigned int> devices;
devices.push_back(0);
@@ -167,14 +170,14 @@ TEST_F(RootWindowHostX11Test, DispatchTouchEventToTwoRootWindow) {
new RootWindowHostX11(gfx::Rect(0, 0, 2560, 1700)));
scoped_ptr<TestRootWindowHostDelegate> delegate1(
new TestRootWindowHostDelegate());
- root_window_host1->SetDelegate(delegate1.get());
+ 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());
- root_window_host2->SetDelegate(delegate2.get());
+ root_window_host2->set_delegate(delegate2.get());
std::vector<unsigned int> devices;
devices.push_back(0);
« no previous file with comments | « ui/aura/root_window_host_x11.cc ('k') | ui/aura/test/ui_controls_factory_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698