[devtools tooling] Change Java detection.

Previous method failed to detect Java version of OpenJDK on ArchLinux:

$ java -version
java version "1.7.0_71"
OpenJDK Runtime Environment (IcedTea 2.5.3) (Arch Linux build 7.u71_2.5.3-3-x86_64)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

The new method extracts the version from the line with pattern
"^\w version "major.minor...", where "\w+" is used to match "java" and "openjdk".

R=apavlov@chromium.org
NOTRY=true
TEST=Ran ./devtools/scripts/compile_frontend.py and verified that it
     executed instead of exiting with the following message:
     "NOTE: Java executable version 1.7 or above not found in $PATH."

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187640 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: copy sidebar styles with format (indentation).

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187645 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: add main frame id to inspector trace event

This is needed so that we can relate impl-side events (e.g. rasterization)
to main-thread source frame where paints are.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187646 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Fix screencast highlight quads.

Previously, clipQuad was undefined in some cases.
Drive-by: fix element title rendering.

BUG=443202

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187648 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Paint Profiler: allow profiling of a clipped picture

We rasterize small tiles independently and picture replay
times may vary significantly based on the clipped rect, so
let Paint Profiler accept a clip rectangle, so we can show
realistic replay times for each raster task.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187650 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Implement automatic title-casing of menu items

This patch allows the devtools developers to provide only a single version
of their messages, which under normal circumstances should be cased
differently, depending on the current platform used (by escaping the
characters, which should be capitalized, with a caret, '^').

R=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@187653 bbb929c8-8fbe-4397-9dbb-9b2b20218538