mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- 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:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user