Change GetTooltipText() to return the value directly

Instead of using an output parameter of pointer type, this CL changes
GetTooltipText() function to directly return the tooltip's value.

There is one case where the return value is used by ChromeOS
ShelfButton to indicate whether the tooltip should not be drawn by View.
We added one API for such case.


Change-Id: Ie190c04c26b5d004857e9441994f12ebe84124a3
Reviewed-by: Scott Violet <>
Reviewed-by: Peter Kasting <>
Commit-Queue: Wei Li <>
Cr-Commit-Position: refs/heads/master@{#641255}
57 files changed