Type conversion fixes, ui/gfx/ edition.

This is mostly to fix MSVC warnings about possible value truncation.

BUG=81439
TEST=none

Review URL: https://codereview.chromium.org/649203003

Cr-Commit-Position: refs/heads/master@{#302687}
17 files changed