summaryrefslogtreecommitdiffstats
path: root/views/test
Commit message (Collapse)AuthorAgeFilesLines
* views: Move ime and test directories to ui/views.tfarina@chromium.org2011-11-174-236/+0
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8581003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110399 0039d316-1c4b-4281-b951-d872f2087c98
* Create a new aura client API dir and move constants and desktop delegate to it.ben@chromium.org2011-11-091-2/+2
| | | | | | | | | | Rename DesktopDelegate to StackingClient. BUG=none TEST=none Review URL: http://codereview.chromium.org/8508020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109323 0039d316-1c4b-4281-b951-d872f2087c98
* ui::TestCompositor::TestCompositor() constructor has been changed to take a ↵backer@chromium.org2011-10-251-15/+0
| | | | | | | | | | | a CompositorDelegate* as a parameter. It can be NULL to get the same behaviour as before. But some tests actually require ScheduleDraw() to cause a draw to happen, in order to test that their real delegate is doing its job. Also, we move the compositor_factory from views::Widget and aura::Desktop to ui::Compositor. BUG=101091 TEST=bots stay green Review URL: http://codereview.chromium.org/8240006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107103 0039d316-1c4b-4281-b951-d872f2087c98
* Move some code around...ben@chromium.org2011-10-101-2/+2
| | | | | | | | | | | | | test infrastructure -> aura/test aura_shell_main -> aura/examples BUG=none TEST=none TBR=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104755 Review URL: http://codereview.chromium.org/8223006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104777 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 104755 - Move some code around...test infrastructure -> ↵ben@chromium.org2011-10-101-2/+2
| | | | | | | | aura/testaura_shell_main -> aura/examplesBUG=noneTEST=noneTBR=skyReview URL: http://codereview.chromium.org/8223006TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8222011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104757 0039d316-1c4b-4281-b951-d872f2087c98
* Move some code around...ben@chromium.org2011-10-101-2/+2
| | | | | | | | | | | | test infrastructure -> aura/test aura_shell_main -> aura/examples BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/8223006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104755 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change ViewsDelegate::NotifyMenuItemFocused() to string16.tfarina@chromium.org2011-10-081-6/+5
| | | | | | | | | 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
* 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-071-2/+4
| | | | | | | | 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
* 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
* Couple of tweaks to get more views tests passing:sky@chromium.org2011-10-041-0/+15
| | | | | | | | | | | | | | | | | . Make TestCompositor the default for all views unit tests. . Implement NativeWidgetPrivate::GetAllChildWidgets for aura. . Tweak expected texture count for layer toggling test. . Implement View::HitTest for aura. . Changes NativeWidgetAura::Init not to show (matches other platforms). BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8118026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103901 0039d316-1c4b-4281-b951-d872f2087c98
* Makes views unit test runnable again and addssky@chromium.org2011-10-031-0/+8
| | | | | | | | | | | | | NativeViewHostAura. After this we'll failing a number of tests, bit I'll investigate that separately. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8113004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103786 0039d316-1c4b-4281-b951-d872f2087c98
* Remove base/scoped_ptr.hakalin@chromium.org2011-09-181-1/+1
| | | | | | | | | | | Fix remaining users to use base/memory/scoped_ptr.h. BUG= TEST= Review URL: http://codereview.chromium.org/7930009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101715 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change WidgetDelegate::GetWindowName() to use std::string.tfarina@chromium.org2011-09-162-4/+4
| | | | | | | | | | This save us some conversions to and from wide string. R=sky@chromium.org Review URL: http://codereview.chromium.org/7910012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101540 0039d316-1c4b-4281-b951-d872f2087c98
* Restoring a session should restore window minimization state on Windowsdhollowa@chromium.org2011-08-312-11/+13
| | | | | | | | | | | | | These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98679 Review URL: http://codereview.chromium.org/7748036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98679 - Restoring a session should restore window minimization state ↵dhollowa@chromium.org2011-08-292-13/+11
| | | | | | | | | | | | | | | | | on Windows These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Review URL: http://codereview.chromium.org/7748036 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/7790010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98699 0039d316-1c4b-4281-b951-d872f2087c98
* Restoring a session should restore window minimization state on Windowsdhollowa@chromium.org2011-08-292-11/+13
| | | | | | | | | | | | These changes enable save and restore of minimized window state on Windows. (Mac and Linux came prior). The window state is now saved whenever size-changed notifications fire (in addition to the original activation and close cases). BUG=43274 TEST=Manual. Launch Chrome on Windows, create two browser windows, minimize "a" window, quit. Relaunch, expect "a" to be minimized. Review URL: http://codereview.chromium.org/7748036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98679 0039d316-1c4b-4281-b951-d872f2087c98
* Get views_unittests pass on touch buildoshima@google.com2011-08-242-4/+30
| | | | | | | | | | | | | | | | * Changed views test to use ViewsTestBase. * Always calls ViewsTestBase::SetUp/TearDown. Added flags to check if this is enforced. * Excluded tests that does not make sense on touch/pure views build. BUG=none TEST=views_unittets now passes on touch build, with a few exceptions below. WidgetTest.GrabUngrab: assigned to sadrul NativeTextfieldViewsTest.DragAndDrop_XXX: msw will look into it. Review URL: http://codereview.chromium.org/7720020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98128 0039d316-1c4b-4281-b951-d872f2087c98
* views: Add views namespace to TestViewsDelegate.tfarina@chromium.org2011-07-152-14/+25
| | | | | | | | | | | | | Note: This was a TODO for ben. BUG=None TEST=views_unittests, views_examples, views_desktop. R=ben@chromium.org Review URL: http://codereview.chromium.org/7359006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92629 0039d316-1c4b-4281-b951-d872f2087c98
* Removes Widget from two of ViewsDelegate methods. I would have likedsky@chromium.org2011-07-142-9/+5
| | | | | | | | | | | | | | | | to remove it from all, but it's needed for the save. The reason I'm doing this is I'm changing the calling order so that the delegate won't know it's widget at the time GetSavedXXX is invoked. Turns out we really only need the widget during the save calls anyway, so this all still works. BUG=none TEST=none R=ben@chromium.org,mirandac@chromium.org Review URL: http://codereview.chromium.org/7377004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92619 0039d316-1c4b-4281-b951-d872f2087c98
* Gets compositor working for embedded widgets.sky@chromium.org2011-07-013-2/+12
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7280002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91312 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang build.ben@chromium.org2011-06-212-1/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89838 0039d316-1c4b-4281-b951-d872f2087c98
* Change NativeWidgetViews' constructor to not take a parent View. The ↵ben@chromium.org2011-06-211-4/+7
| | | | | | | | | | | | embedding environment provides this instead via a new ViewsDelegate method: GetDefaultParentView(). This makes the constructors of NativeWidgetViews compatible with the other platforms and allows all of the existing construction patterns to be preserved (there is not a clear way to wire a desktop view through to all of them). BUG=none TEST=none Review URL: http://codereview.chromium.org/7204041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89832 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate Window completely.ben@chromium.org2011-06-132-6/+6
| | | | | | | | BUG=72040 TEST=none Review URL: http://codereview.chromium.org/7108047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88905 0039d316-1c4b-4281-b951-d872f2087c98
* Another clang build fix for r86677.rhashimoto@chromium.org2011-05-251-1/+1
| | | | | | | | | BUG=none TBR=sky Review URL: http://codereview.chromium.org/6992079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86691 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang build for r86677.rhashimoto@chromium.org2011-05-252-3/+5
| | | | | | | | | BUG=none TBR=sky Review URL: http://codereview.chromium.org/7008015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86688 0039d316-1c4b-4281-b951-d872f2087c98
* Add MenuModelAdapter to wrap ui::MenuModel with views::MenuDelegate interface.rhashimoto@chromium.org2011-05-251-0/+4
| | | | | | | | | | | | | | | | | - added ViewsDelegate::GetDispositionForEvent() pure virtual - added MenuModelAdapter - added unit test for MenuModelAdapter - added comment for MenuModel::GetFirstItemIndex() that callers may pass NULL for NativeMenu argument - fixed index offset bug in MenuModel::GetModelAndIndexForCommandId() - fixed spurious call to MenuDelegate::IsCommandEnabled() BUG=none TEST=included Review URL: http://codereview.chromium.org/7067032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86677 0039d316-1c4b-4281-b951-d872f2087c98
* Enable TestViewsDelegates for views unittests and views_examples by defaultoshima@google.com2011-05-102-2/+11
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6980004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84720 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: Refactor Views accessibility.dmazzoni@chromium.org2011-03-141-6/+10
| | | | | | | | | BUG=74988 TEST=none Review URL: http://codereview.chromium.org/6581010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78006 0039d316-1c4b-4281-b951-d872f2087c98
* Fix final nits on linux_viewserg@google.com2011-03-104-36/+74
| | | | | | | | | BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6612047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77584 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new views delegate method for menu item accessibility notifications,dmazzoni@chromium.org2011-03-051-0/+6
| | | | | | | | | | | | | since GTK-based menus can't send a notification directly on a View*. The GTK implementation that sends these notifications is in: http://codereview.chromium.org/6538090/ BUG=none TEST=Manual testing on Chrome OS. Review URL: http://codereview.chromium.org/6623028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77046 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 76825 - Refactor Views accessibility.jcivelli@chromium.org2011-03-041-11/+9
| | | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6581010 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/6612035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76844 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor Views accessibility.dmazzoni@chromium.org2011-03-031-9/+11
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6581010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76825 0039d316-1c4b-4281-b951-d872f2087c98
* Land the new functions added by 76483 - but do not use them anywhere outside ↵ben@chromium.org2011-03-021-0/+4
| | | | | | | | | | | | | of their tests. This will help me incrementally re-deploy these functions and identify what is causing the buildbot test redness. BUG=72040 TEST=none TBR=sky (all code originally reviewed here: http://codereview.chromium.org/6598069/ ) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76623 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting to fix builder redness. Please fix and reland.ananta@chromium.org2011-03-021-4/+0
| | | | | | | | | | | | | | Revert 76483 - Remove/replace RootView/Widget getters with new NativeWidget getters. BUG=72040 TEST=existing unittests. Review URL: http://codereview.chromium.org/6598069 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/6597099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76508 0039d316-1c4b-4281-b951-d872f2087c98
* Remove/replace RootView/Widget getters with new NativeWidget getters.ben@chromium.org2011-03-021-0/+4
| | | | | | | | | BUG=72040 TEST=existing unittests. Review URL: http://codereview.chromium.org/6598069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76483 0039d316-1c4b-4281-b951-d872f2087c98
* Store the user's profile as a property of a window in order to access it ↵mirandac@chromium.org2011-02-041-3/+10
| | | | | | | | | | | when saving window data with the ChromeViewsDelegate. BUG=71804 TEST=PreservedWindowPlacement tests pass on all platforms. Review URL: http://codereview.chromium.org/6250114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73801 0039d316-1c4b-4281-b951-d872f2087c98
* Compile and test TextfieldViews on win as well.oshima@google.com2011-01-121-0/+49
| | | | | | | | | | | | | Created common test base class for views. Note: Textfield::RequestFocus is failing because Windows' FocusManager::ClearNativeFocus resets the focused view to NULL for some reason. I don't have win at hand and am now requesting win7. I will look into it once I've got win7. BUG=none TEST=native_textfield_views_unittest and textfield_views_model_unittest have been enabled for win. Review URL: http://codereview.chromium.org/6102003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71183 0039d316-1c4b-4281-b951-d872f2087c98
* Implement clipboard features in views textfield.varunjain@chromium.org2011-01-121-0/+49
BUG=none TEST=Added new test. Review URL: http://codereview.chromium.org/6004010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71136 0039d316-1c4b-4281-b951-d872f2087c98