Support for json media types as (non-image) mime types.

Consider mime types with a JSON media type (*) just like
"application/json" is; i.e., rendered as text content. Similarly for
devtools, have such mime types be equally previewable. Also addressed
a smaller bug which made non-XHR loaded resources with text mime types
(but no charset supplied in the response) to not be previewable.

Added inspector tests to verify that such mime types are indeed
previewed using the JSON viewer.

* - "application/<something>+json", http://tools.ietf.org/html/rfc6839#section-3.1

R=tyoshino@chromium.org,pfeldman@chromium.org,vsevik@chromium.org
BUG=278568

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164220 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add support for SmartClip

SmartClip is a feature used on Samsung devices via the Android WebView. It
finds nodes and text related to a given clip retangle and creates an encoded
string which is interpreted by Samsung's SmartClip module.

This patch is based on https://codereview.chromium.org/112423003/ by Juhui Lee <juhui24.lee@samsung.com>.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164221 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove authorOnly parameter in DOMWindow::getMatchedCSSRules method as it is always called with the default value.

This was probably forgotten in https://src.chromium.org/viewvc/blink?revision=70335&view=revision when user agent style
sheets were made unavailable through CSSOM.
It is confusing since it makes one (incorrectly) assume that user agent style sheets are sometimes returned through this API.

R=ojan, eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@164222 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: treat exceptions as a type of interface

Now that we've implemented exceptions in Python:
The compiler can be significantly simplified by treating exceptions as
a type of interface.

There's only one exception (DOMException), and no new ones are expected;
the only difference in the CG between interfaces and exceptions is one value,
so we want to minimize overhead in supporting exceptions.
This CL minimizes the code: all we need is one added flag ('is_exception').

R=haraken
NOTRY=true

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

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