summaryrefslogtreecommitdiffstats
path: root/ash/system/user
Commit message (Collapse)AuthorAgeFilesLines
* Stop using shell::GetInstance()->system_tray() in system tray itemsbartfab@chromium.org2012-11-212-3/+4
| | | | | | | | | | | | | | | | | This CL provides all SystemTrayItem objects with a pointer to the parent SystemTray and all Tray*View objects with a pointer to the parent SystemTrayItem. This allows the objects to walk up the chain and access the correct system tray once multiple system trays are introduced. UpdateNagger::~UpdateNagger() in tray_update.cc continues to go through shell::GetInstance() as the refactoring needed to support multiple system trays here is more complex and out of my expertise. BUG=152928 Review URL: https://chromiumcodereview.appspot.com/11415014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169141 0039d316-1c4b-4281-b951-d872f2087c98
* Ash system bubble: Allow logout button label to break into two linesbartfab@chromium.org2012-11-203-4/+15
| | | | | | | | | | | | | | This CL allows translators to specify the point at which the logout button label can be broken into two lines. The logout button in the ash system bubble then uses this information to break the label and conserve horizontal space. BUG=152928 Review URL: https://chromiumcodereview.appspot.com/11358231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168701 0039d316-1c4b-4281-b951-d872f2087c98
* Switch TrayPopupTextButton's base to LabelButton and rename accordinglybartfab@chromium.org2012-11-191-10/+3
| | | | | | | | | | | | | | | This CL switches the TrayPopupTextButton's base class from the old TextButton to the newer, more versatile LabelButton. Class and method names are adjusted accordingly. The custom background and border used by TrayPopupTextButton are consolidated and switched from native drawing to image assets. Finally, the TrayPopupTextButtonContainer is retired as it is no longer needed. BUG=152928,155363 Review URL: https://chromiumcodereview.appspot.com/11377153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168601 0039d316-1c4b-4281-b951-d872f2087c98
* Change user card background color for public accountsbartfab@chromium.org2012-11-151-1/+4
| | | | | | | | | | | | This CL changes the background color of the user card in the ash tray context menu to peach when the user is logged into a public account. BUG=152928 Review URL: https://chromiumcodereview.appspot.com/11361148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168034 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Label::Alignment with gfx::HorizontalAlignment.msw@chromium.org2012-11-071-3/+3
| | | | | | | | | | | | | | | | | Also remove unnecessary center alignment specifications in: ash/wm/maximize_bubble_controller.cc chrome/browser/ui/views/find_bar_view.cc chrome/browser/ui/views/panels/panel_frame_view.cc chrome/browser/ui/views/speech_recognition_bubble_views.cc ui/message_center/message_center_bubble.cc BUG=90426,155526 TEST=No behavioral changes. R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11377005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166462 0039d316-1c4b-4281-b951-d872f2087c98
* Uber tray UI tweaks.jennyz@chromium.org2012-11-061-3/+11
| | | | | | | | | | | | | 1. Move IME tray left to the user profile tray. 2. Make the padding to the right edge of the screen equals the padding to the bottom of the screen for status area tray. 3. Draw round corner of the user profile picture with anti-alias mode. 4. Add 2 more pixels in padding to the left of the user profile picture in status area tray. BUG=141446 Review URL: https://codereview.chromium.org/11360091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166289 0039d316-1c4b-4281-b951-d872f2087c98
* Make ash aware of public accountsbartfab@chromium.org2012-11-063-0/+5
| | | | | | | | | | | | | This CL propagates the information that the user is logged into a public account to ash and adds an appropriate label for the sign-out button. BUG=152929 BUG=152928 Review URL: https://chromiumcodereview.appspot.com/11273120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166226 0039d316-1c4b-4281-b951-d872f2087c98
* Create helper function to determine label for sign-out buttonbartfab@chromium.org2012-11-063-10/+36
| | | | | | | | | | | | | | This CL moves the code that determines the label for the sign-out button shown in the aura bar context menu to a helper function. This will allow the code to be shared with the upcoming aura bar sign-out button for public accounts, ensuring the labels on both buttons are always in sync. BUG=152929 Review URL: https://chromiumcodereview.appspot.com/11338041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166194 0039d316-1c4b-4281-b951-d872f2087c98
* Fix behaviour changes due to r163579danakj@chromium.org2012-10-251-6/+4
| | | | | | | | | | | | | | | | A couple changes in behaviour occured due to reordering some lines of code. This should restore the behaviour from before the change. See http://src.chromium.org/viewvc/chrome?view=rev&revision=163579 for the original behaviour on these lines. BUG=157634 R=jennyz Review URL: https://chromiumcodereview.appspot.com/11263024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163994 0039d316-1c4b-4281-b951-d872f2087c98
* Make gfx::Rect class operations consistently mutate the class they are ↵danakj@chromium.org2012-10-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | called on. Currently some methods mutate the class, and some return a new value, requiring API users to know what kind of method they are calling each time, and making inconsistent code. For example: gfx::Rect rect; rect.Inset(1, 1, 1, 1); rect = rect.Intersect(other_rect); rect.Offset(1, 1); Instead of: gfx::Rect rect; rect.Inset(1, 1, 1, 1); rect.Intersect(other_rect); rect.Offset(1, 1); We could go either way - making the class immutable or all methods return a new instance - but I believe it is better to instead make all methods mutate the class. This allows for shorter lines of code by avoiding having to repeat the object's name twice in order to change it. This patch changes gfx::Rect classes and all the callsites that uses these methods. It should make no change in behaviour, so no new tests added. R=sky BUG=147395 Review URL: https://codereview.chromium.org/11110004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163579 0039d316-1c4b-4281-b951-d872f2087c98
* Guess at fix for 150944.pkotwicz@chromium.org2012-09-241-3/+6
| | | | | | | | | | | When |avatar_| is null, I get a crash with a similar stack trace. BUG=150944 Test=Crash reports stop coming Review URL: https://chromiumcodereview.appspot.com/10964047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158308 0039d316-1c4b-4281-b951-d872f2087c98
* Refresh Guest session UIdpolukhin@chromium.org2012-09-142-12/+49
| | | | | | | | | | | Removed guest icons and add guest label in tray BUG=145546 TEST=manual Review URL: https://codereview.chromium.org/10918215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156757 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Update system update notification behaviour.sadrul@chromium.org2012-09-121-1/+8
| | | | | | | | | | | Decorate the update notification appropriately depending on the severity of the update recommendation. BUG=145577 Review URL: https://chromiumcodereview.appspot.com/10915214 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156263 0039d316-1c4b-4281-b951-d872f2087c98
* Make the exit button item as tall as the other tray popup item in guest mode.jennyz@chromium.org2012-08-311-0/+4
| | | | | | | | BUG=137251 Review URL: https://chromiumcodereview.appspot.com/10919043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154512 0039d316-1c4b-4281-b951-d872f2087c98
* image: Specify the resize-method when resizing ImageSkia.sadrul@chromium.org2012-08-161-1/+2
| | | | | | | | | | This makes the ImageSkia resizing code mirror the SkBitmap resizing code more closely. BUG=141146 Review URL: https://chromiumcodereview.appspot.com/10823358 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151972 0039d316-1c4b-4281-b951-d872f2087c98
* Replace views::Event with ui::Event.beng@google.com2012-08-101-1/+1
| | | | | | | | | http://crbug.com/125937 TBR=sky@chromium.org,jochen@chromium.org,sadrul@chromium.org Review URL: https://chromiumcodereview.appspot.com/10827271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151105 0039d316-1c4b-4281-b951-d872f2087c98
* Make spacing between uber tray items consistent with M22 UI spec.jennyz@google.com2012-07-232-4/+6
| | | | | | | | | | | | | | | | | | | For bottom aligned launcher: 7 pixel padding around left/right of text tray item. 1 pixel padding around all sides of image tray item. 1 pixel around all sides of the uber tray (SystemTrayContainer). For vertical aligned launcher: 1 pixel padding around all sides of the image tray item. 4 pixel padding above and below the text tray item, and center the text horizontally. 1 pixel around all sides of the uber tray (SystemTrayContainer). BUG=132450 TEST=The spacing between urber tray items should be consistent. Review URL: https://chromiumcodereview.appspot.com/10809008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147963 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Make sure the user-image in the tray does not get pixelated in high-dpi.sadrul@chromium.org2012-07-171-4/+2
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10702104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147129 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust the padding on the right side of the user profile.jennyz@google.com2012-07-161-2/+4
| | | | | | | | | BUG=132450 TEST=User profile picture right side padding looks right on device. Review URL: https://chromiumcodereview.appspot.com/10786022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146901 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from ashajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10693135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146075 0039d316-1c4b-4281-b951-d872f2087c98
* Adds factory method to create Bitmap shader which displays correctly in High DPIpkotwicz@chromium.org2012-07-021-13/+4
| | | | | | | | | | | | | | | | Added DrawImageInPath to Canvas API. BUG=None TEST=Manual Test Steps: Change the resize code in tray_user to properly resize based on scale factor (See TODO) Run with --force-device-scale-factor=2 --load-2x-resources Ensure that tray user avatars are not blurry Review URL: https://chromiumcodereview.appspot.com/10720003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145176 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Fix uber-tray popup exit-session button in demo mode.sadrul@chromium.org2012-06-161-13/+14
| | | | | | | | | BUG=132920 TEST=none Review URL: https://chromiumcodereview.appspot.com/10557023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142535 0039d316-1c4b-4281-b951-d872f2087c98
* Changed DisplayName std::string => string16, which is a prerequisite to ↵saintlou@chromium.org2012-06-011-1/+1
| | | | | | | | | | | | display that name in the status tray. BUG=119603,127190 TEST=none Review URL: https://chromiumcodereview.appspot.com/10441143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140047 0039d316-1c4b-4281-b951-d872f2087c98
* Convert ash and chromeos parts of chrome/ to ImageSkiapkotwicz@chromium.org2012-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used same conversion script as 10437006 Changed by hand afterwards: 1 ash/shell/app_list.cc 2 ash/shell/content_client/shell_content_browser_client.h 3 ash/shell/window_watcher.cc 4 ash/system/tray/tray_views.h 5 ash/system/user/tray_user.cc 6 ash/test/test_launcher_delegate.cc 7 ash/wm/frame_painter.cc 8 ash/wm/image_grid_unittest.cc 9 chrome/browser/chrome_content_browser_client.cc 10 chrome/browser/chrome_content_browser_client.h 11 chrome/browser/chromeos/extensions/file_manager_util.cc 12 chrome/browser/chromeos/login/message_bubble.h 13 chrome/browser/chromeos/login/take_photo_view.cc 14 chrome/browser/chromeos/login/take_photo_view.h 15 chrome/browser/chromeos/login/user.h 16 chrome/browser/chromeos/login/user_image_screen.cc 17 chrome/browser/chromeos/login/user_image_screen_actor.h 18 chrome/browser/chromeos/login/webui_login_view.cc 19 chrome/browser/chromeos/options/take_photo_dialog.cc 20 chrome/browser/chromeos/status/data_promo_notification.cc 21 chrome/browser/chromeos/status/network_menu_icon.cc 22 chrome/browser/chromeos/status/network_menu_icon.h 23 chrome/browser/chromeos/status/network_menu_icon_unittest.cc 24 chrome/browser/debugger/devtools_window.cc 25 chrome/browser/favicon/favicon_handler.cc 26 chrome/browser/favicon/favicon_tab_helper.cc 27 chrome/browser/instant/instant_loader.cc 28 chrome/browser/ui/toolbar/back_forward_menu_model.cc 29 chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc 30 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc 31 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h 32 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc 33 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h 34 chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h 35 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc 36 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc 37 content/browser/mock_content_browser_client.cc 38 content/browser/mock_content_browser_client.h 39 content/public/browser/content_browser_client.h 40 content/public/browser/favicon_status.cc 41 content/public/browser/favicon_status.h 42 content/shell/shell_content_browser_client.cc 43 content/shell/shell_content_browser_client.h 44 ui/views/examples/content_client/examples_content_browser_client.cc 45 ui/views/examples/content_client/examples_content_browser_client.h Fixed headers and spacing 1 ash/desktop_background/desktop_background_controller.cc 2 ash/desktop_background/desktop_background_controller.h 3 ash/desktop_background/desktop_background_resources.cc 4 ash/desktop_background/desktop_background_resources.h 5 ash/shell.h 6 ash/shell_factory.h 7 ash/system/tray/system_tray_delegate.h 8 ash/wm/frame_painter.h 9 chrome/browser/chromeos/login/default_user_images.h 10 chrome/browser/chromeos/status/network_menu.cc Test=Compiles Bug=124566 Review URL: https://chromiumcodereview.appspot.com/10443062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139802 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 139776 - Convert ash and chromeos parts of chrome/ to ImageSkiapkotwicz@chromium.org2012-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used same conversion script as 10437006 Changed by hand afterwards: 1 ash/shell/app_list.cc 2 ash/shell/content_client/shell_content_browser_client.h 3 ash/shell/window_watcher.cc 4 ash/system/tray/tray_views.h 5 ash/system/user/tray_user.cc 6 ash/test/test_launcher_delegate.cc 7 ash/wm/frame_painter.cc 8 ash/wm/image_grid_unittest.cc 9 chrome/browser/chrome_content_browser_client.cc 10 chrome/browser/chrome_content_browser_client.h 11 chrome/browser/chromeos/extensions/file_manager_util.cc 12 chrome/browser/chromeos/login/message_bubble.h 13 chrome/browser/chromeos/login/take_photo_view.cc 14 chrome/browser/chromeos/login/take_photo_view.h 15 chrome/browser/chromeos/login/user.h 16 chrome/browser/chromeos/login/user_image_screen.cc 17 chrome/browser/chromeos/login/user_image_screen_actor.h 18 chrome/browser/chromeos/login/webui_login_view.cc 19 chrome/browser/chromeos/options/take_photo_dialog.cc 20 chrome/browser/chromeos/status/data_promo_notification.cc 21 chrome/browser/chromeos/status/network_menu_icon.cc 22 chrome/browser/chromeos/status/network_menu_icon.h 23 chrome/browser/chromeos/status/network_menu_icon_unittest.cc 24 chrome/browser/debugger/devtools_window.cc 25 chrome/browser/favicon/favicon_handler.cc 26 chrome/browser/favicon/favicon_tab_helper.cc 27 chrome/browser/instant/instant_loader.cc 28 chrome/browser/ui/toolbar/back_forward_menu_model.cc 29 chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc 30 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc 31 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h 32 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc 33 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h 34 chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h 35 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc 36 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc 37 content/browser/mock_content_browser_client.cc 38 content/browser/mock_content_browser_client.h 39 content/public/browser/content_browser_client.h 40 content/public/browser/favicon_status.cc 41 content/public/browser/favicon_status.h 42 content/shell/shell_content_browser_client.cc 43 content/shell/shell_content_browser_client.h 44 ui/views/examples/content_client/examples_content_browser_client.cc 45 ui/views/examples/content_client/examples_content_browser_client.h Fixed headers and spacing 1 ash/desktop_background/desktop_background_controller.cc 2 ash/desktop_background/desktop_background_controller.h 3 ash/desktop_background/desktop_background_resources.cc 4 ash/desktop_background/desktop_background_resources.h 5 ash/shell.h 6 ash/shell_factory.h 7 ash/system/tray/system_tray_delegate.h 8 ash/wm/frame_painter.h 9 chrome/browser/chromeos/login/default_user_images.h 10 chrome/browser/chromeos/status/network_menu.cc Test=Compiles Bug=124566 Review URL: https://chromiumcodereview.appspot.com/10443062 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10456054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139778 0039d316-1c4b-4281-b951-d872f2087c98
* Convert ash and chromeos parts of chrome/ to ImageSkiapkotwicz@chromium.org2012-05-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used same conversion script as 10437006 Changed by hand afterwards: 1 ash/shell/app_list.cc 2 ash/shell/content_client/shell_content_browser_client.h 3 ash/shell/window_watcher.cc 4 ash/system/tray/tray_views.h 5 ash/system/user/tray_user.cc 6 ash/test/test_launcher_delegate.cc 7 ash/wm/frame_painter.cc 8 ash/wm/image_grid_unittest.cc 9 chrome/browser/chrome_content_browser_client.cc 10 chrome/browser/chrome_content_browser_client.h 11 chrome/browser/chromeos/extensions/file_manager_util.cc 12 chrome/browser/chromeos/login/message_bubble.h 13 chrome/browser/chromeos/login/take_photo_view.cc 14 chrome/browser/chromeos/login/take_photo_view.h 15 chrome/browser/chromeos/login/user.h 16 chrome/browser/chromeos/login/user_image_screen.cc 17 chrome/browser/chromeos/login/user_image_screen_actor.h 18 chrome/browser/chromeos/login/webui_login_view.cc 19 chrome/browser/chromeos/options/take_photo_dialog.cc 20 chrome/browser/chromeos/status/data_promo_notification.cc 21 chrome/browser/chromeos/status/network_menu_icon.cc 22 chrome/browser/chromeos/status/network_menu_icon.h 23 chrome/browser/chromeos/status/network_menu_icon_unittest.cc 24 chrome/browser/debugger/devtools_window.cc 25 chrome/browser/favicon/favicon_handler.cc 26 chrome/browser/favicon/favicon_tab_helper.cc 27 chrome/browser/instant/instant_loader.cc 28 chrome/browser/ui/toolbar/back_forward_menu_model.cc 29 chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc 30 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc 31 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h 32 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc 33 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h 34 chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h 35 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc 36 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc 37 content/browser/mock_content_browser_client.cc 38 content/browser/mock_content_browser_client.h 39 content/public/browser/content_browser_client.h 40 content/public/browser/favicon_status.cc 41 content/public/browser/favicon_status.h 42 content/shell/shell_content_browser_client.cc 43 content/shell/shell_content_browser_client.h 44 ui/views/examples/content_client/examples_content_browser_client.cc 45 ui/views/examples/content_client/examples_content_browser_client.h Fixed headers and spacing 1 ash/desktop_background/desktop_background_controller.cc 2 ash/desktop_background/desktop_background_controller.h 3 ash/desktop_background/desktop_background_resources.cc 4 ash/desktop_background/desktop_background_resources.h 5 ash/shell.h 6 ash/shell_factory.h 7 ash/system/tray/system_tray_delegate.h 8 ash/wm/frame_painter.h 9 chrome/browser/chromeos/login/default_user_images.h 10 chrome/browser/chromeos/status/network_menu.cc Test=Compiles Bug=124566 Review URL: https://chromiumcodereview.appspot.com/10443062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139776 0039d316-1c4b-4281-b951-d872f2087c98
* Add user_info_ NULL check in case of guest mode.mukai@chromium.org2012-05-171-2/+4
| | | | | | | | | BUG=128514 TEST=manually Review URL: https://chromiumcodereview.appspot.com/10389193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137723 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Some code-cleanup around tray-resizing code.sadrul@chromium.org2012-05-151-6/+0
| | | | | | | | | | | | | Resizing or changing visibility of any of the items returned from SystemTrayItem::CreateTrayView should automatically resize the tray widget to fit to the content size. BUG=none TEST=aura_shell_unittests:SystemTrayTest.* Review URL: https://chromiumcodereview.appspot.com/10386142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137182 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Rejig the user-card in the uber-tray popup.sadrul@chromium.org2012-05-101-125/+130
| | | | | | | | | | | | | | The user-card now only has a button for signout out. The shutdown/lockscreen buttons move into the row with date, and power moves out. Also, do not animate the user-icon in the tray when logging in. BUG=127430, 126303 TEST=none Review URL: https://chromiumcodereview.appspot.com/10356081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136317 0039d316-1c4b-4281-b951-d872f2087c98
* Remove scoped_ptr for system tray viewsstevenjb@chromium.org2012-05-012-9/+13
| | | | | | | | | | | | Views are owned by their parent, so having an additional scoped_ptr to them in the associated item/model is confusing and misleading. BUG=124269 TEST=Test status area Review URL: http://codereview.chromium.org/10269017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134710 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Refresh the tray items, instead of recreating them, when login status ↵sadrul@chromium.org2012-04-242-8/+14
| | | | | | | | | | | changes. BUG=124464 TEST=none Review URL: https://chromiumcodereview.appspot.com/10200006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133714 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Animate changes in the uber tray.sadrul@chromium.org2012-04-231-6/+14
| | | | | | | | | | | | | Specifically, animate when a view in the tray hides/shows itself. For now, the tray does not animate when the size of a view changes (e.g. date-view changes size because it's 10:00). BUG=117209 TEST=none Review URL: https://chromiumcodereview.appspot.com/9969068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133526 0039d316-1c4b-4281-b951-d872f2087c98
* uber tray: Make the row of buttons in the network-popup looksadrul@chromium.org2012-04-181-85/+12
| | | | | | | | | | | | like the buttons in the user card, and fix hover-effect for the buttons in the network header. BUG=123916 TEST=none Review URL: https://chromiumcodereview.appspot.com/10119001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132827 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Show better focus rects for the tray.sadrul@chromium.org2012-04-131-0/+7
| | | | | | | | | BUG=122933 TEST=none Review URL: https://chromiumcodereview.appspot.com/10086005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132261 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced sk_canvas()->drawPath() with DrawPath()pkotwicz@chromium.org2012-04-101-1/+1
| | | | | | | | | | | | | | Replaced sk_canvas()->drawColor() with DrawColor() Removed any instances of #include "third_party/skia/include/core/SkCanvas.h" Replaced DrawPath in touch_selection_controller_impl with DrawCircle call manually Bug=114665 Test=Compiles Review URL: http://codereview.chromium.org/10025011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131618 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Move the update notifier into its own row in the popup.sadrul@chromium.org2012-03-282-49/+0
| | | | | | | | | BUG=120195,115357 TEST=none Review URL: https://chromiumcodereview.appspot.com/9844012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129363 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Tweak the right-margin and border-radius of the tray.sadrul@chromium.org2012-03-271-2/+1
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9837090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129286 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Some color adjustments for the uber-tray.sadrul@chromium.org2012-03-261-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9863004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129020 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Using ScreenLocker from PowerManagerClient::Observer::LockScreen is not ↵sadrul@chromium.org2012-03-261-1/+2
| | | | | | | | | | | | | | safe. Instead of using ScreenLocker, keep a boolean flag to decide whether or not the screen is locked. BUG=120087 TEST=none Review URL: https://chromiumcodereview.appspot.com/9773013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128860 0039d316-1c4b-4281-b951-d872f2087c98
* Update spacing of icons in uber tray.mbolohan@chromium.org2012-03-251-2/+10
| | | | | | | | | | BUG=117213 TEST=none Review URL: http://codereview.chromium.org/9836053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128842 0039d316-1c4b-4281-b951-d872f2087c98
* When screen locked (LOGGED_IN_LOCKED):pkotwicz@chromium.org2012-03-242-9/+27
| | | | | | | | | | | | | | | | | | | | | (1) the shutdown etc. buttons should not show up (2) the date item should not be 'activatable' (i.e no hover underline, no click) (3) the settings entry should not show up (4) the IME 'customize' option should not show up (still possible to change IME) {5} Cannot add bluethooth devices or enable/disable bluetooth (still possible to toggle bluetooth connection for individual devices) (5) clicking the network entries should not do anything (can't change network being used) (6) Cannot enable/disable wifi/cellular network When user is signed out (LOGGED_IN_NONE): (1) Hide IME settings (2) Hide Bluetooth settings (can still enable and disable bluetooth) BUG=119503 TEST=Manual Review URL: http://codereview.chromium.org/9839074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128703 0039d316-1c4b-4281-b951-d872f2087c98
* Initial system tray accessibility fixesdmazzoni@chromium.org2012-03-231-0/+1
| | | | | | | | | | | | | | This makes most system tray items keyboard-focusable and gives many of them an accessible role and name. Some work still remains - please use this as a guide when finishing support for remaining items! BUG=119608 TEST=manual testing: open tray, tab through items, open with space/enter, close with esc Review URL: http://codereview.chromium.org/9838030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128511 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Fix various UI issues.sadrul@chromium.org2012-03-231-1/+5
| | | | | | | | | | | | | | * Show integer battery power. * Hide the user name, since we can't yet get the full name of the user. * Refresh profile pic/avatar immediately after it is changed. * New assets BUG=119623, 119596, 119573 TEST=none Review URL: https://chromiumcodereview.appspot.com/9839011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128490 0039d316-1c4b-4281-b951-d872f2087c98
* ash: User avatar/profile pic in the tray shouldn't look horrendous when ↵sadrul@chromium.org2012-03-221-18/+12
| | | | | | | | | | | resized to a smaller size. BUG=110130 TEST=none Review URL: https://chromiumcodereview.appspot.com/9834026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128318 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Make sure the avatar is always of the fixed size.sadrul@chromium.org2012-03-221-0/+1
| | | | | | | | | BUG=119450 TEST=none Review URL: https://chromiumcodereview.appspot.com/9837003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128212 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust uber tray spacing around avatar and draw avatar using rounded rectangle.flackr@chromium.org2012-03-222-3/+71
| | | | | | | | | | BUG=117213 TEST=None. Review URL: http://codereview.chromium.org/9813020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128138 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Update the user icon in the tray when user changes it from the settings ↵sadrul@chromium.org2012-03-203-5/+44
| | | | | | | | | | | page. BUG=110130 TEST=none Review URL: https://chromiumcodereview.appspot.com/9728011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127694 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Update user-card when in kiosk mode.sadrul@chromium.org2012-03-202-11/+24
| | | | | | | | | | | There should only be 'Exit session'. BUG=chromium-os:28049 TEST=none Review URL: https://chromiumcodereview.appspot.com/9732024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127610 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Highlight the items in the uber-tray popup when hovering.sadrul@chromium.org2012-03-151-0/+1
| | | | | | | | | | | | Since the items are already highlighted, remove underlining on hover for 'Settings' entry. BUG=118328 TEST=none Review URL: https://chromiumcodereview.appspot.com/9703078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126971 0039d316-1c4b-4281-b951-d872f2087c98
* ash: A number of ui/ux changes from feedback/to better match the mocks.sadrul@chromium.org2012-03-151-17/+38
| | | | | | | | | | | | | | | | | | The changes: * The network list scrolls on mouse-wheel. * The items in the network list cover the whole width of the list. * Increase the font-size of the date in the tray. * Adjust spacing between items in the tray. * Adjust padding in the user card. * Adjust the spacing and border around the shutdown etc. buttons in the user card. * Fix a crash from non-ascii username/email address. BUG=110130,118326 TEST=none Review URL: https://chromiumcodereview.appspot.com/9706063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126955 0039d316-1c4b-4281-b951-d872f2087c98