| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove a bunch of code that Google stopped using/maintaining rather than trying
to update it it. Some would be hard to update, some actually has system provided
replacements; others are patterns that just don't seem as common now.
Prune out the code related to macOS <= 10.5, start pruning some of the really
old iOS support also.
Get the projects mostly limping again with modern Xcodes so tests can be run.
If someone ends up on this commit via history for something they still find
as useful, feel free to do a pull request to bring the snippet of code back to
life and update it for current SDKs.
|
|
|
|
|
| |
GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton.
DELTA=447 (49 added, 296 deleted, 102 changed)
|
|
|
|
|
|
|
| |
sets an integral size.
When resizing labels it's possible to get fractional sizes. This CL fixes the problem by using integral values.
DELTA=17 (17 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
In GTM SizeToFit(), add more padding for NSTexturedRoundedBezelStyle buttons.
R=thomasvl
APPROVED=thomasvl
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Add a fudge factor for buttons (radios, checkboxes) that have forced wordwraps.
R=dmaclach
DELTA=11 (11 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
Use the transforms needed to deal with Resolution Independence when sizing
the window.
R=avi,dmaclach
DELTA=4 (3 added, 0 deleted, 1 changed)
|
|
|
|
|
|
| |
Remove commented out line I missed in last CL.
R=dmaclach
DELTA=1 (0 added, 1 deleted, 0 changed)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Make the size change math right.
R=dmaclach
DELTA=1 (0 added, 0 deleted, 1 changed)
|
|
|
|
|
|
| |
Add an api for forcing a NSTextField to a fixed height but what ever width is needed.
R=dmaclach
DELTA=634 (631 added, 0 deleted, 3 changed)
|
|
|
|
|
|
| |
Add basic support for NSTabView and a unittest to validate simple behaviors.
R=dmaclach
DELTA=1069 (1066 added, 0 deleted, 3 changed)
|
|
|
|
|
|
| |
Path control is 10.5 or later, add ifdef.
R=dmaclach,stuartmorgan
DELTA=2 (2 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Handle path controls in autosizing.
R=stuartmorgan
DELTA=4 (4 added, 0 deleted, 0 changed)
|
|
|
|
|
|
|
|
| |
Add a helper for doing view resizing without resizing subviews.
Fix the fixed width call to not change the width.
Update the unittest to make sure the fixed width call doesn't change the width.
R=stuartmorgan,dmaclach
DELTA=41 (30 added, 0 deleted, 11 changed)
|
|
|
|
|
|
|
| |
Add two apis for making checkboxs/radios and radio groups wrap to their size.
Add a unittest to cover normal and mini sizes.
R=dmaclach,stuartmorgan
DELTA=1174 (1164 added, 0 deleted, 10 changed)
|
|
|
|
|
|
| |
add a helper for resizing a window without the subview resizing.
R=stuartmorgan
DELTA=32 (32 added, 0 deleted, 0 changed)
|
|
|
|
|
|
| |
Adds CGFloat support to NSNumber
R=thomasvl
DELTA=219 (217 added, 0 deleted, 2 changed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add another window to the UILocalizer unittest that puts a bunch of
items into boxes, splitters, and scroll views to make sure they are
working.
Support some NSBox attributes in AppKit+UnitTesting.
Update the size to fit code to only special case regular push buttons and
not other types of buttons.
Update the expectations due to this change.
Add a new unittest to test all button styles and sizes.
Update how we decided to do vertical or horizontal layout on a width box
because left aligning things is visual and doesn't actually align their
frames, so instead we do a rect intersection instead.
Added in the CompilerSDK on Mac OS builds to the paths searches.
Update the comments on how paths are searched to be correct.
R=dmaclach,stuartmorgan
DELTA=2709 (2643 added, 8 deleted, 58 changed)
|
|
|
|
|
|
|
|
| |
Comment on one of the public UI points.
Put in another public UI point for tweaking UI without doing the
localization step (for non localization content tweaking).
R=stuartmorgan
DELTA=12 (11 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
|
| |
Update the textfield fixed width code to work with 10.5 (vs. 10.4 due to
a change on apple's end).
Add a unittest that captures the edge case.
R=stuartmorgan,dmaclach
DELTA=72 (66 added, 1 deleted, 5 changed)
|
|
|
|
|
|
|
| |
Not sure what I was thinking, sizes are CGFloats and it couldn't be unsigned
since the height to grow or shrink...
R=stuartmorgan
DELTA=2 (0 added, 0 deleted, 2 changed)
|
|
|
|
|
|
|
| |
Add an api for autosizing TextFields but keeping the width fixed. This
needs a test in the future, but need it at the moment for chrome.
R=stuartmorgan
DELTA=18 (17 added, 1 deleted, 0 changed)
|
|
|
|
|
|
|
| |
Bump up the min size on buttons with a note about the logic, update the
unittest images accordingly.
R=stuartmorgan
DELTA=9 (3 added, 0 deleted, 6 changed)
|
|
Move the nib finding code in GTMUILocalizer to a class methods so it can
be called without an instance.
Add GTMUILocalizerAndLayoutTweaker getting UI localized and then running
through it to auto size UI items that have been marked and also support
limited tweaks on other objects based on a group of tweaks.
Provide a class method for this sizeToFit fixup of individual objects.
Unittests for the new class.
R=dmaclach,stuartmorgan
DELTA=3161 (3157 added, 0 deleted, 4 changed)
|