summaryrefslogtreecommitdiffstats
path: root/ui/aura/test/aura_test_base.cc
Commit message (Collapse)AuthorAgeFilesLines
* Gesture Recognizer: Make short long press time configurable.varunjain@chromium.org2012-06-191-0/+1
| | | | | | | | | | BUG=133322 TEST=none Review URL: https://chromiumcodereview.appspot.com/10532212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143011 0039d316-1c4b-4281-b951-d872f2087c98
* Add two finger tap gesture to gesture recognizer.varunjain@chromium.org2012-06-051-0/+1
| | | | | | | | | | | BUG=126058 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140553 Review URL: https://chromiumcodereview.appspot.com/10447129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140626 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 140553 - Add two finger tap gesture to gesture recognizer.cbentzel@chromium.org2012-06-051-1/+0
| | | | | | | | | | | | BUG=126058 TEST=none Review URL: https://chromiumcodereview.appspot.com/10447129 TBR=varunjain@chromium.org Review URL: https://chromiumcodereview.appspot.com/10541009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140559 0039d316-1c4b-4281-b951-d872f2087c98
* Add two finger tap gesture to gesture recognizer.varunjain@chromium.org2012-06-051-0/+1
| | | | | | | | | BUG=126058 TEST=none Review URL: https://chromiumcodereview.appspot.com/10447129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140553 0039d316-1c4b-4281-b951-d872f2087c98
* Fix long press delay in gesture configuration.varunjain@chromium.org2012-06-051-1/+1
| | | | | | | | | | BUG=none TEST=manual Review URL: https://chromiumcodereview.appspot.com/10520022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140543 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce TextInputTestSupport.nona@chromium.org2012-05-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL is preparation for http://codereview.chromium.org/10388220. This CL does not affect current test contents or browser behaviors. This CL contains follows: 1. Add chromeos and dbus include rule into ui/DEPS To replace text inputting module from libibus to chrome dbus library, ui/base/ime/* should depend to chromeos/dbus/* and dbus/* 2. Introduce TextInputSupport for input testing. To use chorme library, should initialize DBusThreadManager before using DBusThreadManager instance. 3. Calls TextInputSupport::Initialize/Shutdown for some test. Some test uses text inputting module implicitly. So should call Initialize/Shutdown on SetUp/TearDown. BUG=126947 TEST=browser_tests,interactive_ui_tests,ui_unittests,aura_unittests,aura_shell_unittests,unit_tests,chromeos_unittests,dbus_unittets Review URL: https://chromiumcodereview.appspot.com/10447022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139775 0039d316-1c4b-4281-b951-d872f2087c98
* Use AuraTestHelper to initialize aura environment in testoshima@chromium.org2012-05-301-22/+5
| | | | | | | | | | | | | | - Moved common initialization code to AuraTestHelper. - Removed AuraTestHelper from ash_test_base because it should use ash environment. - Changed tests to use AuraTestHelper BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10452039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139454 0039d316-1c4b-4281-b951-d872f2087c98
* * Separated implementation class from gfx::Screenoshima@chromium.org2012-04-251-6/+2
| | | | | | | | | | | | * Moved Monitor class to gfx/. * Converted all use of gfx::Screen to match new API BUG=115347,111990 TEST=none Review URL: https://chromiumcodereview.appspot.com/9960042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133961 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 133261 - Gesture Recognition unit tests have too many dependencies.thestig@chromium.org2012-04-201-1/+17
| | | | | | | | | | | | | | | | | | | | | Most tests in gesture_recognizer_unittest.cc were rewritten to rely solely on GestureSequence. Several gaps in existing testing were filled, include double tap and touch cancel tests. The tests now ensure that GestureEvents are returned in the correct order, and consistenly verify that no unexpected events occurred. Tests on the GestureSequence ensure that the sequence of states passed through is as expected. BUG=120713 TEST=GestureRecognizerTest.*, GestureSequenceTest.* Review URL: http://codereview.chromium.org/9873033 TBR=tdresser@chromium.org Review URL: https://chromiumcodereview.appspot.com/10166017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133281 0039d316-1c4b-4281-b951-d872f2087c98
* Gesture Recognition unit tests have too many dependencies.tdresser@chromium.org2012-04-201-17/+1
| | | | | | | | | | | | | | | | | | Most tests in gesture_recognizer_unittest.cc were rewritten to rely solely on GestureSequence. Several gaps in existing testing were filled, include double tap and touch cancel tests. The tests now ensure that GestureEvents are returned in the correct order, and consistenly verify that no unexpected events occurred. Tests on the GestureSequence ensure that the sequence of states passed through is as expected. BUG=120713 TEST=GestureRecognizerTest.*, GestureSequenceTest.* Review URL: http://codereview.chromium.org/9873033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133261 0039d316-1c4b-4281-b951-d872f2087c98
* Aura demo fixoshima@chromium.org2012-04-141-1/+1
| | | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132294 Review URL: https://chromiumcodereview.appspot.com/10082008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132309 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132294 - Aura demo fixeroman@chromium.org2012-04-131-1/+1
| | | | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Review URL: http://codereview.chromium.org/10082008 TBR=oshima@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132298 0039d316-1c4b-4281-b951-d872f2087c98
* Aura demo fixoshima@chromium.org2012-04-131-1/+1
| | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Review URL: http://codereview.chromium.org/10082008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132294 0039d316-1c4b-4281-b951-d872f2087c98
* Aura/Ash split: Make most unit tests compile without USE_ASHerg@chromium.org2012-04-131-1/+6
| | | | | | | | | | BUG=116458 TEST=none Review URL: http://codereview.chromium.org/10067019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132107 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move gesture-recognizer into ui/base/.sadrul@chromium.org2012-04-051-15/+18
| | | | | | | | | | | | | | Moving the gesture-recognizer into ui/base/ makes it possible to be used by both aura and views independently. This is the first step: add an interface for touch-events and gesture-events so that the gesture recognizer does not have to depend on aura or views events. BUG=121744 TEST=none Review URL: https://chromiumcodereview.appspot.com/9958136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131023 0039d316-1c4b-4281-b951-d872f2087c98
* Don't set single monitor manager under multi monitor environment.oshima@chromium.org2012-03-301-1/+2
| | | | | | | | | BUG=28581 TEST=none Review URL: https://chromiumcodereview.appspot.com/9923027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129867 0039d316-1c4b-4281-b951-d872f2087c98
* Gesture recognition constants should all be stored in the ↵tdresser@chromium.org2012-03-291-0/+20
| | | | | | | | | | | | GestureConfiguration object. BUG=119086 TEST=GestureRecognizerTest.* Review URL: http://codereview.chromium.org/9751011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129649 0039d316-1c4b-4281-b951-d872f2087c98
* Native bounds support to host windows.oshima@chromium.org2012-03-161-3/+3
| | | | | | | | | | | | | | | | | | | * Moved SingleMonitorManager into separate file. This is a default MonitorManager and creates RootWindow for PrimaryMonitor. * Added MonitorObserver and moved monitor change logic to ash. * MultiMonitorManager class and its layout logic will live in ash too. * Added ability to move host window so that we can re-arrange root window when switching primary monitor. * Removed monitor_manager_x11, which I committed by accident. * Use (0,0) for monitor/workarea bounds because the coordinate isn't translated yet for non primary screens. BUG=115510 TEST=none Review URL: https://chromiumcodereview.appspot.com/9703083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127231 0039d316-1c4b-4281-b951-d872f2087c98
* Original CL (http://codereview.chromium.org/9390038/) somehow got screwed ↵oshima@chromium.org2012-03-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | and CQ couldn't patch it. This is exact copy of the original CL to land. * Move automation/ui_controls to ui/ui_controls * Refactored aura impl so that ui/ui_controls doesn't depend on aura. * Moved MoveMouseToCenterAndPress to ui_test_util.h as it depends on views and can't be declared in ui. * a couple of cleanups: - Renamed gtk_screen_utils.h to _util.h to match other util.h files. - indent fix - remove unnecessary includes. This CL allows a test to use ui_controls without depending on chrome. TBR=sky@chromium.org,erg@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/9699098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127138 0039d316-1c4b-4281-b951-d872f2087c98
* MonitorManager to manage multiple monitors.oshima@chromium.org2012-03-141-0/+4
| | | | | | | | | | | This is clone of issue 9689027, which I can't access due to some internal error. BUG=115510 TEST=none Review URL: https://chromiumcodereview.appspot.com/9699013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126685 0039d316-1c4b-4281-b951-d872f2087c98
* Recommit r125950, which was reverted by r125958 due to link failures on ↵erg@chromium.org2012-03-131-0/+2
| | | | | | | | | | | | | | | win_aura bot. Aura/Ash split: Move ScreenAura to aura::RootWindowScreen. What is now aura::RootWindowScreen was tightly bundled with aura::RootWindow. Instead of moving it to ash::ScreenAsh, I renamed it aurea::RootWindowScreen because there's a bunch of unit tests that use RootWindow as if it were the desktop. Screen integration stuff has been moved out of RootWindow (and related observers) and into ash::Shell. BUG=116458 First Review URL: http://codereview.chromium.org/9616045 Review URL: http://codereview.chromium.org/9696008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126464 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 125950 - Aura/Ash split: Move ScreenAura to aura::RootWindowScreen.isherman@chromium.org2012-03-101-2/+0
| | | | | | | | | | | | | | What is now aura::RootWindowScreen was tightly bundled with aura::RootWindow. Instead of moving it to ash::ScreenAsh, I renamed it aurea::RootWindowScreen because there's a bunch of unit tests that use RootWindow as if it were the desktop. Screen integration stuff has been moved out of RootWindow (and related observers) and into ash::Shell. BUG=116458 Review URL: http://codereview.chromium.org/9616045 TBR=erg@chromium.org Review URL: https://chromiumcodereview.appspot.com/9667017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125958 0039d316-1c4b-4281-b951-d872f2087c98
* Aura/Ash split: Move ScreenAura to aura::RootWindowScreen.erg@chromium.org2012-03-101-0/+2
| | | | | | | | | | | What is now aura::RootWindowScreen was tightly bundled with aura::RootWindow. Instead of moving it to ash::ScreenAsh, I renamed it aurea::RootWindowScreen because there's a bunch of unit tests that use RootWindow as if it were the desktop. Screen integration stuff has been moved out of RootWindow (and related observers) and into ash::Shell. BUG=116458 Review URL: http://codereview.chromium.org/9616045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125950 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the singleton instance get/delete methods from RootWindow (yay)ben@chromium.org2012-03-021-10/+9
| | | | | | | | | http://crbug.com/112131 TEST=none Review URL: http://codereview.chromium.org/9535025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124635 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 124461 - Remove the singleton instance get/delete methods from ↵ben@chromium.org2012-03-011-9/+10
| | | | | | | | | | | | | RootWindow (yay) http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9535025 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9564023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124479 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the singleton instance get/delete methods from RootWindow (yay)ben@chromium.org2012-03-011-10/+9
| | | | | | | | http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9535025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124461 0039d316-1c4b-4281-b951-d872f2087c98
* Moves stacking client to Env.beng@google.com2012-02-271-1/+3
| | | | | | | | | | It can't live on the RootWindow since there's no way to locate a relevant RootWindow when it is called. http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9464048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123773 0039d316-1c4b-4281-b951-d872f2087c98
* Replace RootWindow::GetInstance() usage in a bunch of tests with a new ↵ben@chromium.org2012-02-181-4/+4
| | | | | | | | | | | | root_window() accessor exposed on AuraTestBase. Also fixes one place in window.cc to use GetRootWindow() rather than RootWindow::GetInstance(). http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9421009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122634 0039d316-1c4b-4281-b951-d872f2087c98
* A bevy of Aura test changes:ben@chromium.org2012-02-171-35/+7
| | | | | | | | | | | | - renames aura_shell_test_base to ash_test_base - AshTestBase no longer subclasses AuraTestBase, instead now it and AuraTestBase both own a helper that does common initialization. This is necessary because in subsequent changes ash::Shell will be responsible for creating and owning its own RootWindow, whereas Aura code could have N RootWindows. - Makes ScreenAura take a RootWindow instead of using RootWindow::GetInstance() http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9425015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122597 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Rationalize window mode initializationjamescook@chromium.org2012-02-101-1/+2
| | | | | | | | | | | | | | | | | A. Unit tests run in 800x600 (so width != height) with a special static bool set to force overlapping window mode. B1. Developers with no switches set start with a 1280x1024 window in overlapping mode. B2. The screen resolution heuristic will choose overlapping mode if the screen is > 800 pixels tall, which makes B1 easy. C. Developer host window reshapes are interpreted as resolution changes, so if the developer makes the window big the mode switches to overlapping. D. Passing --aura-window-mode=<foo> sets the window mode for the entire session. This is *not* passed by session manager. If a device starts up with a low-resolution external monitor, it gets compact mode. BUG=113299 TEST=aura_shell_unittests ShellTest.*, manually running linux_chromeos with --aura-window-mode=compact / overlapping, manual test on device Review URL: http://codereview.chromium.org/9369050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121567 0039d316-1c4b-4281-b951-d872f2087c98
* Move OnWindowInitialized() from RootWindowObserver to EnvObserver, the ↵ben@chromium.org2012-02-031-0/+2
| | | | | | | | | | observer of a new global singleton "Env". This will allow us to support multiple RootWindows. http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9310071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120349 0039d316-1c4b-4281-b951-d872f2087c98
* Disable animations during aura tests.vollick@google.com2012-02-021-0/+4
| | | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120092 Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120147 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 120092 - Reland 120074 -- Disable animations during aura tests.vollick@google.com2012-02-011-4/+0
| | | | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Review URL: https://chromiumcodereview.appspot.com/9222018 TBR=vollick@google.com Review URL: https://chromiumcodereview.appspot.com/9320018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120097 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 120074 -- Disable animations during aura tests.vollick@google.com2012-02-011-0/+4
| | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120092 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 120074 - Disable animations during aura tests.vollick@google.com2012-02-011-4/+0
| | | | | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9222018 TBR=vollick@google.com Review URL: https://chromiumcodereview.appspot.com/9316039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120075 0039d316-1c4b-4281-b951-d872f2087c98
* Disable animations during aura tests.vollick@google.com2012-02-011-0/+4
| | | | | | | | | | | | | This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9222018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120074 0039d316-1c4b-4281-b951-d872f2087c98
* Aura Shell needs to exist on Macdhollowa@chromium.org2012-01-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds first cut at "Aura Shell.app" on Mac. The 'ash_shell' is extended to generate a Cocoa application. This application brings up a single window containing the Aura desktop. The main view of this window provides an accelerated surface to Aura in which it can composite and draw its results. What works: - The application launches and renders the Aura desktop and background - Mouse movement, clicking, double-clicking, and interactions with Aura windows and widgets - Text buttons render with Skia text (needs improvement) - Non-modal transient window button - Window-modal window button - System-modal window button - Example Widgets button (checkboxes, radios, buttons) - Lock Screen button - Create Non-Resizable window button - Create Pointy Bubble button - Create Widow button - Switcher and Taskbar What doesn't work: - Open Views Examples Window button - Views menus - Views scrollbars - Views accelerators - Views tooltips - Drag and drop - Anything involving MessageLoop dispatcher logic - Mouse movement doesn't pass through to Aura when mouse button is up Note: Required .gyp flags are: 'use_aura': 1, 'use_webkit_compositor': 1, BUG=109946 TEST=Manual tests. R=sky@chromium.org, thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/9232028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118222 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt at moving the StackingClient to a property on the RootWindow.ben@chromium.org2011-12-151-8/+0
| | | | | | | | | | | This time, we allow the StackingClient to be optional. If not specified, unparented windows will just be added to the RootWindow. BUG=none TEST=existing automation Review URL: http://codereview.chromium.org/8916020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114571 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r114369 "Store StackingClient on RootWindow in a property."oshima@chromium.org2011-12-141-1/+2
| | | | | | | | | | | | This reverts commit da56a47ab4279016cd690e576bee1d81d414aac5. TBR=ben@chromium.org BUG=none TEST=browser_tests should pass without crash Review URL: http://codereview.chromium.org/8938015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114390 0039d316-1c4b-4281-b951-d872f2087c98
* Store StackingClient on RootWindow in a property.ben@chromium.org2011-12-141-2/+1
| | | | | | | | | BUG=none TEST=existing unit tests. Review URL: http://codereview.chromium.org/8926008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114369 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Desktop->RootWindow.ben@chromium.org2011-12-071-8/+8
| | | | | | | | | BUG=none TEST=compiles TBR=sky Review URL: http://codereview.chromium.org/8771015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113303 0039d316-1c4b-4281-b951-d872f2087c98
* DefaultDispatcher for MessagePumpXoshima@chromium.org2011-11-231-1/+1
| | | | | | | | | | | | | | MPX itself doesn't know how to handle events and we've been converting MessageLoop::Run() -> Desktop::Run() or RunAllPending to use ui_test_utils::RunAllPendingInMessageLoop(). It's no longer necessary with this CL. Windows's message pump can dispatch events without dispatcher. BUG=none TEST=none, but I believe some of browser_tests on aura is flaky because of this, and this CL should make them less/non flaky. Review URL: http://codereview.chromium.org/8635014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111324 0039d316-1c4b-4281-b951-d872f2087c98
* [Aura] Support always-on-top top level window.xiyuan@chromium.org2011-11-151-2/+6
| | | | | | | | | | BUG=97256,102582 TEST=AlwaysOnTop related tests in ShellTest should pass. Review URL: http://codereview.chromium.org/8387043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109990 0039d316-1c4b-4281-b951-d872f2087c98
* Create a new aura client API dir and move constants and desktop delegate to it.ben@chromium.org2011-11-091-6/+6
| | | | | | | | | | Rename DesktopDelegate to StackingClient. BUG=none TEST=none Review URL: http://codereview.chromium.org/8508020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109323 0039d316-1c4b-4281-b951-d872f2087c98
* Add workspace to desktoposhima@google.com2011-10-261-0/+5
| | | | | | | | | | | | | | | | * Windows are now managed by workspace manager and laid out as such. * Window activation triggers active workspace switch. * Clicking backround toggles overview mode * Replaces TileWindow layout with overview mode. You can drag window, but it doesn't actually move the window (yet). BUG=none TEST=new tests are added to workspace_manager_unittests,default_container_layout_manager_unittests Review URL: http://codereview.chromium.org/8381015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107304 0039d316-1c4b-4281-b951-d872f2087c98
* ui::TestCompositor::TestCompositor() constructor has been changed to take a ↵backer@chromium.org2011-10-251-7/+0
| | | | | | | | | | | a CompositorDelegate* as a parameter. It can be NULL to get the same behaviour as before. But some tests actually require ScheduleDraw() to cause a draw to happen, in order to test that their real delegate is doing its job. Also, we move the compositor_factory from views::Widget and aura::Desktop to ui::Compositor. BUG=101091 TEST=bots stay green Review URL: http://codereview.chromium.org/8240006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107103 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Make tests pass Desktop's dispatcher to message loop.derat@chromium.org2011-10-191-1/+2
| | | | | | | | | | | | | | | | | | Pass the Desktop's MessageLoop::Dispatcher to MessageLoopForUI::RunAllPendingWithDispatcher() instead of just calling RunAllPending() without a dispatcher. Otherwise, we frequently get stuck forever in MessagePumpX::RunOnce(). g_main_context_iteration() appears to return true (indicating that it performed work) indefinitely there for reasons that are unclear to me. BUG=100671 TEST=ran aura_unittests successfully locally in conjunction with a change that was previously hanging consistently Review URL: http://codereview.chromium.org/8346023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106301 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Don't recycle Desktops between tests.derat@chromium.org2011-10-181-9/+15
| | | | | | | | | | | | | | | | | | | | We were previously using the same static Desktop object across all tests. DesktopHostLinux hangs on to MessagePumpX's connection to the X server. We create a new MessageLoop for each test, so any attempts by DesktopHostLinux to send X requests after the first test finished would result in a crash. This change makes us throw out the Desktop object (and hence, the DesktopHostLinux) after each test, along with cleaning up some other bits of the testing code. BUG=100425 TEST=ran a test that formerly crashed due to the problem described above; it works now Review URL: http://codereview.chromium.org/8294006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106169 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Merge RootWindow into Desktop.sadrul@chromium.org2011-10-181-1/+1
| | | | | | | | | | | | | | Notable changes: . Window::GetRoot gets renamed to Window::GetDesktop. . Desktop::Show gets renamed to Desktop::ShowDesktop, to disambiguate with Window::Show. BUG=none TEST=none Review URL: http://codereview.chromium.org/8346009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106133 0039d316-1c4b-4281-b951-d872f2087c98
* Move some code around...ben@chromium.org2011-10-101-0/+60
| | | | | | | | | | | | | test infrastructure -> aura/test aura_shell_main -> aura/examples BUG=none TEST=none TBR=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104755 Review URL: http://codereview.chromium.org/8223006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104777 0039d316-1c4b-4281-b951-d872f2087c98