summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_page_zoom.h
Commit message (Collapse)AuthorAgeFilesLines
* Move chrome zoom constants into their own file.thestig@chromium.org2011-12-151-6/+0
| | | | | | | | | BUG=107063 TEST=none TBR=jam Review URL: http://codereview.chromium.org/8951008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114611 0039d316-1c4b-4281-b951-d872f2087c98
* Declare some zoom constants in the headers so we don't have to duplicate the ↵thestig@chromium.org2011-12-151-0/+6
| | | | | | | | | | | values in plugins. BUG=107063 TEST=none Review URL: http://codereview.chromium.org/8926001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114586 0039d316-1c4b-4281-b951-d872f2087c98
* Page zoom improvements:csilv@chromium.org2011-11-221-0/+25
1. Change from using zoom levels to a range of preset zoom factors (percentages). Zoom levels are the values that WebKit uses for page zoom. While zoom levels are simple to implement, they result in undesirable percentages like 57%, 144%, 207%, etc. Changing to zoom factors gives us user-friendly zoom percentages. 2. Increase the range of supported zoom values. A user can now zoom between 25% to 500%. 3. Use an epsilon value when comparing zoom floating point values. The previous version was doing an equality comparison of double values which may not always work as expected. BUG=71484 TEST=Exercise zoom in/out via the wrench menu; exercise default page zoom setting in options window Review URL: http://codereview.chromium.org/8528011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111087 0039d316-1c4b-4281-b951-d872f2087c98