summaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts.erg@chromium.org2011-10-133-0/+55
| | | | | | | | | | | | | | | | | | This patch doesn't move web_drag_dest_gtk.cc into content/, but does remove all dependencies on chrome/ code. - Split out a delegate interface and move it - cross platform code from chrome/.../bookmark_node_data.cc is moved to ui/.../bookmark_format.h - gtk_util.cc has some layers split into gtk_screen_utils.cc. BUG=none TEST=none Review URL: http://codereview.chromium.org/8196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105216 0039d316-1c4b-4281-b951-d872f2087c98
* Make class anonymous and don't assume default FBO is active on Resize.backer@chromium.org2011-10-123-93/+0
| | | | | | | | | | | | Small refactor to move a class into an anonymous namespace. Small change to preserve the active FBO when resizing the EGLImageTransportSurface. BUG=none TEST=open and close 3D CSS tabs on TOUCH_UI Review URL: http://codereview.chromium.org/8241006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105185 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse watcher for auraoshima@chromium.org2011-10-121-0/+4
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8226025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105171 0039d316-1c4b-4281-b951-d872f2087c98
* 1. change the setters of gfx::SelectionModel to be private. Set one alone ↵xji@google.com2011-10-124-21/+42
| | | | | | | | | | | | | | might make SelectionModel into un-stable state, which should not be allowed. 2. Removing SelectionModel(size_t, size_t) constructor. Introduce RenderText::SelectRange(const ui::Range&) to handle range. 3. revert removal of SelectRange/GetSelectedRange in r103188. BUG=90426 TEST=view_unittests. Review URL: http://codereview.chromium.org/8044004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105138 0039d316-1c4b-4281-b951-d872f2087c98
* Various improvements to |gfx::RemoveAcceleratorChar()|.asvitkine@chromium.org2011-10-124-49/+96
| | | | | | | | | | | | | | | | - Operate on string16's instead of std::string's. - Handle surrogate pairs correctly. - Add out parameters returning the accelerated char pos and span. These changes are necessary for my upcoming change to use this function in a new CanvasSkia text drawing implementation. BUG=none TEST=Additional test cases added to skia_util_unittest.c. Review URL: http://codereview.chromium.org/8229010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105107 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang compile errors for USE_AURA=1dhollowa@chromium.org2011-10-123-3/+3
| | | | | | | | | | | Fixes various clang-reported errors when USE_AURA=1 BUG=none TEST=Compile on Mac/Clang. Trybots. Review URL: http://codereview.chromium.org/8229029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105104 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change Checkbox API to string16.tfarina@chromium.org2011-10-121-5/+6
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8245006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105088 0039d316-1c4b-4281-b951-d872f2087c98
* views: Make sure layer visibility is updated properly.sadrul@chromium.org2011-10-121-1/+1
| | | | | | | | | | | If a View without a layer is hidden, and one of its descendant views has a layer, then the layer also needs to be hidden. This also needs to be reversed when such a View is redisplayed. BUG=none TEST=ViewLayerTreesInSync, VisibilityChildLayers Review URL: http://codereview.chromium.org/8216027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105080 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change RadioButton API to string16.tfarina@chromium.org2011-10-121-7/+7
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8229017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105067 0039d316-1c4b-4281-b951-d872f2087c98
* Enable NativeConstrainedWindowAuraoshima@chromium.org2011-10-121-3/+2
| | | | | | | | | | | | | Implement NativeWidgetAura::CenterWindow. The content of the html dialog is current blank due to a bug somewhere else. I'll address it in separate CL. BUG=none TEST=none Review URL: http://codereview.chromium.org/8224020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105047 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix mouse wheel events.sadrul@chromium.org2011-10-121-0/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8234020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104987 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize on 'web page' and 'web site' in Chrome UI.aa@chromium.org2011-10-121-1/+1
| | | | | | Review URL: http://codereview.chromium.org/8231009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104969 0039d316-1c4b-4281-b951-d872f2087c98
* aura_shell: Add missing "virtual" to Delegate dtors.tfarina@chromium.org2011-10-122-2/+4
| | | | | | | | R=sky@chromium.org Review URL: http://codereview.chromium.org/8227026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104964 0039d316-1c4b-4281-b951-d872f2087c98
* Aura - Fix for win_aura views_unittests in menu_configjamescook@chromium.org2011-10-111-0/+9
| | | | | | | | | | | Add some UI part sizes to native_theme_base that previously only existed on Windows. BUG=none TEST=views_unittests Review URL: http://codereview.chromium.org/8234005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104947 0039d316-1c4b-4281-b951-d872f2087c98
* Some launcher tweaks:sky@chromium.org2011-10-1116-31/+535
| | | | | | | | | | | | | | | . Creates a model for the launcher. . Makes the launcher support laying out and calculating a preferred size. . Adds a ShellDelegate class that is used for interesting things. BUG=97262 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8220030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104943 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Migrate to base::Bind().tfarina@chromium.org2011-10-118-17/+25
| | | | | | | | R=sky@chromium.org,ajwong@chromium.org Review URL: http://codereview.chromium.org/8212002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104901 0039d316-1c4b-4281-b951-d872f2087c98
* Add gfx::kNullCursor to refer to "no cursor"oshima@chromium.org2011-10-113-2/+5
| | | | | | | | | | | | | linux/aura build uses unsigned long as NativeCursor which requires cast to use NULL. Define constants instead. BUG=none TEST=none Review URL: http://codereview.chromium.org/8216016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104848 0039d316-1c4b-4281-b951-d872f2087c98
* views: Some more layer change, and add/update some tests for layers.sadrul@chromium.org2011-10-116-2/+49
| | | | | | | | | | | | | | | | Hide the RootView's layer when a Widget is hidden. Call OnNativeWidgetVisibilityChanged on NativeWidgetGtk's hide/show callbacks. The tests: . Make sure Layer bounds change with a View even if it's not visible. . Make sure Layer visibility is updated with a View's visibility. . Make sure Layers get unparented properly when a View is removed from the parent view. BUG=none TEST=views_unittests Review URL: http://codereview.chromium.org/8202026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104846 0039d316-1c4b-4281-b951-d872f2087c98
* Under Aura the Aura Theme takes precedence over the ChromeOS one.saintlou@chromium.org2011-10-111-0/+2
| | | | | | | | | | | TBR=sky@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8223015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104839 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes bad NOTREACHED.sky@chromium.org2011-10-101-1/+1
| | | | | | | | | | | BUG=none TEST=none R=ben@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8221026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104810 0039d316-1c4b-4281-b951-d872f2087c98
* Aura - Add NativeThemeAura, extract NativeThemeGtk, add sample widget window.jamescook@chromium.org2011-10-1016-147/+442
| | | | | | | | | | | | | | | + Add native_theme_aura and native_theme_gtk, fix button background colors + Fix native_theme_chromeos instance generation + Rename button-related image resources + Rename class NativeThemeLinux to NativeThemeBase + Add window showing sample widgets BUG=98305 TEST=manual Review URL: http://codereview.chromium.org/8199021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104803 0039d316-1c4b-4281-b951-d872f2087c98
* Move some code around...ben@chromium.org2011-10-1014-46/+68
| | | | | | | | | | | | | 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-1014-68/+46
| | | | | | | | 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-1014-46/+68
| | | | | | | | | | | | 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
* touchui + aura: Move the keyboard in the front-most container.sadrul@chromium.org2011-10-104-8/+11
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8216002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104748 0039d316-1c4b-4281-b951-d872f2087c98
* Add non gtk implementation of GetNativeImageNameddavemoore@chromium.org2011-10-104-104/+114
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8198011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104743 0039d316-1c4b-4281-b951-d872f2087c98
* Ups the size of the desktop window that is created so tests pass. Wesky@chromium.org2011-10-101-1/+1
| | | | | | | | | | | | | | likely want to provide a test DesktopHost implementation for the tests, but this makes a test pass for now. Also, adds aura_shell_unittests to all.gyp. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8222008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104742 0039d316-1c4b-4281-b951-d872f2087c98
* Basic window resizing.http://crbug.com/93937TEST=see unit testsben@chromium.org2011-10-109-74/+532
| | | | | | Review URL: http://codereview.chromium.org/8202025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104730 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Implement cursor support on linux.sadrul@chromium.org2011-10-082-2/+12
| | | | | | | | | BUG=none TEST=manually Review URL: http://codereview.chromium.org/8205004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104663 0039d316-1c4b-4281-b951-d872f2087c98
* Gets component build to work with aura. As part of this I needed tosky@chromium.org2011-10-0812-27/+161
| | | | | | | | | | | | | break screen_aura in two. Otherwise we end up with a circular dependency between ui and aura. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8205018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104662 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix component build for aura_builder (aura_unitests and aura_shell_exe).sadrul@chromium.org2011-10-082-1/+3
| | | | | | | | | | BUG=none TEST=component build works for aura_builder TBR=sky@chromium.org Review URL: http://codereview.chromium.org/8207014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104634 0039d316-1c4b-4281-b951-d872f2087c98
* Updating XTBs based on .GRDs from branch 874karen@chromium.org2011-10-082-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104631 0039d316-1c4b-4281-b951-d872f2087c98
* Move window scale animation down into the shell (it'll do as an overview for ↵ben@chromium.org2011-10-077-127/+155
| | | | | | | | | | | | | now). Make Shell accessible via a GetInstance() method. Make clicking on the desktop show the scale animation. Who you finna try?! BUG=none TEST=none Review URL: http://codereview.chromium.org/8198014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104600 0039d316-1c4b-4281-b951-d872f2087c98
* Don't send mouse event to invisible windowoshima@google.com2011-10-071-2/+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
* Use Skia image in GetNativeImageNamed for aura/linux.oshima@google.com2011-10-072-4/+4
| | | | | | | | | | | | | Skia is native in this configuration Added log message in events_x to diagnose the problem. BUG=none TEST=none Review URL: http://codereview.chromium.org/8205016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104586 0039d316-1c4b-4281-b951-d872f2087c98
* Fix aura bustage on linux.ben@chromium.org2011-10-071-1/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104575 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes aura build on windows. Makes all tests use the test compositorsky@chromium.org2011-10-075-27/+120
| | | | | | | | | | | | 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-0723-146/+475
| | | | | | | | 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
* Reuse base::i18n::SetICUDefaultLocale from rtl.h in some unittests.tfarina@chromium.org2011-10-071-25/+19
| | | | | | | | | | | This removes duplicated versions of SetICUDefaultLocale() defined in unittests. TEST=base_unittests,ui_unittests R=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/8139034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104550 0039d316-1c4b-4281-b951-d872f2087c98
* Wires up the active methods in NativeWidgetAura.sky@chromium.org2011-10-076-11/+101
| | | | | | | | | | 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
* Simple clipboard support for auraoshima@chromium.org2011-10-071-4/+35
| | | | | | | | | | | 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
* Fix aura buildoshima@chromium.org2011-10-071-2/+2
| | | | | | | | | | TBR=sky@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/8183012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104446 0039d316-1c4b-4281-b951-d872f2087c98
* Change std::wstring to string16 for views::Label and views::Labelyosin@chromium.org2011-10-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * Rename ScopedHDC to ScopedCreateDCyosin@chromium.org2011-10-071-35/+33
| | | | | | | | | | * Use ScopedSelectObject for changed files BUG=99139 TEST=no user visible change Review URL: http://codereview.chromium.org/8139022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
* clang: out-of-line a constructor to fix CrOS clang buildthakis@chromium.org2011-10-072-6/+8
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8183008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104434 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DispatchNativeEvent in favor of GetDispatcher.oshima@chromium.org2011-10-072-13/+2
| | | | | | | | | | 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
* Context-based HTML paste plumbingdcheng@chromium.org2011-10-067-73/+131
| | | | | | | | | | | This patch creates the necessary plumbing to pass the fragment + context into WebKit when pasting HTML. This allows things like <td></td> to be properly reconstructed inside WebKit. BUG=19360 TEST=WebKit layout tests Review URL: http://codereview.chromium.org/7600014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104378 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Add osmesa as dependency for aura_unittests on linux.sadrul@chromium.org2011-10-061-0/+6
| | | | | | | | | BUG=none TEST=aura_unittests on linux Review URL: http://codereview.chromium.org/8168006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104360 0039d316-1c4b-4281-b951-d872f2087c98
* Properly handle vertically flipping the texture.backer@chromium.org2011-10-063-12/+30
| | | | | | | | | | | Our old mechanism for drawing external textures from the GPU process that are vertically flipped does not work if the corresponding layer has a hole in it (we don't want to flip the hole). This patch handles the flip at the texture map where it belongs. BUG=none TEST=with --use-gl=egl on a debug build of TOUCH_UI, go to a page with a combo box (such as news.google.com); open the combo box; you should not see a bright purple hole. Review URL: http://codereview.chromium.org/8177007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104348 0039d316-1c4b-4281-b951-d872f2087c98
* Adds command line switch such that compositor_unittests use osmesa by default.pkotwicz@chromium.org2011-10-062-0/+10
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8138009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104340 0039d316-1c4b-4281-b951-d872f2087c98