aboutsummaryrefslogtreecommitdiff
path: root/AppKit
Commit message (Collapse)AuthorAge
* [Author: rsesek]Gravatar gtm.daemon2011-08-09
| | | | | | In GTM SizeToFit(), add more padding for NSTexturedRoundedBezelStyle buttons. R=thomasvl APPROVED=thomasvl
* [Author: avi]Gravatar gtm.daemon2011-08-08
| | | | | | Switch to using the class methods +saveGraphicsState/+restoreGraphicsState. R=mmentovai APPROVED=dmaclach
* [Author: thomasvl]Gravatar gtm.daemon2011-07-20
| | | | | | Fix typo. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2011-07-20
| | | | | | Fix up missing space. R=thomasvl DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2011-07-20
| | | | | | Fix up test that didn't compile on SnowLeopard due to protocols. TBR=thomasvl DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2011-07-20
| | | | | | | | | Adds a simple key value animation class. CAAnimation doesn't really allow you to animate things that aren't part of CALayers, and this gets us 90% of the way there to being able to not have to subclass NSAnimation for every animation we want to do. R=mikemorton DELTA=155 (155 added, 0 deleted, 0 changed)
* Added by hand due to perforce problems. GTMKeyValueAnimation is a simple key ↵Gravatar dmaclach2011-07-14
| | | | path animation class based on NSAnimation
* [Author: thakis]Gravatar gtm.daemon2011-04-14
| | | | | | | | | | Make implicit assumptions in GTMWindowSheetController explicit by adding asserts. Original review at http://codereview.appspot.com/4418041/ R=avi APPROVED=avi DELTA=8 (6 added, 0 deleted, 2 changed)
* [Author: sail]Gravatar gtm.daemon2011-03-28
| | | | | | | | | | | Tweak fade effect for GTMFadeTruncatingTextFieldCell This change tweaks how we fade the beginning of the text in GTMFadeTruncatingTextFieldCell. Previously we would start drawing the string at the desired position. This meant that the first character was not legible because of the fade effect. With this change we now start drawing a few pixels before the desired position. I also fixed a bug in how we draw the background of the cell. Previously we clipped to the text rect before drawing the background. When the text field had a border this meant that we weren't drawing all of the background because the text rect is slightly smaller than the background rect. With this change we now draw the background rect before setting the text rect clip. R=thomasvl,dmaclach APPROVED=dmaclach DELTA=81 (51 added, 2 deleted, 28 changed)
* [Author: sail]Gravatar gtm.daemon2011-03-18
| | | | | | | | | | | Currently GTMFadeTruncatingTextFieldCell only supports truncating the tail of a string. It should also allow the head of a string to be truncated. I'd like to use this in Chromium. See http://crbug.com/69304 R=thomasvl APPROVED=thomasvl DELTA=238 (197 added, 17 deleted, 24 changed)
* [Author: dmaclach]Gravatar gtm.daemon2011-02-03
| | | | | | | Fix for building GTM on Snow Leopard. We were getting errors for being unable to protect buffers smaller than 8 chars. R=aharper,thomasvl DELTA=7 (4 added, 0 deleted, 3 changed)
* [Author: avi]Gravatar gtm.daemon2011-01-20
| | | | | | Pull __weak modifier from variable whose value is actually owned. R=thakis DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: thakis]Gravatar gtm.daemon2011-01-07
| | | | | | | | | Fix a harmless clang warning about the self-assignment duration = duration; R=thomasvl APPROVED=thomasvl DELTA=6 (0 added, 1 deleted, 5 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-11-10
| | | | | | | Fix up GTMHotKeyTextField so that it compiles cleanly with format string warnings on. Change to match other controls where string value always returns the empty string as opposed to nil. R=thomasvl DELTA=7 (4 added, 0 deleted, 3 changed)
* [Author: avi]Gravatar gtm.daemon2010-11-08
| | | | | | Allow adding a new sheet in a sheet's closing callback in GTMWindowSheetController. GTMWindowSheetController does not completely remove a sheet until after the callback has been invoked. This causes an assert to trigger if another sheet is launched in the callback, which is inconsistent with normal Cocoa sheets. Switch the order of the two operations and add a unit test. This affects http://crbug.com/56948 . Patch by davidben@chromium.org . R=dmaclach DELTA=112 (106 added, 5 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-10-06
| | | | | | Set resizing defaults for GTMLargeTypeWindow to something sane. R=thomasvl DELTA=2 (2 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-09-30
| | | | | | | Fix up GTMCarbonEvent to fix a major bug with comparing events. Also increases error checking and makes debugging easier. R=thomasvl DELTA=18 (6 added, 0 deleted, 12 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-09-30
| | | | | | Allow tabbing to move around dialog, and add a description method. R=thomasvl DELTA=11 (10 added, 0 deleted, 1 changed)
* [Author: aharper]Gravatar gtm.daemon2010-09-29
| | | | | | | GTMHotKeyTextField on 10.4 again, properties are too new, so write custom accessors. DELTA=47 (29 added, 18 deleted, 0 changed) R=dmaclach
* [Author: dmaclach]Gravatar gtm.daemon2010-09-21
| | | | | | | | | | Revamped GTMHotKeyTextField so that it is far more of the standard control/cell architecture. Cells can now be used in tableviews. Binding is done correctly. You can now use the "delete" key to clear the hotkey field. Generally simplified the interface. R=thomasvl DELTA=750 (154 added, 423 deleted, 173 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-09-21
| | | | | | Clean up GTMCarbonEvent hotkey stuff to make it more usable. R=thomasvl DELTA=138 (59 added, 13 deleted, 66 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-07-28
| | | | | | Fix up the GTM build due to problems with GTMULocalizer. TBR=thomasvl DELTA=1128 (713 added, 411 deleted, 4 changed)
* [Author: rsesek]Gravatar gtm.daemon2010-07-12
| | | | | | | | Add support for NSSegmentedControl to GTMUILocalizer. This fixes http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=53. R=dmaclach APPROVED=dmaclach DELTA=142 (137 added, 1 deleted, 4 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-08
| | | | | | Fix up build machine issue. TBR=thomasvl DELTA=6 (3 added, 0 deleted, 3 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-04
| | | | | | | Turns on the undeclared-selector warning. This may cause builds to fail if they are using our configs. Also cleaned up some whitespace issues. R=thomasvl DELTA=94 (71 added, 22 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-02
| | | | | | Another Leopard PCH casualty.. DELTA=0 (0 added, 0 deleted, 0 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-06-02
| | | | | | Fix up build on Leopard. R=thomasvl DELTA=2 (2 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-06-02
| | | | | | | | | Cleans up builds of GTM on Snow Leopard with gcc 4.2. Cleans up iPhone configs Adds libgcov for Snow Leopard Fixes up some small bugs. R=thomasvl DELTA=2028 (972 added, 990 deleted, 66 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-05-15
| | | | | | Add missing files from previous checkin. R=thomasvl DELTA=0 (0 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-05-14
| | | | | | | | | There are still a couple of errors occurring, but this fixes up the majority of stuff. I figured I'd send it out to you now to take a look at in the morning, and then we can clean up the last couple of issues. Not quite sure what to do about the naming of data files so that we can encompass ranges of system version (e.g. this file applies to 10.5 and 10.6 but not 10.4 or 10.7. R=thomasvl DELTA=10598 (10211 added, 70 deleted, 317 changed)
* [Author: avi]Gravatar gtm.daemon2010-05-05
| | | | | | Typo fix in selector name. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-04-15
| | | | | | | | refactor GTMUnitTestingUtilities into GTMAppKitUnitTestingUtilties and GTMFoundationUnitTestingUtilities. convert GTMSignalHandler over to using new runloop routines fix bug in GTMSignalHandler API with GC where releasing it wasn't sufficient to stop it listening. R=thomasvl DELTA=1227 (638 added, 566 deleted, 23 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-04-14
| | | | | | Add utility code to make it faster, easier and more robust to spin runloops during tests. R=thomasvl DELTA=186 (140 added, 19 deleted, 27 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-04-14
| | | | | | Want mouse up not down for the animation slowdowns. R=dmaclach DELTA=7 (0 added, 0 deleted, 7 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-04-12
| | | | | | | | | NSEvent throws if you call -characters on a non key event, so instead of checking the requested mask, we have to check the event type (say someone uses any event as the mask, and it's a click event...) Also handle keydown or up for the tab check. R=dmaclach,stuartmorgan DELTA=8 (1 added, 0 deleted, 7 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-04-06
| | | | | | | Add a radar number for the sizeToFit padding issue. Reorder two functions in the impl to match the header. R=dmaclach DELTA=55 (28 added, 27 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-04-06
| | | | | | | | | | Put the padding tweak in to the NSMatrix path also for wrapped strings since they can have the same problems as standalong radio/checkboxes. The padding amount also is increased slightly to handle Kerning that can happen on some european languages (accent chars). Move some constants into global constants in the file for general cleanup. R=dmaclach,stuartmorgan DELTA=36 (26 added, 8 deleted, 2 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-04-05
| | | | | | Fix up shadowed var problem. R=thomasvl DELTA=2 (0 added, 0 deleted, 2 changed)
* [Author: csilv]Gravatar gtm.daemon2010-04-02
| | | | | | | use LaunchServices APIs when running on 10.5 and above. R=dmaclach,thomasvl APPROVED=dmaclach DELTA=150 (150 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-03-26
| | | | | | | Clean up issues brought up in recent TBR. Check for single character, and check to make sure ctrl isn't down as well. R=thomasvl DELTA=2 (1 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-03-26
| | | | | | | | | Stop animation slow down applying to shift-tabs. Tab and shift-tab are often used for navigating around UI elements, and in the majority of cases slowing down the animations while navigating around UI elements is not desired. TBR=thomasvl,mrossetti DELTA=24 (15 added, 4 deleted, 5 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-19
| | | | | | Add a fudge factor for buttons (radios, checkboxes) that have forced wordwraps. R=dmaclach DELTA=11 (11 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-03-19
| | | | | | | | | | This may help clean up some code in chrome, and make doing animations on the mac easier in general. Not really sure how to unit test effectively, but I'll try and come up with something this evening. Hopefully you will get a chance to look at it, so Andy can use it for his current CL in flight http://codereview.chromium.org/1118004. R=thomasvl DELTA=908 (908 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-17
| | | | | | | If a width base tweaker is adjusting a window's size with the result, apply the calculations needed for Resolution Independence also. R=avi,dmaclach DELTA=5 (3 added, 0 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-17
| | | | | | | Use the transforms needed to deal with Resolution Independence when sizing the window. R=avi,dmaclach DELTA=4 (3 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-03-12
| | | | | | Reinstate the carbon event application handler. R=thomasvl DELTA=48 (48 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-10
| | | | | | Remove commented out line I missed in last CL. R=dmaclach DELTA=1 (0 added, 1 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-03-10
| | | | | | Change over animation so it will work with other event types than just mouse downs. R=thomasvl DELTA=33 (16 added, 1 deleted, 16 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-10
| | | | | | | | Don't trim the whitespace off the string when doing test sizing... TextField does some odd stuff with whitespace when it does wrap things, if you don't include the white space, then when you use the real string (to wrap), it moves the last word down a line because of lack of space for the whitespace (go figure). Oh, and fix the leak. R=dmaclach DELTA=6 (0 added, 1 deleted, 5 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-03-09
| | | | | | Make the size change math right. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)