summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gtk_util.cc
Commit message (Collapse)AuthorAgeFilesLines
* ui/gfx: Convert scoped_arrays to the new scoped_ptr style.tfarina@chromium.org2013-01-121-3/+3
| | | | | | | | | | BUG=109874 R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11817043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176538 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ClipboardGtk::WriteBitmap not unpremultiplying images.dcheng@chromium.org2012-10-201-15/+7
| | | | | | | | | | | We share code with GdkPixbufFromSkBitmap now, which has also been updated to remove the need to pass in our own function to free memory. BUG=154573 Review URL: https://chromiumcodereview.appspot.com/11187047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163125 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Clean up code for getting font rendering settings.derat@chromium.org2012-06-131-0/+16
| | | | | | | | | | | | | | | | | | | | | This adds a new FontRenderParams struct and a function for getting the system's default settings. It also updates the various bits of code that were querying various settings (often handling both GTK and non-GTK cases) to use the new function instead. I'm also fixing an issue where RendererPreferences's font settings (used for web fonts) weren't getting initialized for the non-GTK case, resulting in web fonts never using subpixel rendering. BUG=119193,125235,131501 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10535097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141837 0039d316-1c4b-4281-b951-d872f2087c98
* Convert GdkPixbufFromSkBitmap(const SkBitmap*) to ↵pkotwicz@chromium.org2012-05-201-7/+7
| | | | | | | | | | | | | GdkPixbufFromSkBitmap(const SkBitmap&) Convert GdkPixbufToSkBitmap to GdkPixbufToImageSkia BUG=124566 TEST=Compiles Review URL: https://chromiumcodereview.appspot.com/10377122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138064 0039d316-1c4b-4281-b951-d872f2087c98
* Use gdk_init() instead of gtk_init() to open the display. It's much lighter andcevans@chromium.org2012-04-111-2/+11
| | | | | | | doesn't create wasteful threads (which get in the way of sandboxing). Review URL: https://chromiumcodereview.appspot.com/10051009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131821 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Make use of SkAutoLockPixels to automatically lock and unlock bitmap ↵tfarina@chromium.org2012-03-261-2/+1
| | | | | | | | | | pixels properly. R=asvitkine@chromium.org Review URL: https://chromiumcodereview.appspot.com/9858001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128921 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Add a typedef of std::map to improve the readability of ↵tfarina@chromium.org2012-03-261-13/+13
| | | | | | | | | | GdkCursorCache implementation. R=asvitkine@chromium.org Review URL: https://chromiumcodereview.appspot.com/9804003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128908 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Remove linux_util.h include from gtk_util.h, fix up downstream files.tfarina@chromium.org2012-03-261-0/+1
| | | | | | | | | R=asvitkine@chromium.org TBR=erg@chromium.org Review URL: https://chromiumcodereview.appspot.com/9855003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128847 0039d316-1c4b-4281-b951-d872f2087c98
* ui/gfx: Move pango related functions to pango_util.{h,cc}.tfarina@chromium.org2012-03-071-7/+1
| | | | | | | | R=xji@chromium.org Review URL: https://chromiumcodereview.appspot.com/9554016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125495 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 4 exit time destructors from ui and content for linux and chromeos.thakis@chromium.org2011-11-091-1/+1
| | | | | | | | | | BUG=10600 TEST=none TBR=ben Review URL: http://codereview.chromium.org/8510019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109271 0039d316-1c4b-4281-b951-d872f2087c98
* aura: A few changes to have aura_demo compile and run on linux.sadrul@chromium.org2011-09-071-76/+4
| | | | | | | | | | | | | * Make 'aura' a component, and export Desktop and Window. * Events (Key and Mouse) from X Events. * Rip non-gtk bits out of gfx/gtk_util into gfx/linux_util BUG=93934,93933 TEST=none Review URL: http://codereview.chromium.org/7833016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99898 0039d316-1c4b-4281-b951-d872f2087c98
* Start moving code from BrowserMain to content, so that it can be reused by ↵jam@chromium.org2011-09-071-0/+29
| | | | | | | | all embedders of content. I've based the refactoring on the existing BrowserMainParts. This is the first step; I didn't want to do it all at the same time because it would be too big. Remaining tasks:-rename the browser_main files in chrome to chrome_browser_main-move the OS specific implementations of BrowserMainParts that are needed for content-finish splitting the remaining BrowserMain function (now that's in TemporaryContinue())BUG=90445 Review URL: http://codereview.chromium.org/7779040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99884 0039d316-1c4b-4281-b951-d872f2087c98
* Adding Wayland support for ui/gfxdnicoara@chromium.org2011-08-101-1/+11
| | | | | | | | | | | | | | | | | * Added GL surface and context support for Wayland. * Updated ui/gfx files to allow Wayland support * All Wayland code is behind the use_wayland gyp flag This CL depends on http://codereview.chromium.org/7457023 BUG= TEST=Compiled Chrome with use_wayland disabled to verify that the changes didn't break anything Review URL: http://codereview.chromium.org/7467007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96192 0039d316-1c4b-4281-b951-d872f2087c98
* Apply HIDE_PREFIX to Skia strings on linux without doubling underscores.rhashimoto@chromium.org2011-06-211-2/+2
| | | | | | | | | | | | | | | | 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
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-2/+2
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* Move src/gfx/ to src/ui/gfxsail@chromium.org2011-02-021-0/+212
To reduce the size of this change I've left stub header files in src/gfx/. Once all includes have been updated I'll delete the stub files. BUG=71063 TEST=Still doing test builds. Review URL: http://codereview.chromium.org/6246027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73530 0039d316-1c4b-4281-b951-d872f2087c98