diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-25 00:59:15 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-25 00:59:15 +0000 |
commit | b8881b434694b1d56d081d9133ff97887a70bd38 (patch) | |
tree | 2d8f92788b97cfe24b9ccefbb9db183177e54351 /ui/aura/gestures | |
parent | 87d6297c0888fd9ddfaf458928e026d2b4e53b67 (diff) | |
download | chromium_src-b8881b434694b1d56d081d9133ff97887a70bd38.zip chromium_src-b8881b434694b1d56d081d9133ff97887a70bd38.tar.gz chromium_src-b8881b434694b1d56d081d9133ff97887a70bd38.tar.bz2 |
Revert 123592 - Remove a bunch more uses of RootWindow::GetInstance()
http://crbug.com/112131
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9460025
TBR=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9464038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/gestures')
-rw-r--r-- | ui/aura/gestures/gesture_recognizer_unittest.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc index b5734fc..ffe8e59 100644 --- a/ui/aura/gestures/gesture_recognizer_unittest.cc +++ b/ui/aura/gestures/gesture_recognizer_unittest.cc @@ -437,10 +437,10 @@ TEST_F(GestureRecognizerTest, GestureEventLongPress) { static_cast<TimerTestGestureSequence*>( gesture_recognizer->GetGestureSequenceForTesting()); - root_window()->SetGestureRecognizerForTesting(gesture_recognizer); + RootWindow::GetInstance()->SetGestureRecognizerForTesting(gesture_recognizer); TouchEvent press1(ui::ET_TOUCH_PRESSED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&press1); + RootWindow::GetInstance()->DispatchTouchEvent(&press1); EXPECT_TRUE(delegate->tap_down()); // We haven't pressed long enough for a long press to occur @@ -453,7 +453,7 @@ TEST_F(GestureRecognizerTest, GestureEventLongPress) { delegate->Reset(); TouchEvent release1(ui::ET_TOUCH_RELEASED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&release1); + RootWindow::GetInstance()->DispatchTouchEvent(&release1); EXPECT_FALSE(delegate->long_press()); } @@ -475,10 +475,10 @@ TEST_F(GestureRecognizerTest, GestureEventLongPressCancelledByScroll) { static_cast<TimerTestGestureSequence*>( gesture_recognizer->GetGestureSequenceForTesting()); - root_window()->SetGestureRecognizerForTesting(gesture_recognizer); + RootWindow::GetInstance()->SetGestureRecognizerForTesting(gesture_recognizer); TouchEvent press1(ui::ET_TOUCH_PRESSED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&press1); + RootWindow::GetInstance()->DispatchTouchEvent(&press1); EXPECT_TRUE(delegate->tap_down()); // We haven't pressed long enough for a long press to occur @@ -492,7 +492,7 @@ TEST_F(GestureRecognizerTest, GestureEventLongPressCancelledByScroll) { delegate->Reset(); TouchEvent release1(ui::ET_TOUCH_RELEASED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&release1); + RootWindow::GetInstance()->DispatchTouchEvent(&release1); EXPECT_FALSE(delegate->long_press()); } @@ -512,11 +512,11 @@ TEST_F(GestureRecognizerTest, GestureEventLongPressCancelledByPinch) { static_cast<TimerTestGestureSequence*>( gesture_recognizer->GetGestureSequenceForTesting()); - root_window()->SetGestureRecognizerForTesting(gesture_recognizer); + RootWindow::GetInstance()->SetGestureRecognizerForTesting(gesture_recognizer); delegate->Reset(); TouchEvent press(ui::ET_TOUCH_PRESSED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&press); + RootWindow::GetInstance()->DispatchTouchEvent(&press); EXPECT_TRUE(delegate->tap_down()); // We haven't pressed long enough for a long press to occur @@ -525,7 +525,7 @@ TEST_F(GestureRecognizerTest, GestureEventLongPressCancelledByPinch) { // Pinch, to cancel the long press delegate->Reset(); TouchEvent press2(ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), 1); - root_window()->DispatchTouchEvent(&press2); + RootWindow::GetInstance()->DispatchTouchEvent(&press2); EXPECT_TRUE(delegate->tap_down()); EXPECT_TRUE(delegate->pinch_begin()); @@ -537,7 +537,7 @@ TEST_F(GestureRecognizerTest, GestureEventLongPressCancelledByPinch) { delegate->Reset(); TouchEvent release1(ui::ET_TOUCH_RELEASED, gfx::Point(101, 201), 0); - root_window()->DispatchTouchEvent(&release1); + RootWindow::GetInstance()->DispatchTouchEvent(&release1); EXPECT_FALSE(delegate->long_press()); } |