summaryrefslogtreecommitdiffstats
path: root/ash/app_list
Commit message (Collapse)AuthorAgeFilesLines
* ash: Don't dismiss app list on bubbles.xiyuan@chromium.org2012-04-131-2/+7
| | | | | | | | | | BUG=122450 TEST=Verify fix for issue 122450. Review URL: http://codereview.chromium.org/10071026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132260 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Better and faster text shadows.xiyuan@chromium.org2012-04-113-100/+45
| | | | | | | | | | | | | | | - Add a DrawStringWithShadows that draws text with shadows to canvas skia and RenderText; - Use DrawStringWithShadows in DropShadowLabel for better and faster text shadows; BUG=121694 TEST=Verify fix for issue 121694. Review URL: http://codereview.chromium.org/10008027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131696 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Make extension uninstall UI can use app list window as parent.xiyuan@chromium.org2012-04-092-2/+14
| | | | | | | | | | | | | | | | - Make window-modal window stack into the same container as its transient parent; - Make extension uninstall dialog window modal; - Make extension uninstall dialog a transient child of app list window when app list is showing; - Make app list stay when new active window is also in app list container; BUG=122374 TEST=Verify fix for issue 122374. Review URL: http://codereview.chromium.org/10027025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131478 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131193 - chromeos: No icon shadow for slow boards.xiyuan@chromium.org2012-04-095-23/+4
| | | | | | | | | | | | | | | | Shadow generate seems causing app list animation janky on slow boards. Thus, disable it on those boards. BUG=122371 TEST=Verify fix for issue 122371. Review URL: http://codereview.chromium.org/10008057 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10032008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131419 0039d316-1c4b-4281-b951-d872f2087c98
* chromeos: No icon shadow for slow boards.xiyuan@chromium.org2012-04-065-4/+23
| | | | | | | | | | | | | Shadow generate seems causing app list animation janky on slow boards. Thus, disable it on those boards. BUG=122371 TEST=Verify fix for issue 122371. Review URL: http://codereview.chromium.org/10008057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131193 0039d316-1c4b-4281-b951-d872f2087c98
* Fix use-after-free in AppListModelViewoshima@chromium.org2012-04-042-3/+5
| | | | | | | | | | R=xiyuan@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9963134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130674 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 129925 - ash: Icon cache for app list to save shadow generation time.xiyuan@chromium.org2012-03-314-9/+171
| | | | | | | | | | | | | | | | | | | | | | - Add an IconCache that stores processed (resized and shadow-generated) image, keyed by source image + desired size; - The cache is created with AppList controller and destroyed when controller is gone; - Controller marks all entries in cache unused before showing the UI and purges all unused entry after dismissing UI; - In item view, try cache first to get processed image before scheduling job, and update cache when background processing comes back; BUG=120961 TEST=Verify fix for issue 120961. Review URL: http://codereview.chromium.org/9934006 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9968024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130035 0039d316-1c4b-4281-b951-d872f2087c98
* Always show launcher and status if the app list is opened.jennyz@google.com2012-03-303-2/+15
| | | | | | | | | BUG=120230 TEST=The launcher and status should always be visible when app list is open. Review URL: https://chromiumcodereview.appspot.com/9802041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129960 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129925 - ash: Icon cache for app list to save shadow generation time.mihaip@chromium.org2012-03-304-167/+9
| | | | | | | | | | | | | | | | | | | | | | - Add an IconCache that stores processed (resized and shadow-generated) image, keyed by source image + desired size; - The cache is created with AppList controller and destroyed when controller is gone; - Controller marks all entries in cache unused before showing the UI and purges all unused entry after dismissing UI; - In item view, try cache first to get processed image before scheduling job, and update cache when background processing comes back; BUG=120961 TEST=Verify fix for issue 120961. Review URL: http://codereview.chromium.org/9934006 TBR=xiyuan@chromium.org Review URL: https://chromiumcodereview.appspot.com/9959039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129931 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Icon cache for app list to save shadow generation time.xiyuan@chromium.org2012-03-304-9/+167
| | | | | | | | | | | | | | | | | | | - Add an IconCache that stores processed (resized and shadow-generated) image, keyed by source image + desired size; - The cache is created with AppList controller and destroyed when controller is gone; - Controller marks all entries in cache unused before showing the UI and purges all unused entry after dismissing UI; - In item view, try cache first to get processed image before scheduling job, and update cache when background processing comes back; BUG=120961 TEST=Verify fix for issue 120961. Review URL: http://codereview.chromium.org/9934006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129925 0039d316-1c4b-4281-b951-d872f2087c98
* Set panels windows to always be on top.stevenjb@google.com2012-03-263-10/+22
| | | | | | | | | | | Make always on top windows part of WorkspaceLayoutManager but not part of any actual workspace. BUG=119794 TEST=Test minimizing, maximizing, and moving popup windows and panels in normal and maximized mode. Review URL: https://chromiumcodereview.appspot.com/9836089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128846 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Use CancellationFlag to properly cancel shadow generation.xiyuan@chromium.org2012-03-242-53/+51
| | | | | | | | | | BUG=none. TEST=none. Review URL: http://codereview.chromium.org/9837058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128704 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Use big char such as 'G' to calculate minimum title width.xiyuan@chromium.org2012-03-231-1/+3
| | | | | | | | | | | | GetAverageCharacterWidth does not work well for title because there are many upper case chars there. As a result, 15 chars are not guaranteed to be visible. BUG=119496 TEST=We should always be able to see 15 chars in app list title. Review URL: https://chromiumcodereview.appspot.com/9835058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128609 0039d316-1c4b-4281-b951-d872f2087c98
* Makes the launcher use a layer with a solid color, which is cheapersky@chromium.org2012-03-231-0/+1
| | | | | | | | | | | | than a textured layer. BUG=119581 TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9835028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128500 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Update app list layout:xiyuan@chromium.org2012-03-233-8/+18
| | | | | | | | | | | | | | - Get rid the screen edge padding of model view; - Make item tile bigger to fit screen better; - Change an item's left right padding form fixed 20px to 1 char; BUG=119496 TEST=Verify fix for issue 119496. Review URL: http://codereview.chromium.org/9836019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128423 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Add drop shadow to app list icons.xiyuan@chromium.org2012-03-232-7/+150
| | | | | | | | | | BUG=117238 TEST=Verify fix for issue 117238 Review URL: http://codereview.chromium.org/9816019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128397 0039d316-1c4b-4281-b951-d872f2087c98
* * Add RootWindow to RootWindowObserver::OnRootWindowResized as there can be ↵oshima@chromium.org2012-03-212-3/+5
| | | | | | | | | | | | | | more than one root window now. * Don't translate size in GetHostSize * Fix a few places that should use RootWindow's bounds instead of host bounds. BUG=115510 TEST=none Review URL: https://chromiumcodereview.appspot.com/9802001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127917 0039d316-1c4b-4281-b951-d872f2087c98
* ash: App list UI update for M19.xiyuan@chromium.org2012-03-209-97/+309
| | | | | | | | | | | | | | | | | | | | | | | | - Icon sizes starts from 128x128; - Choose font size and style based on icon size, use bold when font size < 14 and limit it to 12 as minimum; - Use shadow size 3 for title label; - 0.33 black hover; - Make item block size based on icon size and limit title width by using number of chars instead of pixels; - More padding to make title text feel less crowded; - Make item grid have a similar aspect ratio as its container and center it horizontally and vertically; - Update show/hide animation, chain hiding browser windows animation and app list animation instead of doing both at the same time; runs the dimming animation in parallel with them; BUG=118500 TEST=Verify fix for issue 118500 Review URL: http://codereview.chromium.org/9719010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127649 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Open app list and highlight the installed app.xiyuan@chromium.org2012-03-1610-23/+74
| | | | | | | | | | | | | | | | | | | | - Add a NOTIFICATION_APP_INSTALLED_TO_APPLIST similar to NOTIFICATION_APP_INSTALLED_TO_NTP; - OpenAppInstalledNTP -> OpenAppInstalledUI, which opens applist on ash and fires NOTIFICATION_APP_INSTALLED_TO_APPLIST; - Make AppListModelBuilder observes extension loading/unloading and NOTIFICATION_APP_INSTALLED_TO_APPLIST and updates model accordingly; - Make AppListView SetModel on its delegate explicitly; - Make AppListViewDelegate hosts a builder as its member and pass the model used by app list to the builder; BUG=117087 TEST=Install an app and app list should open and highlight the installed app. Review URL: http://codereview.chromium.org/9700066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127111 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Rename almost all entries from gfx::CanvasSkia to gfx::Canvas.tfarina@chromium.org2012-03-151-2/+2
| | | | | | | | | | BUG=116572 R=asvitkine@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9705063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126935 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Update app list UI to match latest crwm.xiyuan@chromium.org2012-03-148-134/+165
| | | | | | | | | | | | | | | | - Tile app list item horizontally; - Move item title to the bottom; - Update padding for model view: 45px from left/right and 32px from top/bottom; - Change shade from 0.4 black to 0.2 black; - Update animation; - Defer app list widget activation until showing animation is finished; BUG=117238,117073 TEST=Verify fix for issue 117238. Review URL: https://chromiumcodereview.appspot.com/9677065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126665 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Shell::GetRootWindow with Window::GetRootWindowoshima@chromium.org2012-03-141-2/+2
| | | | | | | | | | | | | | where this makes sense. I didn't change the class that is potentially global and not root specific. This also removes ToplevelLayoutManager that is not longer in use. BUG=115510 TEST=none Review URL: https://chromiumcodereview.appspot.com/9665016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126590 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Add keyboard support to app list.xiyuan@chromium.org2012-03-134-17/+152
| | | | | | | | | | | | - Make AppListModelView focusable; - Arrow keys to navigate around app list; BUG=117070 TEST=Verify arrow keys could move around in app list. Review URL: http://codereview.chromium.org/9664075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126279 0039d316-1c4b-4281-b951-d872f2087c98
* views: Nuke is_mouse_gesture parameter from ↵tfarina@chromium.org2012-03-112-5/+3
| | | | | | | | | | | ContextMenuController::ShowContextMenuForView(). BUG=117092 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9665008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126081 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia.tfarina@chromium.org2012-03-091-2/+2
| | | | | | | | | | | | The final goal is to merge these two classes into a single gfx::Canvas class. BUG=116572 R=ben@chromium.org,asvitkine@chromium.org TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9562038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125735 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Cap app list tile width to the max tile width.xiyuan@chromium.org2012-03-064-9/+38
| | | | | | | | | | | | | | | - Add a set_icon_size method to AppListItemView; - Fix AppListItemView's GetPreferredSize to return correct size; - Update AppListModelView::Layout to cap tile width to max tile width; - Also fix a potential divide-by-zero error in CalculateTileSize; BUG=98308 TEST=Verify that tile does not occupy the whole screen width when there is only one column. Review URL: http://codereview.chromium.org/9597036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125124 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Add context menu to app list.xiyuan@chromium.org2012-03-054-5/+50
| | | | | | | | | | | | | | | - Add a GetContextMenuModel to AppListItemModel; - Make AppListItemView to show a context menu if its model has one; - Add extension app context menu; And remove no longer used page_index, launch ordinal from ExtensionAppItem. BUG=98308 TEST=Verify context menu for apps. Review URL: https://chromiumcodereview.appspot.com/9597010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125011 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Implement app list M19 mock.xiyuan@chromium.org2012-03-0218-782/+364
| | | | | | | | | | | | | | | | | | | | | | - Make AppListModel flat, i.e. remove AppListItemGroupModel and its view; - Move BuildAppListModel from ShellDelegate into AppListViewDelegate; - Make AppListModelBuilder ready to support simple query; - Make AppListItemView based on CustomButton and get rid of its listener interface since we can use ButtonListener for that now; - Update UI based on M19 mock: - AppListItemView show label on its right instead of bottom; - AppListItemView has a mouse hover effect now; - AppListModelView show AppListItemView tiles alphabetically from top to bottom instead of from left to right; - AppListView to occupy full screen include area behind the launcher; - AppListView to have a 0.4 black shade; BUG=98308 TEST=Verify applist should look like M19 mock. Review URL: https://chromiumcodereview.appspot.com/9559005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124661 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix applist crash on 2nd show.xiyuan@chromium.org2012-02-071-1/+1
| | | | | | | | | | | | r120147 accidentally removed widget observer instead of the animation observer. BUG=112654 TEST=Verify fix for issue 112654. Review URL: http://codereview.chromium.org/9331007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120722 0039d316-1c4b-4281-b951-d872f2087c98
* Disable animations during aura tests.vollick@google.com2012-02-022-20/+11
| | | | | | | | | | | | | | | | | 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-012-11/+20
| | | | | | | | | | | | | | | | | | 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-012-20/+11
| | | | | | | | | | | | | | | 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-012-11/+20
| | | | | | | | | | | | | | | | 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-012-20/+11
| | | | | | | | | | | | | 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
* Remove Owner param to EventFilter's ctor.ben@chromium.org2012-01-311-4/+1
| | | | | | | | BUG=none TEST=existing unittests Review URL: https://chromiumcodereview.appspot.com/9315004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119954 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix app list crash on logout.xiyuan@chromium.org2012-01-271-2/+7
| | | | | | | | | | | | | | App list widget is in always-on-top container which is destructed after default container. This causes crash when destructing a live app list widget during Shell shutdown. BUG=111523 TEST=Verify fix for issue 111523. Review URL: http://codereview.chromium.org/9234071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119376 0039d316-1c4b-4281-b951-d872f2087c98
* Make it simpler to detect when implicit animations complete.vollick@google.com2012-01-181-2/+3
| | | | | | | | | | | The ScopedSettings destructor should only remove the temporary observers from the animator, not the sequences. Added an ImplicitAnimationObserver for use with ScopedSettings to provide a simple way to get notified when implicit animations complete. BUG=None TEST=compositor_unittests Review URL: https://chromiumcodereview.appspot.com/9112034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118091 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Gesture event plumbing (skeleton).sadrul@chromium.org2012-01-172-0/+9
| | | | | | | | | | | | | 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
* [Aura] Remove webui applist and enable views applist.xiyuan@chromium.org2012-01-124-40/+21
| | | | | | | | | | BUG=105913,105620 TEST=Verify fix for issue 105913,105620. Review URL: http://codereview.chromium.org/9185014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117375 0039d316-1c4b-4281-b951-d872f2087c98
* Rename the aura_shell namespace to ashben@chromium.org2011-12-2421-43/+43
| | | | | | | | | http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9033007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115748 0039d316-1c4b-4281-b951-d872f2087c98
* Move last few files -> ashben@chromium.org2011-12-2312-26/+26
| | | | | | | | | http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9036011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115743 0039d316-1c4b-4281-b951-d872f2087c98
* Move more stuff down into ash.ben@chromium.org2011-12-2321-0/+1648
http://crbug.com/108457 TEST=none TBR=sky Review URL: http://codereview.chromium.org/9030007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115739 0039d316-1c4b-4281-b951-d872f2087c98