- cefclient: Add background-color command-line argument (issue #1161).

- Rename cef_url.h to cef_parser.h.
- Add new CefParseCSSColor function.
This commit is contained in:
Marshall Greenblatt
2015-04-09 16:59:34 +02:00
parent 2c03492160
commit ae91d8f4e5
33 changed files with 645 additions and 434 deletions

View File

@@ -3,11 +3,14 @@
// be found in the LICENSE file.
#include <sstream>
#include "include/cef_url.h"
#include "include/cef_parser.h"
#include "libcef/renderer/webkit_glue.h"
#include "base/base64.h"
#include "net/base/escape.h"
#include "net/base/mime_util.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "url/gurl.h"
bool CefParseURL(const CefString& url,
@@ -124,3 +127,10 @@ CefString CefURIDecode(const CefString& text,
else
return net::UnescapeURLComponent(text.ToString(), type);
}
bool CefParseCSSColor(const CefString& string,
bool strict,
cef_color_t& color) {
return webkit_glue::ParseCSSColor(
blink::WebString::fromUTF8(string.ToString().data()), strict, color);
}