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

Side by Side Diff: ash/tooltips/tooltip_controller_unittest.cc

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: General patch cleanup. Created 7 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "ash/display/display_controller.h" 5 #include "ash/display/display_controller.h"
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
8 #include "ash/tooltips/tooltip_controller.h" 8 #include "ash/tooltips/tooltip_controller.h"
9 #include "ash/wm/cursor_manager.h"
10 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
11 #include "ui/aura/client/tooltip_client.h" 10 #include "ui/aura/client/tooltip_client.h"
12 #include "ui/aura/env.h" 11 #include "ui/aura/env.h"
13 #include "ui/aura/root_window.h" 12 #include "ui/aura/root_window.h"
14 #include "ui/aura/test/event_generator.h" 13 #include "ui/aura/test/event_generator.h"
15 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
16 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/base/text/text_elider.h" 16 #include "ui/base/text/text_elider.h"
18 #include "ui/gfx/font.h" 17 #include "ui/gfx/font.h"
19 #include "ui/gfx/point.h" 18 #include "ui/gfx/point.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // be able to show tooltips on the primary display. 527 // be able to show tooltips on the primary display.
529 aura::test::EventGenerator generator1(root_windows[0]); 528 aura::test::EventGenerator generator1(root_windows[0]);
530 generator1.MoveMouseRelativeTo(widget1->GetNativeView(), 529 generator1.MoveMouseRelativeTo(widget1->GetNativeView(),
531 view1->bounds().CenterPoint()); 530 view1->bounds().CenterPoint());
532 FireTooltipTimer(); 531 FireTooltipTimer();
533 EXPECT_TRUE(IsTooltipVisible()); 532 EXPECT_TRUE(IsTooltipVisible());
534 } 533 }
535 534
536 } // namespace test 535 } // namespace test
537 } // namespace ash 536 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698