Fix transparent background for toolbar in DevTools (issue #313).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@351 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
b45a7175ac
commit
1bb1526985
|
@ -82,7 +82,15 @@ public:
|
||||||
CefRefPtr<CefRequest> request)
|
CefRefPtr<CefRequest> request)
|
||||||
OVERRIDE
|
OVERRIDE
|
||||||
{
|
{
|
||||||
std::string url = request->GetURL();
|
// Remove the query component of the URL, if any.
|
||||||
|
CefURLParts parts;
|
||||||
|
CefParseURL(request->GetURL(), parts);
|
||||||
|
cef_string_clear(&parts.spec);
|
||||||
|
cef_string_clear(&parts.query);
|
||||||
|
CefString urlStr;
|
||||||
|
CefCreateURL(parts, urlStr);
|
||||||
|
|
||||||
|
std::string url = urlStr;
|
||||||
const char* path = &url.c_str()[strlen(kChromeDevToolsURL)];
|
const char* path = &url.c_str()[strlen(kChromeDevToolsURL)];
|
||||||
|
|
||||||
int size = -1;
|
int size = -1;
|
||||||
|
|
|
@ -1452,7 +1452,10 @@ void CefBrowserImpl::UIT_ShowDevTools()
|
||||||
BrowserDevToolsClient* client = dev_tools_agent_->client();
|
BrowserDevToolsClient* client = dev_tools_agent_->client();
|
||||||
if (!client) {
|
if (!client) {
|
||||||
// Create the inspector window.
|
// Create the inspector window.
|
||||||
CefString url(base::StringPrintf("%sdevtools.html", kChromeDevToolsURL));
|
CefString url(base::StringPrintf(
|
||||||
|
"%sdevtools.html?docked=false&toolbarColor=rgba(223,223,223,1)&"
|
||||||
|
"textColor=rgba(18,50,114,1)",
|
||||||
|
kChromeDevToolsURL));
|
||||||
|
|
||||||
CefPopupFeatures features;
|
CefPopupFeatures features;
|
||||||
CefRefPtr<CefBrowserImpl> browser = UIT_CreatePopupWindow(url, features);
|
CefRefPtr<CefBrowserImpl> browser = UIT_CreatePopupWindow(url, features);
|
||||||
|
|
|
@ -27,7 +27,7 @@ bool ClientHandler::OnBeforePopup(CefRefPtr<CefBrowser> parentBrowser,
|
||||||
|
|
||||||
#ifdef TEST_REDIRECT_POPUP_URLS
|
#ifdef TEST_REDIRECT_POPUP_URLS
|
||||||
std::string urlStr = url;
|
std::string urlStr = url;
|
||||||
if(urlStr.find("resources/inspector/devtools.html") == std::string::npos) {
|
if(urlStr.find("chrome-devtools:") == std::string::npos) {
|
||||||
// Show all popup windows excluding DevTools in the current window.
|
// Show all popup windows excluding DevTools in the current window.
|
||||||
windowInfo.m_bHidden = true;
|
windowInfo.m_bHidden = true;
|
||||||
client = new ClientPopupHandler(m_Browser);
|
client = new ClientPopupHandler(m_Browser);
|
||||||
|
|
Loading…
Reference in New Issue