Commit 502d1679 authored by oshima's avatar oshima Committed by Commit bot

Use shorter max length for tooltip text on Windows

1024 is the original value (see https://codereview.chromium.org/924433002, and https://codereview.chromium.org/197031)

BUG=513693
R=sky@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#357002}
parent 19ecf184
...@@ -28,7 +28,12 @@ namespace { ...@@ -28,7 +28,12 @@ namespace {
const int kTooltipTimeoutMs = 500; const int kTooltipTimeoutMs = 500;
const int kDefaultTooltipShownTimeoutMs = 10000; const int kDefaultTooltipShownTimeoutMs = 10000;
#if defined(OS_WIN)
// Drawing a long word in tooltip is very slow on Windows. crbug.com/513693
const size_t kMaxTooltipLength = 1024;
#else
const size_t kMaxTooltipLength = 2048; const size_t kMaxTooltipLength = 2048;
#endif
// Returns true if |target| is a valid window to get the tooltip from. // Returns true if |target| is a valid window to get the tooltip from.
// |event_target| is the original target from the event and |target| the window // |event_target| is the original target from the event and |target| the window
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment