summaryrefslogtreecommitdiffstats
path: root/views
Commit message (Collapse)AuthorAgeFilesLines
* Multi-Profiels: Support high contrast mode in profile menusail@chromium.org2011-10-103-5/+11
| | | | | | | | | BUG=92250 TEST= Review URL: http://codereview.chromium.org/8168007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104690 0039d316-1c4b-4281-b951-d872f2087c98
* Windows compile fix.backer@chromium.org2011-10-081-0/+1
| | | | | | | | | | | | Missed updated .h file TBR=backer@chromium.org BUG=none TEST=tree goes green Review URL: http://codereview.chromium.org/8202027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104655 0039d316-1c4b-4281-b951-d872f2087c98
* Reorder Layers with NativeWidgetViews.backer@chromium.org2011-10-0816-32/+78
| | | | | | | | | | | The presence of NativeWidgetViews complicates the process of keeping the Layer tree in sync with the View tree. Specifically, when walking up the View tree to find a View with a Layer, we may have to walk up through a NativeWidgetViews to a NativeWidgetView in a different View tree. Similarly, when walking down the tree to find Views with Layers, we may have to walk down through a NativeWidgetView to a NativeWidgetViews. BUG=none TEST=none Review URL: http://codereview.chromium.org/8201008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104654 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change ViewsDelegate::NotifyMenuItemFocused() to string16.tfarina@chromium.org2011-10-086-44/+41
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8186006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104622 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send mouse event to invisible windowoshima@google.com2011-10-071-0/+2
| | | | | | | | | | | added DCHECK in NativeWidgetAura to make sure invisible widget doesn't receive event. BUG=none TEST=open menu, close menu without choosing item. chrome won't crash. Review URL: http://codereview.chromium.org/8202020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104591 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the views_unittests on USE_AURA linux.ben@chromium.org2011-10-071-5/+3
| | | | | | | | | | | Move the factory setting for the compositor before the initialization of the desktop. BUG=none TEST=views_unittests passes TBR=sky Review URL: http://codereview.chromium.org/8206017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104577 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes aura build on windows. Makes all tests use the test compositorsky@chromium.org2011-10-071-2/+1
| | | | | | | | | | | | as the bots don't have the right libraries yet. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8202014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104566 0039d316-1c4b-4281-b951-d872f2087c98
* Changes the way windows are parented when their parent is set to NULL.. Adds ↵ben@chromium.org2011-10-076-21/+61
| | | | | | | | a DesktopDelegate interface implemented by the aura client. The implementor handles parenting of windows when their parent is set to NULL, and also figures out how to activate windows.. Replaces Desktop::default_parent() with this. Requires adjusting some of the tests and adding a TestDesktopDelegate implementation that reconstructs what default_parent did.BUG=noneTEST=existing unit tests Review URL: http://codereview.chromium.org/8194004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104558 0039d316-1c4b-4281-b951-d872f2087c98
* Wires up the active methods in NativeWidgetAura.sky@chromium.org2011-10-071-6/+9
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8196007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104545 0039d316-1c4b-4281-b951-d872f2087c98
* Keep the Layer tree in sync with View tree.backer@chromium.org2011-10-072-0/+47
| | | | | | | | | | | The View tree represents draw order, so it is imperative that order of the Layer tree reflect the order of the View tree. Whenever the order of the View tree changes, we now fix up the order of the Layer tree. BUG=none TEST=can change the stack order of windows on the views_desktop Review URL: http://codereview.chromium.org/8202001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104496 0039d316-1c4b-4281-b951-d872f2087c98
* Preliminary InputMethod support for NativeWidgetAuraoshima@chromium.org2011-10-072-4/+32
| | | | | | | | | | | | | | This should enable key events on aura. This needs more work to get real IME working. Disable first run dialog on aura. This doesn't work and don't need now. BUG=97261, 99439 TEST=type in omnibox on aura build Review URL: http://codereview.chromium.org/8183011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104486 0039d316-1c4b-4281-b951-d872f2087c98
* Simple clipboard support for auraoshima@chromium.org2011-10-071-46/+15
| | | | | | | | | | | BUG=99128 TEST=more views_unittests tests pass on linux/aura This include fixes from http://codereview.chromium.org/8150001 Review URL: http://codereview.chromium.org/8165016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104448 0039d316-1c4b-4281-b951-d872f2087c98
* Change std::wstring to string16 for views::Label and views::Labelyosin@chromium.org2011-10-0714-85/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | Redo for CR=8113031, it failed on linux_chromeos_clang. Following files are missed in CR=8113031 1 chrome/browser/chromeos/drop_shadow_label.cc 2 chrome/browser/chromeos/drop_shadow_label.h 3 chrome/browser/ui/views/cookie_info_view.cc 4 chrome/browser/ui/views/database_info_view.cc 5 chrome/browser/ui/views/hung_renderer_view.cccc 6 chrome/browser/ui/views/importer/import_lock_dialog_view.cc 7 chrome/browser/ui/views/task_manager_view.cc 8 ui/aura_shell/examples/bubble.cc 9 views/examples/bubble_example.cc 10 views/examples/link_example.cc 11 views/examples/native_theme_button_example.cc 12 views/examples/text_example.cc 13 views/examples/textfield_example.cc BUG=68267 TEST=no user visible changes Review URL: http://codereview.chromium.org/8162013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104445 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude Menu2 on aura.oshima@google.com2011-10-071-0/+1
| | | | | | | | | | | This should be converted to views menu, although we may not use this particular code for chromeos. BUG=97131,99404 TEST=none Review URL: http://codereview.chromium.org/8176018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104444 0039d316-1c4b-4281-b951-d872f2087c98
* Don't reapply offset in NativeWidgetView::UpdateChildLayerBounds.vollick@chromium.org2011-10-071-3/+5
| | | | | | | | | BUG=None TEST=After a screen rotation, autocomplete popup remains in the correct position. Review URL: http://codereview.chromium.org/8146001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104443 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change DialogDelegate::GetDialogButtonLabel() to string16.tfarina@chromium.org2011-10-073-18/+19
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8176012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104396 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DispatchNativeEvent in favor of GetDispatcher.oshima@chromium.org2011-10-071-2/+5
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8173011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104393 0039d316-1c4b-4281-b951-d872f2087c98
* Get Chrome to build & link with USE_AURA on Windows again.BUG=noneTEST=noneben@chromium.org2011-10-061-2/+2
| | | | | | Review URL: http://codereview.chromium.org/8174005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104382 0039d316-1c4b-4281-b951-d872f2087c98
* Remove missing native_scroll_bar_wayland.cc file from views.gypdhollowa@chromium.org2011-10-061-1/+0
| | | | | | | | | | | | | | | Removes missing native_scroll_bar_wayland.cc file from views.gyp Follow-up on r104220 BUG=none TEST=build/gyp_chromium doesn't complain about missing files. R=sadrul@chromium.org Review URL: http://codereview.chromium.org/8173007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104369 0039d316-1c4b-4281-b951-d872f2087c98
* Update views/ime/OWNERS.bryeung@chromium.org2011-10-061-1/+2
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/8176010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104353 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix for NativeTextfieldViewsTest on win aura.msw@chromium.org2011-10-064-14/+20
| | | | | | | | | | | | | | | Initialize KeyEvent::character_ for synthesized events. Mark linux FAILS_/DISABLED_ (crbug.com/99128 & crbug.com/97845). The key_code/[unmodified_]/character code seems overly complex / platform-dependent. Hopefully yusukes or I can simplify and consolidate it a bit later. BUG=99128 TEST=NativeTextfieldViewsTest.* pass on win aura, correct expectations on linux [aura]. Review URL: http://codereview.chromium.org/8150001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104352 0039d316-1c4b-4281-b951-d872f2087c98
* views: Fix linux touch build by include missing utf_string_conversions.htfarina@chromium.org2011-10-061-0/+1
| | | | | | | | | BUG=68267 TBR=sky@chromium.org Review URL: http://codereview.chromium.org/8173010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104326 0039d316-1c4b-4281-b951-d872f2087c98
* Add RunAllPendingWithDispatcheroshima@google.com2011-10-062-3/+10
| | | | | | | | | | | On X11/Aura, MessagePumpX doesn't know how to dispatch event and needs explicit dispatcher to dispatch events. Thus, simply running RunAllPending can't run pending events if a dispatcher is not already set. This CL address this by adding new RunAllPendingWithDispatcher method. BUG=none TEST=views_unittests on X11/Aura runs without hang. Review URL: http://codereview.chromium.org/8173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104324 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change TextButtonBase::text() to string16.tfarina@chromium.org2011-10-064-35/+37
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8165011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104323 0039d316-1c4b-4281-b951-d872f2087c98
* USE_AURA=1 Reveals circular dependencies on Mac.dhollowa@chromium.org2011-10-061-22/+37
| | | | | | | | | | | | This changes Aura related .gyp files to conditionally depend on the chrome.gyp:packed_resources target, which is non-Mac target. Also, this unifies mixed "../..", "..", and "<(DEPTH)" usage to prefer the ".." form from advice from mento@. BUG=None TEST=build/gyp_chromium completes on Mac. Compiles and passes existing tests on other platforms. Review URL: http://codereview.chromium.org/8159011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104322 0039d316-1c4b-4281-b951-d872f2087c98
* Unregister signal handlers when "gtkwidget" is destroyed.oshima@google.com2011-10-062-61/+81
| | | | | | | | | | | | | Don't use gobject delete signal when ownership == WIDGET_OWNS_NATIVE_WIDGET because NativeWidgetGtk object is deleted by Widget. Note: This will be merged to R14/15. We probably don't have to use OnDesotryed any more, but keeping this way because it's risky for CL to be merged to R14/15. BUG=chromium-os:20382 TEST=none Review URL: http://codereview.chromium.org/8168008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104307 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix win compile.sadrul@chromium.org2011-10-061-1/+1
| | | | | | | | | | TBR=sky@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8161012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104248 0039d316-1c4b-4281-b951-d872f2087c98
* Maximize/Fullscreen for auraoshima@google.com2011-10-061-12/+21
| | | | | | | | | BUG=97257,97259 TEST=none Review URL: http://codereview.chromium.org/8103014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104246 0039d316-1c4b-4281-b951-d872f2087c98
* views: Migrate widget/* to base::Bind.tfarina@chromium.org2011-10-0613-44/+66
| | | | | | | | R=sky@chromium.org,ajwong@chromium.org Review URL: http://codereview.chromium.org/8160001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104225 0039d316-1c4b-4281-b951-d872f2087c98
* Fix shared win build.sadrul@chromium.org2011-10-061-1/+1
| | | | | | | | | | TBR=sky@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8169008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104222 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix views_unittests and aura_unittests on linux.sadrul@chromium.org2011-10-064-57/+40
| | | | | | | | | | | | | | | . Use NativeScrollBarViews in aura and wayland. . Disable clipboard-related tests in TextfieldViewsModelTest until aura on linux has clipboard support. . Use osmesa implementation for aura_unittests. TBR=evan@chromium.org BUG=97845, 99128 TEST=views_unittests passes on linux with use_aura Review URL: http://codereview.chromium.org/8143021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104220 0039d316-1c4b-4281-b951-d872f2087c98
* Gets the test Ownership_PlatformNativeWidgetOwnsWidget_NativeDestroysky@chromium.org2011-10-061-10/+3
| | | | | | | | | | | | to pass on aura. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8136032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104215 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bubble rendering.ben@chromium.org2011-10-051-0/+2
| | | | | | | | | | | | Until we respect the transparent Widget::InitParam, I'm just making all NativeWidgetAuras transparent. Also fixes a compile fail to layer_unittest from piman's change. BUG=none TEST=none Review URL: http://codereview.chromium.org/8169003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104200 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change MenuItemView::GetTitle() to string16.tfarina@chromium.org2011-10-057-18/+14
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8137026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104172 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Build aura_builder on linux.sadrul@chromium.org2011-10-053-10/+16
| | | | | | | | | | | | | | . aura is never built with gtk anymore. So it's not necesary to disable GTK events in the message-pump. . Make sure glib headers are included when building non-gtk aura. . Update the 'glib' target to include gobject-2.0 and gthread-2.0 packages. BUG=none TEST=aura_builder builds on linux with use_aura=1 Review URL: http://codereview.chromium.org/8144009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104165 0039d316-1c4b-4281-b951-d872f2087c98
* Allow CanvasSkia to bind to an existing SkCanvas.piman@chromium.org2011-10-0528-86/+89
| | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8122013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104146 0039d316-1c4b-4281-b951-d872f2087c98
* views: Migrate more NewRunnableMethod instances to base::Bind()tfarina@chromium.org2011-10-055-23/+27
| | | | | | | | R=sky@chromium.org,ajwong@chromium.org Review URL: http://codereview.chromium.org/8133012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104128 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate ui::NativeEvent and base::NativeEventoshima@google.com2011-10-053-4/+4
| | | | | | | | | | | Note: I didn't add Wayland version of NativeEvent because the type is defined in ui, which base shouldn't depend on. I looked at the original CL and this typedef in message_pump_wayland seems to be added after reviewer gave LGTM. BUG=none TEST=none Review URL: http://codereview.chromium.org/8113028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104123 0039d316-1c4b-4281-b951-d872f2087c98
* Add views_example that exercises drawing different text styles.asvitkine@chromium.org2011-10-058-28/+445
| | | | | | | | | | | | Also, a little bit of misc housekeeping. Reland, original CL reverted: http://codereview.chromium.org/8072004/ BUG=none TEST=manual Review URL: http://codereview.chromium.org/8137032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104118 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 104105 - Add views_example that exercises drawing different text styles.rdsmith@chromium.org2011-10-058-445/+28
| | | | | | | | | | | | | | | | Failed check_perms; see http://build.chromium.org/p/chromium/builders/Linux/builds/14578 Also, a little bit of misc housekeeping. BUG=none TEST=manual Review URL: http://codereview.chromium.org/8072004 TBR=asvitkine@chromium.org Review URL: http://codereview.chromium.org/8139030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104108 0039d316-1c4b-4281-b951-d872f2087c98
* Add views_example that exercises drawing different text styles.asvitkine@chromium.org2011-10-058-28/+445
| | | | | | | | | | | Also, a little bit of misc housekeeping. BUG=none TEST=manual Review URL: http://codereview.chromium.org/8072004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104105 0039d316-1c4b-4281-b951-d872f2087c98
* Marks a number of tests as FAILS for aura. I filed bugs on the two keysky@chromium.org2011-10-053-19/+73
| | | | | | | | | | | | | | | | | areas, I plan on immediately fixing the widget one which is why I didn't file a bug. Hopefully when we get bots actually building and running tests, these changes will make them green. TBR since this is just marking tests FAILS. BUG=99129 99128 TEST=none TBR=ben@chromium.org R=ben@chromium.org Review URL: http://codereview.chromium.org/8142022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104098 0039d316-1c4b-4281-b951-d872f2087c98
* Makes visbility inherited. That is, in order for a window to besky@chromium.org2011-10-052-1/+2
| | | | | | | | | | | | visible all of its ancestor must be visible too. BUG=none TEST=covered by unit tests. R=ben@chromium.org Review URL: http://codereview.chromium.org/8136005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104097 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 104076 - Change std::wstring to string16 for views::Linkhbono@chromium.org2011-10-059-76/+70
| | | | | | | | | | | | | | | Change wst::string to string16 for view::Label and views::Link BUG=68267 TEST=no user visible changes Review URL: http://codereview.chromium.org/8113031 TBR=yosin@chromium.org Review URL: http://codereview.chromium.org/8142026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104084 0039d316-1c4b-4281-b951-d872f2087c98
* Change std::wstring to string16 for views::Linkyosin@chromium.org2011-10-059-70/+76
| | | | | | | | | | | | Change wst::string to string16 for view::Label and views::Link BUG=68267 TEST=no user visible changes Review URL: http://codereview.chromium.org/8113031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104076 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid DefWindowProc non-client rendering over our custom frame.msw@chromium.org2011-10-051-3/+9
| | | | | | | | | | | | DefWindowProc handling of WM_NCACTIVATE renders the native frame. Handle the message ourselves when the Widget has a custom frame. BUG=90386 TEST=No xp/vista/7 classic/basic/aero artifacts on window [un-]focus. Review URL: http://codereview.chromium.org/8133009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104051 0039d316-1c4b-4281-b951-d872f2087c98
* Fix menu on aura/linuxoshima@google.com2011-10-042-23/+39
| | | | | | | | | | | | | Added DispatchNativeEvent on Desktop so that Dispatcher can dispatch native event. This will be used in a few other places that needs to redispatch native event (simple_message_box_views.cc for example) cleanup unused variables. BUG=none TEST=run aura_shell_exe on linux, right click on a window to open menu. Review URL: http://codereview.chromium.org/8124005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104025 0039d316-1c4b-4281-b951-d872f2087c98
* views: Migrate RepeatController to base::Closure.tfarina@chromium.org2011-10-045-30/+33
| | | | | | | | R=sky@chromium.org,ajwong@chromium.org Review URL: http://codereview.chromium.org/8136009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104003 0039d316-1c4b-4281-b951-d872f2087c98
* views: Remove aura include hack now that crbug.com/94995 is fixed.tfarina@chromium.org2011-10-041-9/+3
| | | | | | | | R=sky@chromium.org Review URL: http://codereview.chromium.org/8120021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103933 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes touch buildsky@chromium.org2011-10-041-4/+0
| | | | | | | | | | | R=ben@chromium.org BUG=none TEST=none TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8140001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103906 0039d316-1c4b-4281-b951-d872f2087c98