summaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* Adds function to invert a transform to ui::Transformpkotwicz@chromium.org2011-10-242-0/+7
| | | | | | | | | | | Required for http://codereview.chromium.org/8368013/ BUG= None TEST= None Review URL: http://codereview.chromium.org/8383006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106992 0039d316-1c4b-4281-b951-d872f2087c98
* Cocoa: Support keyboard navigation in avatar menusail@chromium.org2011-10-242-0/+17
| | | | | | | | | | | | Added support for up arrow, down arrow, and enter key. BUG=75782 TEST= Review URL: http://codereview.chromium.org/8332008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106991 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Try to make Linux host resize code more reliable.derat@chromium.org2011-10-246-87/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | There's no guarantee that we'll get the host window size that we ask for. This adjusts WindowTest.Transform to not ask for a specific size, and instead just use the size it's been given. I also fixed a race in DesktopHostLinux::Show() when running under X window managers that don't take the _WM_S0 selection. We now wait for notification that the host window has been mapped before trying to focus it. I moved the logic for choosing to create a fullscreen host window out of DesktopHostLinux and into the browser. Finally, I changed DesktopHostLinux::SetSize() (called by Desktop::SetHostSize()) update the internal size and notify the desktop immediately. BUG=100979,100894 TEST=tests pass on ion3; fullscreen window is created on chrome os Review URL: http://codereview.chromium.org/8374005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106989 0039d316-1c4b-4281-b951-d872f2087c98
* Notify Desktop::OnHostRezied only when the size has changed or resize is ↵oshima@google.com2011-10-241-2/+9
| | | | | | | | | | | requsted BUG=none TEST=none Review URL: http://codereview.chromium.org/8359005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106927 0039d316-1c4b-4281-b951-d872f2087c98
* Changes launcher animations to fade before moving.sky@chromium.org2011-10-243-39/+129
| | | | | | | | | | BUG=98345 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8369007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106926 0039d316-1c4b-4281-b951-d872f2087c98
* Explicit animation supportvollick@chromium.org2011-10-2421-216/+2510
| | | | | | | | | | | | | | | | | | | | High level description: - LayerPropertySetter is now LayerAnimator since it manages implicit/explicit animations and the animation queue. - LayerAnimationElement represents an animation curve. - LayerAnimationSequence owns a collection of elements. - The animator works as follows: o Has a queue of sequences and a collection of running sequences. o It knows the start time of each running sequence. o While there are running sequences, LayerAnimator::Step(base::TimeTicks now) is called periodically, and each of the running sequences are updated. BUG=None TEST=compositor_unittests, base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106768 Review URL: http://codereview.chromium.org/8247009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106915 0039d316-1c4b-4281-b951-d872f2087c98
* rename Run in MessageLoopForUI to RunWithDispatcheroshima@google.com2011-10-242-4/+4
| | | | | | | | | BUG=99471 TEST=none Review URL: http://codereview.chromium.org/8343023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106896 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Resize toplevel windows correctly when the desktop is resized.sadrul@chromium.org2011-10-224-7/+72
| | | | | | | | | BUG=none TEST=ToplevelWindowTest: MaximizeAfterDesktopResize and FullscreenAfterDesktopResize Review URL: http://codereview.chromium.org/8369004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106831 0039d316-1c4b-4281-b951-d872f2087c98
* Implement NativeWidgetAura::GetScreenBoundsoshima@chromium.org2011-10-223-4/+38
| | | | | | | | | | BUG=none TEST=added new tests to window_unittests. Review URL: http://codereview.chromium.org/8372008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106829 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebKit compositor in ui::Layerpiman@chromium.org2011-10-2221-51/+575
| | | | | | | | | | BUG=99524 TEST=compositor_unittests Review URL: http://codereview.chromium.org/8222028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106814 0039d316-1c4b-4281-b951-d872f2087c98
* Get the mousewheel to work on windows at least!BUG=noneTEST=noneben@chromium.org2011-10-211-2/+10
| | | | | | Review URL: http://codereview.chromium.org/8371011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106805 0039d316-1c4b-4281-b951-d872f2087c98
* Support grouping taskbar icons for panels with regular taskbar icon for ↵jianli@chromium.org2011-10-212-34/+54
| | | | | | | | | | | | | Chromium on Windows 7. Per discussion, we do not want to use different taskbar icon for each panel since they're now managed altogether. We also need to set its icon path so that the taskbar icon will not be changed once all chromium tabbed windows are closed. BUG=none TEST=Manual test by launching panels, closing tabbed window and verifying taskbar icon for panels are grouped together with chrome Review URL: http://codereview.chromium.org/8366026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106790 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 106768 - Explicit animation supportvollick@chromium.org2011-10-2121-2509/+216
| | | | | | | | | | | | | | | | | | | | | High level description: - LayerPropertySetter is now LayerAnimator since it manages implicit/explicit animations and the animation queue. - LayerAnimationElement represents an animation curve. - LayerAnimationSequence owns a collection of elements. - The animator works as follows: o Has a queue of sequences and a collection of running sequences. o It knows the start time of each running sequence. o While there are running sequences, LayerAnimator::Step(base::TimeTicks now) is called periodically, and each of the running sequences are updated. BUG=None TEST=compositor_unittests, base_unittests Review URL: http://codereview.chromium.org/8247009 TBR=vollick@chromium.org Review URL: http://codereview.chromium.org/8375008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106774 0039d316-1c4b-4281-b951-d872f2087c98
* Explicit animation supportvollick@chromium.org2011-10-2121-216/+2509
| | | | | | | | | | | | | | | | | | High level description: - LayerPropertySetter is now LayerAnimator since it manages implicit/explicit animations and the animation queue. - LayerAnimationElement represents an animation curve. - LayerAnimationSequence owns a collection of elements. - The animator works as follows: o Has a queue of sequences and a collection of running sequences. o It knows the start time of each running sequence. o While there are running sequences, LayerAnimator::Step(base::TimeTicks now) is called periodically, and each of the running sequences are updated. BUG=None TEST=compositor_unittests, base_unittests Review URL: http://codereview.chromium.org/8247009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106768 0039d316-1c4b-4281-b951-d872f2087c98
* Fix permissions of files.sky@chromium.org2011-10-212-0/+0
| | | | | | | | | | | TBR=ben@chromium.org R=ben@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8372010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106767 0039d316-1c4b-4281-b951-d872f2087c98
* LayoutManager controls child bounds. Added SetChildBounds and several ↵oshima@google.com2011-10-2116-28/+393
| | | | | | | | | | | | | | | | | | | | listener methods to LayoutManager class. They will be used to implement more sophisticated behavior. Implemented DefaultContainerLayoutManager. Added test_support_aura component so that it can be shared between aura and aura_shell. Fixed component build for aura_shell_unittests BUG=none TEST=default_container_layout_manager_unittests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106508 Review URL: http://codereview.chromium.org/8296002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106761 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the ability to drag the items on the launcher around. Also makessky@chromium.org2011-10-2119-49/+574
| | | | | | | | | | | | | it so the app items are 32x32 and there are at most 2 favicons per window. BUG=98345 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8365012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106759 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Set default mouse cursor on desktop window.derat@chromium.org2011-10-211-2/+4
| | | | | | | | | | | | Without this, the pointer is invisible when running on a Chrome OS machine without the X window manager. BUG=101120 TEST=manual: checked that i can see the pointer now Review URL: http://codereview.chromium.org/8368001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106750 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Update the desktop size if the layer is not animating for transform.sadrul@chromium.org2011-10-214-1/+14
| | | | | | | | | BUG=none TEST=aura_unittests.Transform Review URL: http://codereview.chromium.org/8359032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106745 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD patches for ui, split from CR #8275005robert.nagy@gmail.com2011-10-212-2/+13
| | | | | | | | | | | | | | | | | | | | - use the correct cairo header location that is expected to be returned by pkg-config. This problably works on linux since /usr/include is included already. - the dl library is linux only - use the correct include dir for libjpeg if the system one is used BUG= TEST= Review URL: http://codereview.chromium.org/8347003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106737 0039d316-1c4b-4281-b951-d872f2087c98
* A couple of quick tweaks:ben@chromium.org2011-10-212-1/+2
| | | | | | | | | | | - give the desktop host window a name on windows, so I can find it more easily in spy tools. - move the status area to where the latest mocks show it as living. BUG=none TEST=none Review URL: http://codereview.chromium.org/8365025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106733 0039d316-1c4b-4281-b951-d872f2087c98
* Animate desktop rotations.ben@chromium.org2011-10-217-15/+30
| | | | | | | | | | . Adds a LayerDelegate method to notify of the end of an animation. BUG=none TEST=none Review URL: http://codereview.chromium.org/8364030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106658 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Take the focus at startup on X when no WM is running.derat@chromium.org2011-10-211-0/+8
| | | | | | | | | | | | When there's no X window manager to assign the focus to the host window, we need to do it ourselves. BUG=100894 TEST=none Review URL: http://codereview.chromium.org/8356016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106649 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Improve initial host window size.derat@chromium.org2011-10-216-8/+95
| | | | | | | | | | | | | | | | | This adds a --aura-host-window-size switch (taking an argument of the form "1024x768") that can be used to set the initial size for the host window. It also makes the Linux implementation automatically size the window to cover the entire screen if an X window manager isn't present (i.e. we're running on a Chrome OS device). BUG=100979 TEST=tried it on a chrome os device Review URL: http://codereview.chromium.org/8362002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106639 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug where we were not properly redrawing when bounds change. This was ↵ben@chromium.org2011-10-201-1/+1
| | | | | | | | | | | | causing a visual hang when resizing any RWHVA. This bug was introduced by http://codereview.chromium.org/8103014. BUG=none TEST=none Review URL: http://codereview.chromium.org/8366021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106630 0039d316-1c4b-4281-b951-d872f2087c98
* Fix HDC leak in RenderTextWin and avoid an unnecessary substr() call.asvitkine@chromium.org2011-10-202-10/+14
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8362008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106626 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 106606 - Use WebKit compositor in ui::Layerlipalani@chromium.org2011-10-2021-571/+51
| | | | | | | | | | | | | BUG=99524 TEST=compositor_unittests Review URL: http://codereview.chromium.org/8222028 TBR=piman@chromium.org Review URL: http://codereview.chromium.org/8360018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106615 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebKit compositor in ui::Layerpiman@chromium.org2011-10-2021-51/+571
| | | | | | | | | | BUG=99524 TEST=compositor_unittests Review URL: http://codereview.chromium.org/8222028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106606 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add transform support to Desktop.sadrul@chromium.org2011-10-2011-55/+190
| | | | | | | | | | | For painting, the transform gets applied to the root layer of the compositor. For testing purposes, ctrl+Home is set to rotate the desktop (this can be made better when there's hotkey support). BUG=100600 TEST=none Review URL: http://codereview.chromium.org/8329019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106594 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Lay out widgets when no X window manager is running.derat@chromium.org2011-10-202-1/+4
| | | | | | | | | | | | | | | | | When there's no window manager running, we don't get any ConfigureNotify events about the host window (since our initial size is honored and no resizes happen after that). This change makes us force a layout when adding each widget to DesktopLayoutManager. Otherwise, all of the widgets stay stuck in the upper-left corner of the window. BUG=100979 TEST=manual: ran it on a device with no window manager Review URL: http://codereview.chromium.org/8361007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106591 0039d316-1c4b-4281-b951-d872f2087c98
* Don't force osmesa for aura tests.backer@chromium.org2011-10-201-3/+0
| | | | | | | | | | R=sadrul BUG=none TEST=green linux_aura Review URL: http://codereview.chromium.org/8364012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106583 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r106508 "LayoutManager controls child bounds."oshima@google.com2011-10-2015-337/+20
| | | | | | | | | | | | | | Added SetChildBounds and several listener methods to LayoutManager class. They will be used to implement more sophisticated behavior." This reverts commit 5d72aa923ebd1068319b67a1dbaa163a324c4b45. TBR=sadrul@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8360009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106565 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes hole boundspkotwicz@chromium.org2011-10-202-1/+12
| | | | | | | | | | | | The hole bounds are with respect to the bounds of the parent. Thus they should be intersected with a representation of the bounds of the parent in terms of the parent BUG= None TEST= None Review URL: http://codereview.chromium.org/8356017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106551 0039d316-1c4b-4281-b951-d872f2087c98
* Move BubbleView logic into BubbleDelegateView.msw@chromium.org2011-10-201-17/+5
| | | | | | | | | | | Add customization ctor; override GetInitiallyFocusedView. BUG=97248,98322,98323 TEST=views_examples bubbles work as before. Review URL: http://codereview.chromium.org/8349015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106546 0039d316-1c4b-4281-b951-d872f2087c98
* Roll skia to r2506.bsalomon@google.com2011-10-203-1/+93
| | | | | | Review URL: http://codereview.chromium.org/8360002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106524 0039d316-1c4b-4281-b951-d872f2087c98
* Implement motion coalescing for XI2davemoore@chromium.org2011-10-201-0/+79
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8363001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106519 0039d316-1c4b-4281-b951-d872f2087c98
* LayoutManager controls child bounds. Added SetChildBounds and several ↵oshima@google.com2011-10-2015-20/+337
| | | | | | | | | | | | | | | | | | listener methods to LayoutManager class. They will be used to implement more sophisticated behavior. Implemented DefaultContainerLayoutManager. Added test_support_aura component so that it can be shared between aura and aura_shell. Fixed component build for aura_shell_unittests BUG=none TEST=default_container_layout_manager_unittests. Review URL: http://codereview.chromium.org/8296002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106508 0039d316-1c4b-4281-b951-d872f2087c98
* Turns on RWHVA.ben@chromium.org2011-10-202-2/+0
| | | | | | | | | | | 1. Makes sure to schedule a compositor draw when accelerated buffers are swapped on linux, otherwise we don't redraw the content area until the next time a draw is scheduled otherwise 2. Updates the logic in the NativeViewHost/NativeTabContentsContainer/View etc code to better deal with switching tabs. http://crbug.com/99757 TEST=none Review URL: http://codereview.chromium.org/8353021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106504 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes permissions of files.sky@chromium.org2011-10-202-0/+0
| | | | | | | | | | | TBR=ben@chromium.org R=ben@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8364002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106503 0039d316-1c4b-4281-b951-d872f2087c98
* Adds simple animation to the launcher when items are added/removed.sky@chromium.org2011-10-207-52/+315
| | | | | | | | | | BUG=98345 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8355026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106500 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetTargetBounds to window/layer.oshima@chromium.org2011-10-204-0/+18
| | | | | | | | | | | | This is necessary for WindowManager to deterimne the window's layout even when window is animating. BUG=none TEST=none Review URL: http://codereview.chromium.org/8357023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106438 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change MenuItemView API to string16.tfarina@chromium.org2011-10-201-2/+5
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8352015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106421 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Disable clipboard tests until aura has clipboard support.sadrul@chromium.org2011-10-191-0/+6
| | | | | | | | | BUG=97845 TEST=gfx_unittests Review URL: http://codereview.chromium.org/8342050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106413 0039d316-1c4b-4281-b951-d872f2087c98
* Fix visible parameter passed to WnidowObserveroshima@google.com2011-10-193-2/+65
| | | | | | | | | | BUG=none TEST=added test to window_unittests.cc R=sky@chromium.org Review URL: http://codereview.chromium.org/8344052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106402 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed bugs with Pepper 3D under dynamic GPU switching.kbr@chromium.org2011-10-191-4/+6
| | | | | | | | | | | | | | | | | | | | | Made Pepper 3D context creation code fully aware of GPU switching and changed the order of context creation and and fetching of the parent context. Creating the context potentially causes all existing contexts for that renderer, including the parent, to be lost. Detect shutting down of the GPU channel more quickly on the renderer side. Only reject context creation in GLContextCGL upon GpuPreference mismatch if the system supports dual GPUs. Will update tools/histograms/histograms.xml as soon as this is committed; must occur in a separate CL. BUG=100507 TEST=tested navigating to and from, and reloading, NaCl Pepper 3D samples on Mac 10.6.8 and 10.7.1; WebGL tests Review URL: http://codereview.chromium.org/8342024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106394 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary use of skia::ScopedPlatformPaint from RenderTextWin.asvitkine@chromium.org2011-10-191-12/+5
| | | | | | | | | | | Also, delete some unused includes. BUG=none TEST=compiles; --use-pure-views works as before Review URL: http://codereview.chromium.org/8355004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106387 0039d316-1c4b-4281-b951-d872f2087c98
* Get KeyEvents to limp in Aura. This assumes the desktop host is going to ↵ben@chromium.org2011-10-195-8/+23
| | | | | | | | | | send two aura::KeyEvents for every keydown - one raw key down, and one char. They share the same ET, but the first has is_char = false, the second is_char = true. http://crbug.com/99757 TEST=none Review URL: http://codereview.chromium.org/8342026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106374 0039d316-1c4b-4281-b951-d872f2087c98
* content: Rename the class in web_drag_source_gtk.h to content::WebDragSourceGtk.erg@chromium.org2011-10-191-2/+0
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8346020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106346 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Requery pointer position after host window resize.derat@chromium.org2011-10-194-4/+18
| | | | | | | | | | | | This makes us requery the pointer position so we can constrain the cached position within the host window. BUG=100087 TEST=none Review URL: http://codereview.chromium.org/8344032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106337 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Make key and mouse events for renderers work correctly in X11 with ↵sadrul@chromium.org2011-10-191-1/+1
| | | | | | | | | | | RWHVAura. BUG=none TEST=manually Review URL: http://codereview.chromium.org/8353005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106329 0039d316-1c4b-4281-b951-d872f2087c98