summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window.h
Commit message (Collapse)AuthorAgeFilesLines
* Move OnWindowInitialized() from RootWindowObserver to EnvObserver, the ↵ben@chromium.org2012-02-031-3/+0
| | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | 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
* Adds two new observer methods to allow code to be notified when a Window is ↵ben@chromium.org2012-02-011-6/+6
| | | | | | | | | | | | added/removed from a RootWindow. This allows hierarchy-specific cleanup code to execute when a Window is removed rather than when it is destroyed, necessary for multiple root windows. http://crbug.com/112131 TEST=see unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119976 Review URL: http://codereview.chromium.org/9315015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120025 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 119976 - Adds two new observer methods to allow code to be notified ↵ben@chromium.org2012-01-311-6/+6
| | | | | | | | | | | | | when a Window is added/removed from a RootWindow. This allows hierarchy-specific cleanup code to execute when a Window is removed rather than when it is destroyed, necessary for multiple root windows. http://crbug.com/112131 TEST=see unittests Review URL: https://chromiumcodereview.appspot.com/9315015 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9315017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119986 0039d316-1c4b-4281-b951-d872f2087c98
* Adds two new observer methods to allow code to be notified when a Window is ↵ben@chromium.org2012-01-311-6/+6
| | | | | | | | | | added/removed from a RootWindow. This allows hierarchy-specific cleanup code to execute when a Window is removed rather than when it is destroyed, necessary for multiple root windows. http://crbug.com/112131 TEST=see unittests Review URL: https://chromiumcodereview.appspot.com/9315015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119976 0039d316-1c4b-4281-b951-d872f2087c98
* Makes GetRootWindow() public on Window so we can begin to convert uses of ↵ben@chromium.org2012-01-311-4/+4
| | | | | | | | | | RootWindow::GetInstance(). http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9318002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119955 0039d316-1c4b-4281-b951-d872f2087c98
* Synthesize mouse move event after window creation/deletion or ↵oshima@chromium.org2012-01-271-3/+33
| | | | | | | | | | | | | size/visibiilty changed I also updated method names to match other OnXXX methods. BUG=111073 TEST=to be added Review URL: https://chromiumcodereview.appspot.com/9235025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119483 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add event queues in the GestureRecognizer.sadrul@chromium.org2012-01-261-4/+19
| | | | | | | | | | | | | | | | | Event-queues allow the GestureRecognizer to maintain multiple states for different gestures. Especially, this makes it possible to correctly process queued up (asynchronous) touch-events at the same time it processes synchronous touch-events. Throttling/filtering touch-events that go to the renderer is now removed. This may be added back at a later time. BUG=110230 TEST=none (will be added in a future CL: http://codereview.chromium.org/9129012/) Review URL: https://chromiumcodereview.appspot.com/9150046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119278 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Expose platform's cursor grab API from RootWindow.varunjain@chromium.org2012-01-191-0/+5
| | | | | | | | | | BUG=102563 TEST=none Review URL: http://codereview.chromium.org/9253008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118329 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Change ownership of the GestureRecognizer.sadrul@chromium.org2012-01-191-4/+2
| | | | | | | | | | | | | | Instead of the GestureRecognizer being a singleton, it is created and maintained by the RootWindow (which also is a singleton). Also, add myself and rjkroege@ as GR's OWNERS BUG=none TEST=none (no functional change) Review URL: https://chromiumcodereview.appspot.com/9250030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118304 0039d316-1c4b-4281-b951-d872f2087c98
* Aura Shell needs to exist on Macdhollowa@chromium.org2012-01-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* aura: Move GestureRecognizer from views into aura.sadrul@chromium.org2012-01-191-0/+10
| | | | | | | | | | | Remove deprecated GestureManager, and move the functional GestureRecognizer from views into aura. BUG=110227 TEST=views_unittests:GestureEvent, aura_unittests:GestureRecognizerTest Review URL: https://chromiumcodereview.appspot.com/9255019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118200 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add method to the RootWindow to warp the mouse pointer.varunjain@chromium.org2012-01-171-0/+3
| | | | | | | | | | BUG=102563 TEST=manually Review URL: http://codereview.chromium.org/9179013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117967 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Gesture event plumbing (skeleton).sadrul@chromium.org2012-01-171-0/+7
| | | | | | | | | | | | | Add gesture event plumbing through aura. This is not functional just yet. Subsequent CLs will move the gesture-recognizer from views into aura, which will then generate and deliver aura gesture events. BUG=11024 TEST=no functional changes yet. Tests will be added when GR is moved into aura. Review URL: https://chromiumcodereview.appspot.com/9221014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117911 0039d316-1c4b-4281-b951-d872f2087c98
* * Don't activate a window if screen is locked.oshima@chromium.org2012-01-131-0/+1
| | | | | | | | | | | | | * StopEventsPropagation should check window visibility. * Changed IsScreenLocked to use the same logic as CanFocus. BUG=none TEST=new test case is added to window_unittests.cc Review URL: http://codereview.chromium.org/9181012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117600 0039d316-1c4b-4281-b951-d872f2087c98
* Remove task.h and finish base::Bind() migration.ajwong@chromium.org2012-01-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Over 341 CLs, in ~3 months, touching 3251 unique files! Top 5 most CLs: (121) jhawkins ( 45) dcheng ( 24) achuith ( 23) csilv ( 12) tfarina ( 12) groby ~1000 files touched: (918) jhawkins 100+ files touched: (486) ajwong (385) willchan (372) dcheng (126) csilv (123) fischman (112) sergeyu 49+ files touched: (65) tfarina (57) acolwell (52) adamk (49) tzik BUG=35223 TEST=existing Review URL: http://codereview.chromium.org/9114020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116748 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: Implement power button animations for Aura.derat@chromium.org2012-01-041-2/+2
| | | | | | | | | | | | | | | This adds animated transitions first to the lock screen and then to shutdown similar to those currently implemented in the Chrome OS power manager and X window manager. I'll add support for the lock key in a later change. BUG=98328 TEST=added tests; also did a lot of manual testing TBR=evan@chromium.org Review URL: http://codereview.chromium.org/8976012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116245 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Automatically use compact window mode on narrow displaysjamescook@chromium.org2011-12-221-0/+3
| | | | | | | | | | | We default to compact mode on displays with a width of 1366 (ZGB) and narrower. Only do this when we're not running in a window, to avoid changing the default for Aura developers running on desktop workstations. BUG=108187 TEST=added unit test Review URL: http://codereview.chromium.org/9018022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115606 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Cursor should hide when touch event triggered by touchscreenjamescook@chromium.org2011-12-201-0/+3
| | | | | | | | | | | | | Original patch at http://codereview.chromium.org/8819014/ by Junmin Zhu <junmin.zhu@intel.com> BUG=106001 TEST=manually TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8989023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115193 0039d316-1c4b-4281-b951-d872f2087c98
* CMT can now generate motion events w/ valuators instead of a sequence of ↵davemoore@chromium.org2011-12-151-0/+5
| | | | | | | | | | | button events. This supports them BUG=None TEST=None Review URL: http://codereview.chromium.org/8907005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114660 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt at moving the StackingClient to a property on the RootWindow.ben@chromium.org2011-12-151-6/+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-0/+6
| | | | | | | | | | | | 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-6/+0
| | | | | | | | | 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
* Move the concept of Activation to the Shell.ben@chromium.org2011-12-131-23/+2
| | | | | | | | | | | | | | | | | The Active Window is now stored in a property on the RootWindow. Classes wishing to observe changes to this can implement WindowObserver and attach to the RootWindow to be notified of changes in this property. We provide an ActivationClient interface in Aura for customers to use to set/get the active window, and deactivate a window. This is because setting the active window involves more than just changing the property, there is some additional book-keeping that must be done. The ActivationClient is stored in a property on the RootWindow. We also provide an ActivationDelegate interface in Aura that window owners can use to be notified of changes in activation state, and to specify whether or not a window can be activated. The ActivationDelegate should be stored on the relevant window in a property. I moved a lot of Activation-related functionality out of Aura, including all of the unit tests, now on ActivationController, and the associated WindowDelegate implementations which have now become a single TestActivationDelegate implementation. BUG=none TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114095 Review URL: http://codereview.chromium.org/8894018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114121 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114095 - Move the concept of Activation to the Shell.ben@chromium.org2011-12-121-2/+23
| | | | | | | | | | | | | | | | | | | The Active Window is now stored in a property on the RootWindow. Classes wishing to observe changes to this can implement WindowObserver and attach to the RootWindow to be notified of changes in this property. We provide an ActivationClient interface in Aura for customers to use to set/get the active window, and deactivate a window. This is because setting the active window involves more than just changing the property, there is some additional book-keeping that must be done. The ActivationClient is stored in a property on the RootWindow. We also provide an ActivationDelegate interface in Aura that window owners can use to be notified of changes in activation state, and to specify whether or not a window can be activated. The ActivationDelegate should be stored on the relevant window in a property. I moved a lot of Activation-related functionality out of Aura, including all of the unit tests, now on ActivationController, and the associated WindowDelegate implementations which have now become a single TestActivationDelegate implementation. BUG=none TEST=unit tests Review URL: http://codereview.chromium.org/8894018 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8926004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114101 0039d316-1c4b-4281-b951-d872f2087c98
* Move the concept of Activation to the Shell.ben@chromium.org2011-12-121-23/+2
| | | | | | | | | | | | | | | | The Active Window is now stored in a property on the RootWindow. Classes wishing to observe changes to this can implement WindowObserver and attach to the RootWindow to be notified of changes in this property. We provide an ActivationClient interface in Aura for customers to use to set/get the active window, and deactivate a window. This is because setting the active window involves more than just changing the property, there is some additional book-keeping that must be done. The ActivationClient is stored in a property on the RootWindow. We also provide an ActivationDelegate interface in Aura that window owners can use to be notified of changes in activation state, and to specify whether or not a window can be activated. The ActivationDelegate should be stored on the relevant window in a property. I moved a lot of Activation-related functionality out of Aura, including all of the unit tests, now on ActivationController, and the associated WindowDelegate implementations which have now become a single TestActivationDelegate implementation. BUG=none TEST=unit tests Review URL: http://codereview.chromium.org/8894018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114095 0039d316-1c4b-4281-b951-d872f2087c98
* Rename Desktop->RootWindow.ben@chromium.org2011-12-071-0/+244
| | | | | | | | | 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
* aura: Merge RootWindow into Desktop.sadrul@chromium.org2011-10-181-83/+0
| | | | | | | | | | | | | | 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
* aura: Add support for touch events.sadrul@chromium.org2011-10-171-0/+6
| | | | | | | | | | | | | | Among the changes: . Add touch event handling in EventFilter. Be default, activates a window on TOUCH_START (like for MOUSE_PRESSED). . Move TouchEvent details functions into ui/. Moved the X11 implementations from views/ to ui/. NOTIMPLEMENTED on windows. . Disable RWHVAura et. al. for touchui for now (they are still compiled in, but not used). BUG=100269 TEST=none Review URL: http://codereview.chromium.org/8274025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105816 0039d316-1c4b-4281-b951-d872f2087c98
* Get more of RenderWidgetHostViewAura running.ben@chromium.org2011-10-131-0/+1
| | | | | | | | | | This displays content now (software-only) on Windows, and supports Mouse Events. keyboard events are not yet working. http://crbug.com/99757 TEST=none Review URL: http://codereview.chromium.org/8234026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105359 0039d316-1c4b-4281-b951-d872f2087c98
* Respect consumes_events_ when attempting to set focus.ben@chromium.org2011-10-051-0/+3
| | | | | | | | BUG=none TEST=unit Review URL: http://codereview.chromium.org/8137014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104194 0039d316-1c4b-4281-b951-d872f2087c98
* Gets rid of the FocusManager as a concrete object, changes it to an ↵ben@chromium.org2011-10-041-6/+8
| | | | | | | | interface that RootWindow implements.RootWindow is already the center of our event tracking/targeting anyway.BUG=noneTEST=existing Review URL: http://codereview.chromium.org/8142003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103973 0039d316-1c4b-4281-b951-d872f2087c98
* Adds support for activation to aura.sky@chromium.org2011-09-271-0/+3
| | | | | | | | | | BUG=93938 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8041023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102840 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for MouseEnter/MouseExit event types to be sent to aura::Windows.ben@chromium.org2011-09-211-0/+5
| | | | | | | | BUG=none TEST=see unittest Review URL: http://codereview.chromium.org/7983039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102168 0039d316-1c4b-4281-b951-d872f2087c98
* Wires up mouse capture code for aura.sky@chromium.org2011-09-211-0/+21
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7976020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102115 0039d316-1c4b-4281-b951-d872f2087c98
* A bunch of changes related to window z-index:ben@chromium.org2011-09-201-1/+0
| | | | | | | | | | | | | | | - Keeps toplevel windows constrained in z-index between the desktop background (bottom-most) and the launcher (topmost). - Renames WindowManager to EventFilter, and moves it to the parent Window... i.e. when a window receives a mouse event its parent's event filter will get the opportunity to process it before that window's delegate does. - WindowManager's content was mostly specific to toplevel window movement, so this content moved to an EventFilter subclass called ToplevelEventFilter. - Adds a name property to aura::Windows useful for debugging. - Prevent Windows with no delegate from taking part in event processing. - Initialize the Aura_Shell in DesktopWindow, provide a single exported method - aura_shell::InitDesktopWindow() - to initialize it from the exe main. BUG=none TEST=none Review URL: http://codereview.chromium.org/7970001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101974 0039d316-1c4b-4281-b951-d872f2087c98
* Move Aura to UI subdir.ben@chromium.org2011-09-141-0/+43
BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/7886042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101156 0039d316-1c4b-4281-b951-d872f2087c98