summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor_gtk.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix gcc 4.7 building problems.pkasting@chromium.org2012-06-081-4/+4
| | | | | | | | | | This is being submitted on behalf of shanhan@google.com, original CL at https://chromiumcodereview.appspot.com/10537037/ . BUG=None TEST=Built successfully using GCC-4.7 under linux Review URL: https://chromiumcodereview.appspot.com/10543080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141286 0039d316-1c4b-4281-b951-d872f2087c98
* Convert GdkPixbufFromSkBitmap(const SkBitmap*) to ↵pkotwicz@chromium.org2012-05-201-1/+1
| | | | | | | | | | | | | 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
* Linux: Fix the build for Ubuntu Precise.thestig@chromium.org2012-03-221-1/+1
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9817020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128133 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor Pickle Read methods to use higher performance PickleIterator.jbates@chromium.org2012-03-071-1/+1
| | | | | | | | | | | | | | | | There was a lot of redundant error checking and initialization code in all Pickle Read methods because of the void** iterator type. This change replaces the void* iterator with PickleIterator, which encapsulates the read pointer so that less error checking and initialization code is needed for reading. PickleIterator has all the necessary data to do the actual reading. The advantage of having it provide Read methods (as opposed to leaving them solely in the Pickle interface) is that the callers do not need to pass around the const Pickle* once they have a PickleIterator. Followup CLs will refactor the call sites to remove const Pickle* arguments where they are now unnecessary. Then the Pickle::Read* methods can be removed entirely. The alternative approach would have been to change the Pickle::Read methods to non-const and remove the iterator parameter (making Read methods advance an internal read pointer). Unfortunately, the const Read with iterator design is entrenched throughout the chromium code, making this a much more complex change with the same performance outcome. BUG=13108 Review URL: https://chromiumcodereview.appspot.com/9447084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125447 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "GTK: Remove calls that no longer exist and just call the base unref."erg@chromium.org2012-02-291-2/+2
| | | | | | | | | | | This is causing crashes. This reverts r122389. BUG=79722,116274 Review URL: http://codereview.chromium.org/9537019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124254 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Remove calls that no longer exist and just call the base unref.erg@chromium.org2012-02-161-3/+3
| | | | | | | | | BUG=79722 Review URL: http://codereview.chromium.org/9420023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122389 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Don't assert when a website gives us an empty cursor image.erg@chromium.org2011-11-071-0/+6
| | | | | | | | | | BUG=50397 TEST=Go to Bing maps with a debug build; chrome shouldn't crash. Review URL: http://codereview.chromium.org/8479007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108915 0039d316-1c4b-4281-b951-d872f2087c98
* Additional build fixes for auradavemoore@chromium.org2011-10-031-10/+0
| | | | | | | | | | | | | - Fix webcursor - Fix compile regression for set_visibility -> show() / hide() - Fix compile regression for ChromeBrowserMainParts BUG=None TEST=None Review URL: http://codereview.chromium.org/8095016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103713 0039d316-1c4b-4281-b951-d872f2087c98
* Aura under Linux is enabled with:saintlou@chromium.org2011-09-181-0/+10
| | | | | | | | | | | 'use_aura': 1, BUG=none TEST=none Review URL: http://codereview.chromium.org/7850026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101704 0039d316-1c4b-4281-b951-d872f2087c98
* linux: delete code that worked around gtk <2.18evan@chromium.org2011-08-291-27/+0
| | | | | | | | | We now depend on GTK 2.18, and in fact we've been infobaring users who don't have it informing them that Chrome will stop working. Review URL: http://codereview.chromium.org/7791004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98732 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the grab/grabbing cursors (for Mac/GTK).avi@chromium.org2011-03-021-1/+7
| | | | | | | | | BUG=73356 TEST=comment 12 on the bug has a test page; ensure the last two cursors (grab and grabbing) show open and closed hand cursors (respectively) and don't crash Review URL: http://codereview.chromium.org/6591105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76616 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-1/+1
| | | | | | | | | 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
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-1/+1
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring of cursor usage (primarily for linux).sadrul@chromium.org2010-11-231-5/+28
| | | | | | | | | | | | | | Add API to WebCursor to return a native-cursor, and implementation for windows, linux and mac. For linux: Move gtk_util::GetCursor into gfx:: namespace. Also, get rid of ref/unref'ing the cursors from everywhere. Instead, do almost all of it in one place (in gfx). Also, show proper cursors for web-pages with touchui=1 (i.e. add support for updating cursor in RenderWidgetHostViewViews). Review URL: http://codereview.chromium.org/5110010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67034 0039d316-1c4b-4281-b951-d872f2087c98
* gtk: provide some more cursorsevan@chromium.org2010-11-181-3/+3
| | | | | | | | | | | | | | | The up/down resize one is used by Google Calendar when growing/shrinking events. I verified manually this looks good, but I was unable to get a screenshot with the cursor to provide evidence. It looks like a simple black double-ended up/down arrow on my computer. TEST=manually verified, fewer notimpls Review URL: http://codereview.chromium.org/5154005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66657 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: fix decoding of custom cursor bytes.estade@chromium.org2010-08-121-11/+7
| | | | | | | | | | | The bytes of an SkBitmap are not directly translatable into those of a GdkPixbuf. Use the utility function we already have for converting between the pixel data of these two types. BUG=51816 TEST=see bug Review URL: http://codereview.chromium.org/3130008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55825 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Implement WebCursorInfo::TypeNone (i.e., invisible) cursor.viettrungluu@chromium.org2010-07-151-1/+27
| | | | | | | | | BUG=48906 TEST=Write a Pepper plugin which uses the Pepper API to set an invisible cursor. Make sure the cursor disappears over the plugin area. Review URL: http://codereview.chromium.org/2958007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52483 0039d316-1c4b-4281-b951-d872f2087c98
* linux: use some more GDK_ cursor constants for panning cursorsevan@chromium.org2010-07-141-12/+12
| | | | | | | | These aren't the greatest, but I don't think there are better options. Review URL: http://codereview.chromium.org/2931011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52386 0039d316-1c4b-4281-b951-d872f2087c98
* linux: reduce header interdependenciesevan@chromium.org2009-12-291-1/+1
| | | | | | | | | | | | By analyzing gcc -H output, I found some of our worst offenders for headers bringing in other headers. native_web_keyboard_event.h was responsible for just under 60,000 extra includes! This change will in theory make the build faster. Review URL: http://codereview.chromium.org/524004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35326 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming WebKit.gypyaar@chromium.org2009-11-121-1/+1
| | | | | | | | | | | | This mega patch contains a few simple but tightly dependent changes: 1. Deletion of webkit/api/WebKit.gyp. The file now lives in webkit.org. 2. Rename of webkit/webkit.gyp to webkit/webkit_glue.gyp. Having two webkit.gyp was a source of developer confusion. 3. Gyp dependencies are updated across chromium to point at the upstream WebKit.gyp and the renamed webkit_glue.gyp. 4. Some 200+ files include paths fixed to point to third_party/WebKit/WebKit/chromium instead of webkit/api. The later will be deleted in a subsequent patch. Review URL: http://codereview.chromium.org/387020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31749 0039d316-1c4b-4281-b951-d872f2087c98
* Start using WebCursorInfo from the WebKit API. WebCursorInfo is adarin@google.com2009-07-081-50/+47
| | | | | | | | | | | | | | | | lightweight struct containing a description of a cursor that the embedder should render. WebCursor still exists. Instead of WebCursor initializing from a PlatformCursor, it now initializes from a WebCursorInfo. TEST=none BUG=10039 R=jam Review URL: http://codereview.chromium.org/155172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20194 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrect gtk cursors. se-resize and sw-resize are reversed.thestig@chromium.org2009-06-161-2/+2
| | | | | | | | BUG=14213 TEST=see bug report. Review URL: http://codereview.chromium.org/125212 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18535 0039d316-1c4b-4281-b951-d872f2087c98
* Don't override user's default cursor with GDK_ARROW.estade@chromium.org2009-03-251-23/+23
| | | | | | | | BUG=8786 Review URL: http://codereview.chromium.org/42587 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12474 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build bustage. Update enum names.darin@chromium.org2009-01-141-45/+45
| | | | | | | | TBR=dglazkov Review URL: http://codereview.chromium.org/18235 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8028 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for custom cursors set by windowless plugins. Windowless plugins ↵ananta@chromium.org2009-01-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typically set the cursor in NPP_HandleEvent for WM_MOUSEMOVE.The current implementation looks for the cursor type and if the typedoes not match predefinedcursor types defaults to the pointer cursor. The fixes are as below:- 1. Marshal the HCURSOR after copying it to ensure that it remains valid. This works as a HCURSOR is a user object and can be used across processes. Ideally we would like to convert it to a skia bitmap but there are issues with converting monochrome cursors. 2. Added support for marshaling platform specific data in the webcursor Serialize/Deserialize functions. This is in the form of functions like InitPlatformData, SerializePlatformData, DeserializePlatformData, etc. which are stubbed out for the other platforms. 3. Mimic webkit windowless plugin behavior where it sets a flag to ignore the next setCursor after HandleEvent of WM_MOUSEMOVE. If we don't do this the cursor keeps changing between a pointerCursor and the cursor set by the plugin which also causes flicker. 4. Fixed the WebCursor::IsEqual function to ensure that it checks all fields for equality. 5. The browser(RenderWidgetHostViewWin) now maintains a WebCursor instance representing the current cursor. Any cursor updates received from the renderer update the current cursor member maintained by the browser. 6. We intercept the SetCursor API for windowless plugins like Flash and Silverlight and remember the cursor being set. We don't invoke the original API as the browser UI thread would do it anyways. This fixes the annoying cursor flicker caused by the windowless flash plugin instance constantly setting the cursor even when the tab is not visible. This fixes bug http://code.google.com/p/chromium/issues/detail?id=3800. Review URL: http://codereview.chromium.org/15088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7798 0039d316-1c4b-4281-b951-d872f2087c98
* Handle the zoom cursors properly by copying more code out of WebKit's GTK port.evanm@google.com2008-12-031-2/+41
| | | | | | | Review URL: http://codereview.chromium.org/13079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6274 0039d316-1c4b-4281-b951-d872f2087c98
* Custom cursor support.evanm@google.com2008-11-141-0/+25
| | | | | | | | | This is necessary for Google Maps, and also cuts out another NOTIMPLEMENTED(). Review URL: http://codereview.chromium.org/10734 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5487 0039d316-1c4b-4281-b951-d872f2087c98
* Basic cursor support.evanm@google.com2008-11-111-0/+107
Review URL: http://codereview.chromium.org/9744 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5185 0039d316-1c4b-4281-b951-d872f2087c98