summaryrefslogtreecommitdiffstats
path: root/views
Commit message (Collapse)AuthorAgeFilesLines
* views: Remove app from DEPS file.tfarina@chromium.org2011-06-301-1/+0
| | | | | | | | | | | BUG=72317 TEST=None R=sky@chromium.org Review URL: http://codereview.chromium.org/7281019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91069 0039d316-1c4b-4281-b951-d872f2087c98
* views: Fix comment pointing to app/gfx/ instead of ui/gfx.tfarina@chromium.org2011-06-301-3/+3
| | | | | | | | | | | BUG=72317 TEST=None R=sky@chromium.org Review URL: http://codereview.chromium.org/7284019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91068 0039d316-1c4b-4281-b951-d872f2087c98
* Views views_unittests Views and NativeTextFields tests leakdhollowa@chromium.org2011-06-302-26/+28
| | | | | | | | | | | Fixes leaks in ViewTest.* and NativeTextFieldViewsTest.*. BUG=87904 TEST=tools/valgrind/chrome_tests.sh views --gtest_filter=ViewTest.*:NativeTextFieldViewsTest.* Review URL: http://codereview.chromium.org/7280008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91064 0039d316-1c4b-4281-b951-d872f2087c98
* Switch FocusManager to using ObserverList instead of keeping its listeners ↵pkasting@chromium.org2011-06-292-52/+16
| | | | | | | | | | in a simple vector. BUG=none TEST=none Review URL: http://codereview.chromium.org/7280013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91052 0039d316-1c4b-4281-b951-d872f2087c98
* Move app/resources/* to ui/resources/ directory.tfarina@chromium.org2011-06-2913-30/+30
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7253057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91010 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug where NativeWidgetViews wasn't setting bounds ofsky@chromium.org2011-06-291-0/+1
| | | | | | | | | | | | NativeWidgetView. This is why menu wasn't showing. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7248032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91000 0039d316-1c4b-4281-b951-d872f2087c98
* Rename DesktopWindow to DesktopWindowView.ben@chromium.org2011-06-297-56/+60
| | | | | | | | | BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/7281012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90997 0039d316-1c4b-4281-b951-d872f2087c98
* Make cursor a bit more visible a bit more oftensaintlou@chromium.org2011-06-291-2/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7282001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90983 0039d316-1c4b-4281-b951-d872f2087c98
* Views views_unittests native widget tests leakdhollowa@chromium.org2011-06-294-36/+38
| | | | | | | | | | | Eliminates leaks from NativeWidgetTest.*. Adds additional test target to valgrind wrapper script. Refactors native_widget_test_utils_{gtk|win}.cc to avoid duplication. BUG=87805 TEST=tools/valgrind/chrome_tests.sh views --gtest_filter=NativeWidgetTest.* Review URL: http://codereview.chromium.org/7272044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90979 0039d316-1c4b-4281-b951-d872f2087c98
* Removed a couple of #ifdef TOUCH_UI and replaced with Widget::IsPureViews()saintlou@chromium.org2011-06-2914-73/+14
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7253058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90978 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the rect to the widget's coordinates correctly.sadrul@chromium.org2011-06-295-20/+66
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7276053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90952 0039d316-1c4b-4281-b951-d872f2087c98
* Corrects setting default text colors on Windows.motek@chromium.org2011-06-281-0/+8
| | | | | | | BUG=86979 Review URL: http://codereview.chromium.org/7276040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90849 0039d316-1c4b-4281-b951-d872f2087c98
* Implement SetTooltipText in RWHVVvarunjain@chromium.org2011-06-282-0/+10
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6982062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90835 0039d316-1c4b-4281-b951-d872f2087c98
* Menus in the views desktop. Adds MenuHostViews. This is buggy due to ↵ben@chromium.org2011-06-2813-34/+119
| | | | | | | | | | | | rendering issues I believe. Moves IsMouseButtonDown to a static method on Widget that is implemented by each platform. It needs to be static as it can be called before the NativeWidget is fully initialized, and does not depend on any NativeWidget state. BUG=none TEST=none Review URL: http://codereview.chromium.org/7253018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90793 0039d316-1c4b-4281-b951-d872f2087c98
* views: Allocate View on the stack in the OnBoundsChanged unittest.tfarina@chromium.org2011-06-281-27/+18
| | | | | | | | | | | BUG=None TEST=views_unittest --gtest_filter=ViewTest.OnBoundsChanged R=sky@chromium.org Review URL: http://codereview.chromium.org/7274012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90781 0039d316-1c4b-4281-b951-d872f2087c98
* Fix arm bot for real this time.sadrul@chromium.org2011-06-281-2/+2
| | | | | | TBR=sky@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90766 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang bot.sadrul@chromium.org2011-06-282-2/+6
| | | | | | | | BUG=clang bot TEST=none TBR=sky@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90765 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ifdef's for touchui stuff from events code.sadrul@chromium.org2011-06-2816-216/+102
| | | | | | | | | | | Also, make sure the touch_pressed_handler_ is the view being removed before resetting it to NULL. BUG=none TEST=things compile and existing tests continue to pass Review URL: http://codereview.chromium.org/7276002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90762 0039d316-1c4b-4281-b951-d872f2087c98
* Makes it so that if the size of a view with a layer changes or on creatingsky@chromium.org2011-06-284-3/+47
| | | | | | | | | | | | | | | the layer we force the complete bounds to be painted. This way the Compositors don't have to worry about partial update of a size they've never seen. This matches old logic I removed thinking it was no longer needed. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7272013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90711 0039d316-1c4b-4281-b951-d872f2087c98
* Always show keyboard when an editable element is touched.mazda@chromium.org2011-06-281-0/+6
| | | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/7244002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90684 0039d316-1c4b-4281-b951-d872f2087c98
* views: Add unittests for View::GetViewByID() method.tfarina@chromium.org2011-06-271-0/+38
| | | | | | | | | | | BUG=None TEST=views_unittests --gtest_filter=ViewTest.GetViewByID R=sky@chromium.org Review URL: http://codereview.chromium.org/7272003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90679 0039d316-1c4b-4281-b951-d872f2087c98
* A views only implementation of tooltips. In the views world, tooltips are drawnvarunjain@chromium.org2011-06-276-4/+303
| | | | | | | | | | | on top of the RootView using a transient decorator. BUG=none. TEST=none. Review URL: http://codereview.chromium.org/7115001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90675 0039d316-1c4b-4281-b951-d872f2087c98
* Fix checkbox in windows uninstaller.rogerta@chromium.org2011-06-273-7/+15
| | | | | | | | | | BUG=84791 TEST=Test the checkbox in the uninstaller as mentioned in the bug, but also all checkboxes in chrome too. Review URL: http://codereview.chromium.org/7196002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90640 0039d316-1c4b-4281-b951-d872f2087c98
* app: Get rid of test/ directory.tfarina@chromium.org2011-06-271-1/+1
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7262013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90592 0039d316-1c4b-4281-b951-d872f2087c98
* Moves acclerated painting related fields from View to LayerHelper.sky@chromium.org2011-06-276-108/+302
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7242025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90589 0039d316-1c4b-4281-b951-d872f2087c98
* Fix virtual keyboard issue with login screen.penghuang@chromium.org2011-06-272-0/+5
| | | | | | | | | | | | | | | | http://codereview.chromium.org/7170018/ causes this problem. In CL 7170018, it will not create the input method until it is requested by a child view. So in that time, a child view may already be focused. So we need sync focus state with input method. BUG=Virtual keyboard does not work on Login screen TEST=Seaboard Review URL: http://codereview.chromium.org/7222007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90540 0039d316-1c4b-4281-b951-d872f2087c98
* Use NativeViewHostViews when using pure-views instead of NativeViewHostGtk.sadrul@chromium.org2011-06-261-1/+6
| | | | | | | | | | | This fixes a crash when running chrome with --use-pure-views --views-desktop BUG=none TEST=none Review URL: http://codereview.chromium.org/7263017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90520 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the glib message-pump, and use it as the base for a gtk message ↵sadrul@chromium.org2011-06-248-52/+39
| | | | | | | | | | | | | | | | | | | pump and an X message pump. The changes: * Rename MessagePumpGlibX to MessagePumpX. * Rename MessagePumpForUI to MessagePumpGlib. * Move some stuff out of MessagePumpGlib, and into MessagePumpGtk and MessagePumpX. * Rename MessagePumpForUI::Observer to MessageObserver, moved the platform-specific implementations into MessagePumpGtk and MessagePumpX. Ditto for MessagePumpForUI::Dispatcher. MessagePumpX is independent of MessagePumpGtk. At the moment, MessagePumpX does process some GDK event, but once we have a complete native_widget_x, we can take out the GDK processing and things should continue to work. BUG=none TEST=existing message-pump tests. Review URL: http://codereview.chromium.org/7250001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90418 0039d316-1c4b-4281-b951-d872f2087c98
* Add MenuItemView API to control menu repositioning.rhashimoto@chromium.org2011-06-243-9/+59
| | | | | | | | | | | | The use case for this is the ChromiumOS OOBE network menu. This menu is dynamic - access points may be added or removed while the menu is open so the number of items in the menu can change. At a certain threshold, the menu will "hop" between above and below the button. This CL provides a way to disable repositioning so the menu is always displayed below the button. BUG=chromium-os:16720 TEST=open OOBE network menu with a lot of WiFi access points around, check that the menu is drawn below the button Review URL: http://codereview.chromium.org/7217026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90410 0039d316-1c4b-4281-b951-d872f2087c98
* Allow View to have a layer whose texture is updated externally.backer@chromium.org2011-06-242-0/+42
| | | | | | | | | | | This will be used to display texture produced by the GPU process for the RWHVV via the browser compositor. BUG=none TEST=none Review URL: http://codereview.chromium.org/7231012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90362 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build when GYP_DEFINES="chromeos=0 use_ibus=1"hashimoto@chromium.org2011-06-241-7/+3
| | | | | | | | | BUG=NONE TEST=build success Review URL: http://codereview.chromium.org/7240007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90336 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes bug where layer bounds weren't correctly set when views was setsky@chromium.org2011-06-242-11/+42
| | | | | | | | | | | | in a couple of cases. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/7247020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90333 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the ability to animate transforms/bounds to View.sky@chromium.org2011-06-239-12/+280
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org,wjmaclean@chromium.org Review URL: http://codereview.chromium.org/7242005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90254 0039d316-1c4b-4281-b951-d872f2087c98
* Add an option to run Chrome in the views desktop.ben@chromium.org2011-06-234-43/+87
| | | | | | | | | | | | | | | - Add a BrowserFrameViews stub. - Add a NativeTabContentsViewViews stub. - Allow the omnibox to run in pure-views mode on Windows too. - Make the RenderWidgetHostViewViews build on Windows. chrome --use-pure-views --views-desktop runs, shows a browser window, but doesn't really do anything else. BUG=none TEST=none Review URL: http://codereview.chromium.org/7206055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90242 0039d316-1c4b-4281-b951-d872f2087c98
* views: Pull out ContextMenuController class into its own header file.tfarina@chromium.org2011-06-2312-44/+63
| | | | | | | | | | | BUG=72040 TEST=None R=ben@chromium.org,sky@chromium.org Review URL: http://codereview.chromium.org/7238006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90224 0039d316-1c4b-4281-b951-d872f2087c98
* Updated remaining button to text button. Reverted the interposedsaintlou@chromium.org2011-06-2316-159/+82
| | | | | | | | | | | class NativeButtonBase which is no longer needed. BUG=none TEST=none Review URL: http://codereview.chromium.org/7218035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90220 0039d316-1c4b-4281-b951-d872f2087c98
* views: Remove the dependency on app_base.tfarina@chromium.org2011-06-224-12/+4
| | | | | | | | | | | BUG=72317 TEST=views_unittests, views_desktop, views_examples R=sky@chromium.org,phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/7200022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90115 0039d316-1c4b-4281-b951-d872f2087c98
* xi2: We need to look at the slave device that generated the event,sadrul@chromium.org2011-06-221-1/+1
| | | | | | | | | | | instead of the master device to determine if we should process the event or not. BUG=none TEST=test that there is only one mousedown event for a mouseclick Review URL: http://codereview.chromium.org/7232022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90084 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up avatar icon drawingsail@chromium.org2011-06-221-1/+0
| | | | | | | | | | | | | This change addresses review feedback from: http://codereview.chromium.org/7003080/ BUG= TEST= Review URL: http://codereview.chromium.org/7229014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90072 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes leak in drag_utils.sky@chromium.org2011-06-221-4/+5
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org,tony@chromium.org Review URL: http://codereview.chromium.org/7215022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89975 0039d316-1c4b-4281-b951-d872f2087c98
* Fix building views_unittests.sadrul@chromium.org2011-06-221-0/+1
| | | | | | TBR=sky@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89954 0039d316-1c4b-4281-b951-d872f2087c98
* views/ime: Add dtor to CharacterComposer class to please clang.tfarina@chromium.org2011-06-222-2/+4
| | | | | | | | | | | BUG=None TEST=None R=rvargas@chromium.org, hashimoto@chromium.org Review URL: http://codereview.chromium.org/7233002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89950 0039d316-1c4b-4281-b951-d872f2087c98
* Add character compositionhashimoto@chromium.org2011-06-227-70/+589
| | | | | | | | | | | Implemented character composition from key strokes starting with dead keys or compose key BUG=chromium-os:13882, chromium-os:15925 TEST= Review URL: http://codereview.chromium.org/6979023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89948 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "views: Refactor AddRemoveNotifications unittest."tfarina@chromium.org2011-06-221-102/+145
| | | | | | | | | | | | | | | | | | This removes the second definition of the ObserverView class, that was added by the merge conflict. This reverts commit 2a16ddfe7e09bec206daf6bdab3ef6d1a573dbfd. BUG=None TEST=views_unittests --gtest_filter=ViewTest.ViewHierarchyChanged TBR=sky@chromium.org Original Review URL: http://codereview.chromium.org/7184031 Review URL: http://codereview.chromium.org/7206060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89947 0039d316-1c4b-4281-b951-d872f2087c98
* views: Pull out DragController class into its own header file.tfarina@chromium.org2011-06-216-40/+57
| | | | | | | | | | | BUG=72040 TEST=None R=ben@chromium.org Review URL: http://codereview.chromium.org/7202015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89921 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89910 - views: Refactor AddRemoveNotifications unittest.rvargas@google.com2011-06-211-271/+102
| | | | | | | | | | | | | | | | | | | - Extract the code from TestView class. - Move the code into a new class called ObserverView. - Rename the test case from AddRemoveNotifications to ViewHierarchyChanged. - Use ObserverView class instead of TestView. - Improve the checks, make them more clearer. - Use EXPECT_TRUE instead of EXPECT_EQ(true, something); same thing for the false case. BUG=None TEST=views_unittests --gtest_filter=ViewTest.ViewHierarchyChanged Review URL: http://codereview.chromium.org/7184031 TBR=tfarina@chromium.org Review URL: http://codereview.chromium.org/7218025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89913 0039d316-1c4b-4281-b951-d872f2087c98
* views: Refactor AddRemoveNotifications unittest.tfarina@chromium.org2011-06-211-102/+271
| | | | | | | | | | | | | | | | - Extract the code from TestView class. - Move the code into a new class called ObserverView. - Rename the test case from AddRemoveNotifications to ViewHierarchyChanged. - Use ObserverView class instead of TestView. - Improve the checks, make them more clearer. - Use EXPECT_TRUE instead of EXPECT_EQ(true, something); same thing for the false case. BUG=None TEST=views_unittests --gtest_filter=ViewTest.ViewHierarchyChanged Review URL: http://codereview.chromium.org/7184031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89910 0039d316-1c4b-4281-b951-d872f2087c98
* Adds Layer as a class between View and the Texture.sky@chromium.org2011-06-2110-151/+536
| | | | | | | | | | BUG=none TEST=none R=ben@chromium.org,wjmaclean@chromium.org Review URL: http://codereview.chromium.org/7189067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89880 0039d316-1c4b-4281-b951-d872f2087c98
* [Views] Make ImageView::SetImage() take a const SkBitmap* rather than a ↵rsesek@chromium.org2011-06-212-4/+4
| | | | | | | | | | | non-const one. BUG=none TEST=none Review URL: http://codereview.chromium.org/7214001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89857 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