summaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* Same as http://codereview.chromium.org/7282021/ after PNG has been added.saintlou@chromium.org2011-06-301-1/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7291011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91202 0039d316-1c4b-4281-b951-d872f2087c98
* Remove app from a bunch of DEPS files.tfarina@chromium.org2011-06-301-5/+2
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7218065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91179 0039d316-1c4b-4281-b951-d872f2087c98
* Resources have moved after http://codereview.chromium.org/7282021/ was LGTM.saintlou@chromium.org2011-06-301-0/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7292005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91176 0039d316-1c4b-4281-b951-d872f2087c98
* Compile fix for windows.backer@chromium.org2011-06-301-1/+2
| | | | | | | | This should fix a compile error on Windows introduced at r91145. TBR=sky@chromium.org,backer@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91155 0039d316-1c4b-4281-b951-d872f2087c98
* Lands http://codereview.chromium.org/7262024/ for Ian:sky@chromium.org2011-06-305-0/+529
| | | | | | | | | | | Added interpolated transforms BUG= none TEST=ui_unittests Review URL: http://codereview.chromium.org/7285003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91145 0039d316-1c4b-4281-b951-d872f2087c98
* Move app/resources/* to ui/resources/ directory.tfarina@chromium.org2011-06-295-4/+153
| | | | | | | | | | | 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
* Copy the pngs from app/resources/ to ui/resources/.tfarina@chromium.org2011-06-2979-0/+0
| | | | | | | | | | | | | This is so I can use the trybots in a follow up patch. BUG=72317 TEST=None R=maruel@chromium.org Review URL: http://codereview.chromium.org/7248030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90948 0039d316-1c4b-4281-b951-d872f2087c98
* Makes multiple calls to OSExchangeData::SetData with the same datasky@chromium.org2011-06-293-1/+77
| | | | | | | | | | | | replace existing data. BUG=none TEST=none R=tony@chromium.org Review URL: http://codereview.chromium.org/7276044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90924 0039d316-1c4b-4281-b951-d872f2087c98
* Updating XTBs based on .GRDs from branch 782laforge@chromium.org2011-06-291-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90899 0039d316-1c4b-4281-b951-d872f2087c98
* Move app_base_nacl_win64 to ui_base_nacl_win64 target.tfarina@chromium.org2011-06-281-0/+28
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7277015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90838 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ifdef's for touchui stuff from events code.sadrul@chromium.org2011-06-281-4/+0
| | | | | | | | | | | 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-281-0/+1
| | | | | | | | | | | | | | | 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
* Update translations using strings from launchpad.net r255fta@sofaraway.org2011-06-272-0/+7
| | | | | | | | | This includes a new lang: bs (Bosnian). Patch from Fabien Tassin <fta@sofaraway.org>. Review URL: http://codereview.chromium.org/7278001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90652 0039d316-1c4b-4281-b951-d872f2087c98
* Add Clipboard GetSequenceNumber interface which allows us to version the ↵cdn@chromium.org2011-06-274-0/+21
| | | | | | | | | data on the clipboard. BUG=73478 Review URL: http://codereview.chromium.org/7222016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90646 0039d316-1c4b-4281-b951-d872f2087c98
* Fix checkbox in windows uninstaller.rogerta@chromium.org2011-06-272-9/+62
| | | | | | | | | | 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
* ui: Remove unnecessary typedefs of testing::Test.tfarina@chromium.org2011-06-274-20/+16
| | | | | | | | | | | | | | The TEST() macro is used to define and name a test function, the first argument is the test case name and thus doesn't need to be a typedef of testing::Test. BUG=None TEST=ui_unittests R=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/7262022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90567 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "EGLImage transport for TOUCH_UI".backer@chromium.org2011-06-256-0/+97
| | | | | | | | | | The issue with r90511 was that we need EGL header files for touchui=1 builds. The solution was to pull them in from third_party/angle for touchui=1 only. BUG=none TEST=by hand on Linux (w/ and w/o TOUCH_UI), Windows, and Mac TBR=sky@chromium.org,apatrick@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90513 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 90511 - Use pixmaps and EGLImages to transport image data between GPU ↵backer@chromium.org2011-06-256-97/+0
| | | | | | | | | | | | | | | | process and browser. Behind a compile TOUCH_UI flag. It uses the MAC OSX AcceleratedSurface IPCs to communicate between the GPU process and browser. The major difference between the OSX display path is that I send an ACK back after AcceleratedSurfaceSetIOSurface because the process of binding a texture to the pixmap may destroy the contents of the pixmap. BUG=none TEST=by hand on Linux (w/ and w/o TOUCH_UI), Windows, and Mac Review URL: http://codereview.chromium.org/6987014 TBR=backer@chromium.org Review URL: http://codereview.chromium.org/7261016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90512 0039d316-1c4b-4281-b951-d872f2087c98
* Use pixmaps and EGLImages to transport image data between GPU process and ↵backer@chromium.org2011-06-256-0/+97
| | | | | | | | | | | | | browser. Behind a compile TOUCH_UI flag. It uses the MAC OSX AcceleratedSurface IPCs to communicate between the GPU process and browser. The major difference between the OSX display path is that I send an ACK back after AcceleratedSurfaceSetIOSurface because the process of binding a texture to the pixmap may destroy the contents of the pixmap. BUG=none TEST=by hand on Linux (w/ and w/o TOUCH_UI), Windows, and Mac Review URL: http://codereview.chromium.org/6987014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90511 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 90395 - Remove the lock in GtkNativeViewManager.backer@chromium.org2011-06-252-14/+43
| | | | | | | | | | | | Since removing the X11 background thread, this class is now only used from the UI thread. Review URL: http://codereview.chromium.org/7187026 TBR=tony@chromium.org Review URL: http://codereview.chromium.org/7235020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90510 0039d316-1c4b-4281-b951-d872f2087c98
* Expose CompositorGL and TextureGL.backer@chromium.org2011-06-253-164/+290
| | | | | | | | | | | | | RWHVV_touch will soon use CompositorGL and TextureGL. It will subclass TextureGL to wrap image data coming from the GPU process. It will need to access CompositorGL in order to make the GL context associated with the compositor current when making instances of the subclass of TextureGL. In addition, the subclass of TextureGL will use a slightly different fragment shader. This CL also includes a refactor of how shaders are produced to share commonality. BUG=none TEST=none Review URL: http://codereview.chromium.org/7235003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90506 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "Move app/win/* files to base/win/, ui/base/win and chrome/common/ ↵tfarina@chromium.org2011-06-253-0/+156
| | | | | | | | | | | | | | | | directories." The issue with the r90464 was that in the win shared build we build dlls and we need BASE_API to export functions and symbols. BUG=72317 TEST=None TBR=rsesek@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/7263009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90505 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 90464 - Move app/win/* files to base/win/, ui/base/win and ↵tfarina@chromium.org2011-06-253-156/+0
| | | | | | | | | | | | | | | | chrome/common/ directories. BUG=72317 TEST=None R=rsesek@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/7231016 TBR=tfarina@chromium.org Review URL: http://codereview.chromium.org/7265009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90471 0039d316-1c4b-4281-b951-d872f2087c98
* Move app/win/* files to base/win/, ui/base/win and chrome/common/ directories.tfarina@chromium.org2011-06-253-0/+156
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/7231016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90464 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the glib message-pump, and use it as the base for a gtk message ↵sadrul@chromium.org2011-06-241-3/+2
| | | | | | | | | | | | | | | | | | | 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
* Remove the lock in GtkNativeViewManager.tony@chromium.org2011-06-242-43/+14
| | | | | | | | | Since removing the X11 background thread, this class is now only used from the UI thread. Review URL: http://codereview.chromium.org/7187026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90395 0039d316-1c4b-4281-b951-d872f2087c98
* Allow View to have a layer whose texture is updated externally.backer@chromium.org2011-06-242-0/+10
| | | | | | | | | | | 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
* Adds the ability to animate transforms/bounds to View.sky@chromium.org2011-06-234-0/+293
| | | | | | | | | | 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
* ui/base/models: Replace ASSERT_* checks by EXPECT_* in TreeNode unittests.tfarina@chromium.org2011-06-231-59/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that we generally should use EXPECT, and only switch to ASSERT when the test would otherwise crash. An example when to use ASSERT is: - When going to manipulate a returned pointer value, we should ASSERT at some point that the pointer is non-NULL. Another example is: - If you are going to check the values in an array, you ASSERT on the size of the array. I.e, the array should contain 3 elements, because you are going to access the third element at index 2, if the array doesn't contain 3 elements, the test will crash, so you should ASSERT before trying to access the element instead of EXPECT because you want to abort the test instead of crashing the entire binary. And in the cases here, we don't have these situations and the individual test expectations are not linked, so we are better using EXPECT than ASSERT everywhere. BUG=None TEST=ui_unittests --gtest_filter=TreeNodeModelTest.* R=phajdan.jr@chromium.org,sky@chromium.org Review URL: http://codereview.chromium.org/7243005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90234 0039d316-1c4b-4281-b951-d872f2087c98
* Ref count the browser compositor textures.backer@chromium.org2011-06-234-137/+130
| | | | | | | | | | | This is in preparation of having the browser compositor display textures generated by the GPU process. BUG=none TEST=none Review URL: http://codereview.chromium.org/7232016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90222 0039d316-1c4b-4281-b951-d872f2087c98
* Localize strings, speeds.avi@chromium.org2011-06-226-0/+285
| | | | | | | | | BUG=86527 TEST=run in non-English. For European languages, during a download the decimal separators should be commas (e.g. "0,0 MB"). (The speeds are in strings files and might take a little time to run through the translation machinery.) Review URL: http://codereview.chromium.org/7189076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90092 0039d316-1c4b-4281-b951-d872f2087c98
* RESOURCE_LEAK coverity fix.binji@chromium.org2011-06-221-1/+3
| | | | | | | | | | | CID=16416 BUG=none TEST=none Review URL: http://codereview.chromium.org/7228002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90076 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NativeThemeWin with --enable-accelerated-drawing path.asvitkine@chromium.org2011-06-221-11/+18
| | | | | | | | | | | | | Do a local copy of the bitmap pixels to a temporary bitmap whose pixels are created with |allocPixels()| and hence refcounted. This is necessary because SkPicture defers drawing until some time after the |drawBitmap()| call and expects the ref-counting mechanism to hold on to the pixels for it. BUG=none TEST=manual using --enable-accelerated-drawing and --force-compositing-mode flags Review URL: http://codereview.chromium.org/7189064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90025 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2011-06-221-1/+1
| | | | | | | | | | | | CID=9269,13399,14520 BUG=none TEST=none R=vandebo@chromium.org Review URL: http://codereview.chromium.org/7216031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89966 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-06-222-17/+32
| | | | | | | | | | | | CID=8976,8977,8978,8979,8980,8981,8982,17240 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7227002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89962 0039d316-1c4b-4281-b951-d872f2087c98
* Move app/mac/ files to ui/gfx/mac/ directory.tfarina@chromium.org2011-06-225-0/+147
| | | | | | | | | | | BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7200045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89956 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Remove dead code in gfx::PathProvider().thestig@chromium.org2011-06-211-9/+1
| | | | | | | | | | BUG=none TEST=none CID=8818 Review URL: http://codereview.chromium.org/7217016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89896 0039d316-1c4b-4281-b951-d872f2087c98
* Adds Compositor::SchedulePaint. The X side is NOTIMPLEMENTED.sky@chromium.org2011-06-213-2/+19
| | | | | | | | | | BUG=none TEST=none R=wjmaclean@chromium.org,ben@chromium.org Review URL: http://codereview.chromium.org/7219010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89881 0039d316-1c4b-4281-b951-d872f2087c98
* Adds Layer as a class between View and the Texture.sky@chromium.org2011-06-213-0/+140
| | | | | | | | | | 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
* ui/base/models: Allocate |root| on the stack.tfarina@chromium.org2011-06-211-16/+14
| | | | | | | | | | | | | | Instead of allocating it on the heap, just allocate it on the stack. Thus we don't have to delete it manually. BUG=None TEST=ui_unittests --gtest_filter=TreeNodeModelTest.BasicOperations R=phajdan.jr@chromium.org,sky@chromium.org Review URL: http://codereview.chromium.org/7205022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89863 0039d316-1c4b-4281-b951-d872f2087c98
* Update translations using strings from launchpad.net r248fta@sofaraway.org2011-06-211-0/+1
| | | | | | | | Patch from Fabien Tassin <fta@sofaraway.org>. Review URL: http://codereview.chromium.org/7205044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89861 0039d316-1c4b-4281-b951-d872f2087c98
* Apply HIDE_PREFIX to Skia strings on linux without doubling underscores.rhashimoto@chromium.org2011-06-216-7/+79
| | | | | | | | | | | | | | | | On linux, CanvasSkia::DrawStringInt() was removing ampersands (when HIDE_PREFIX flag was set) with gfx::RemoveWindowsStyleAccelerators(), which has the side effect of doubling underscores. This CL replaces the call with code that only strips ampersands (turning doubled ampersands into a single ampersand). BUG=chromium-os:15823 TEST=observe network menu with SSIDs containing underscores and ampersands Review URL: http://codereview.chromium.org/7170025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89845 0039d316-1c4b-4281-b951-d872f2087c98
* Augment the gfx::Image conversion methods to let callers choose between weak ↵rsesek@chromium.org2011-06-215-25/+138
| | | | | | | | | | | | | | | | and strong refs. This deprecates the operator-based conversion methods in favor of To/CopyType(). New callsites should use these methods. Other uses will be converted in a later CL. BUG=58030 TEST=ui_unittests Review URL: http://codereview.chromium.org/7205031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89826 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix more regressions for net.dllrvargas@google.com2011-06-201-0/+1
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7202014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89759 0039d316-1c4b-4281-b951-d872f2087c98
* Add a debugging flag to annotate web forms with their Autofill field type ↵isherman@chromium.org2011-06-202-1/+22
| | | | | | | | | | | | | predictions. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89716 Review URL: http://codereview.chromium.org/7187029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89745 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89716 - Add a debugging flag to annotate web forms with their ↵isherman@chromium.org2011-06-202-22/+1
| | | | | | | | | | | | | | Autofill field type predictions. BUG=none TEST=none Review URL: http://codereview.chromium.org/7187029 TBR=isherman@chromium.org Review URL: http://codereview.chromium.org/7204037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89720 0039d316-1c4b-4281-b951-d872f2087c98
* Add a debugging flag to annotate web forms with their Autofill field type ↵isherman@chromium.org2011-06-202-1/+22
| | | | | | | | | | | predictions. BUG=none TEST=none Review URL: http://codereview.chromium.org/7187029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89716 0039d316-1c4b-4281-b951-d872f2087c98
* Disable compositor if GL is failed to initialize.oshima@google.com2011-06-201-2/+2
| | | | | | | | | BUG=86600 TEST=see bug description for repro step Review URL: http://codereview.chromium.org/7201017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89678 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move resource_bundle_unittest.cc from app.gyp to ui_unittests.gypi.tfarina@chromium.org2011-06-202-0/+17
| | | | | | | | | | | | | This was the last remaining test to move. BUG=72317 TEST=ui_unittests R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7201011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89665 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix regressions for net.dllrvargas@google.com2011-06-171-0/+1
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7111060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89558 0039d316-1c4b-4281-b951-d872f2087c98