Update to Chromium revision 231322.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1494 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
74fea9e2b9
commit
0c45f66d37
|
@ -17,5 +17,5 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
||||||
'chromium_revision': '228917',
|
'chromium_revision': '231322',
|
||||||
}
|
}
|
||||||
|
|
20
cef.gyp
20
cef.gyp
|
@ -137,15 +137,6 @@
|
||||||
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
|
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'postbuild_name': 'Copy WebCore Resources',
|
|
||||||
'action': [
|
|
||||||
'cp',
|
|
||||||
'-Rf',
|
|
||||||
'${BUILT_PRODUCTS_DIR}/../../third_party/WebKit/public/resources/',
|
|
||||||
'${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/Chromium Embedded Framework.framework/Resources/'
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'postbuild_name': 'Copy locale Resources',
|
'postbuild_name': 'Copy locale Resources',
|
||||||
'action': [
|
'action': [
|
||||||
|
@ -364,15 +355,6 @@
|
||||||
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
|
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'postbuild_name': 'Copy WebCore Resources',
|
|
||||||
'action': [
|
|
||||||
'cp',
|
|
||||||
'-Rf',
|
|
||||||
'${BUILT_PRODUCTS_DIR}/../../third_party/WebKit/public/resources/',
|
|
||||||
'${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/Chromium Embedded Framework.framework/Resources/'
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'postbuild_name': 'Copy locale Resources',
|
'postbuild_name': 'Copy locale Resources',
|
||||||
'action': [
|
'action': [
|
||||||
|
@ -1027,6 +1009,8 @@
|
||||||
'<(DEPTH)/chrome/browser/printing/print_job_worker_owner.h',
|
'<(DEPTH)/chrome/browser/printing/print_job_worker_owner.h',
|
||||||
'<(DEPTH)/chrome/browser/printing/printer_query.cc',
|
'<(DEPTH)/chrome/browser/printing/printer_query.cc',
|
||||||
'<(DEPTH)/chrome/browser/printing/printer_query.h',
|
'<(DEPTH)/chrome/browser/printing/printer_query.h',
|
||||||
|
'<(DEPTH)/chrome/browser/printing/printing_ui_web_contents_observer.cc',
|
||||||
|
'<(DEPTH)/chrome/browser/printing/printing_ui_web_contents_observer.h',
|
||||||
'<(DEPTH)/chrome/common/prerender_messages.h',
|
'<(DEPTH)/chrome/common/prerender_messages.h',
|
||||||
'<(DEPTH)/chrome/common/print_messages.cc',
|
'<(DEPTH)/chrome/common/print_messages.cc',
|
||||||
'<(DEPTH)/chrome/common/print_messages.h',
|
'<(DEPTH)/chrome/common/print_messages.h',
|
||||||
|
|
|
@ -201,7 +201,14 @@ CEF_EXPORT void cef_trace_event_async_begin(const char* category,
|
||||||
const char* arg2_name,
|
const char* arg2_name,
|
||||||
uint64 arg2_val,
|
uint64 arg2_val,
|
||||||
int copy);
|
int copy);
|
||||||
CEF_EXPORT void cef_trace_event_async_step(const char* category,
|
CEF_EXPORT void cef_trace_event_async_step_into(const char* category,
|
||||||
|
const char* name,
|
||||||
|
uint64 id,
|
||||||
|
uint64 step,
|
||||||
|
const char* arg1_name,
|
||||||
|
uint64 arg1_val,
|
||||||
|
int copy);
|
||||||
|
CEF_EXPORT void cef_trace_event_async_step_past(const char* category,
|
||||||
const char* name,
|
const char* name,
|
||||||
uint64 id,
|
uint64 id,
|
||||||
uint64 step,
|
uint64 step,
|
||||||
|
@ -409,23 +416,43 @@ CEF_EXPORT void cef_trace_event_async_end(const char* category,
|
||||||
cef_trace_event_async_begin(category, name, id, arg1_name, arg1_val, \
|
cef_trace_event_async_begin(category, name, id, arg1_name, arg1_val, \
|
||||||
arg2_name, arg2_val, true)
|
arg2_name, arg2_val, true)
|
||||||
|
|
||||||
// Records a single ASYNC_STEP event for |step| immediately. If the category
|
// Records a single ASYNC_STEP_INTO event for |step| immediately. If the
|
||||||
// is not enabled, then this does nothing. The |name| and |id| must match the
|
// category is not enabled, then this does nothing. The |name| and |id| must
|
||||||
// ASYNC_BEGIN event above. The |step| param identifies this step within the
|
// match the ASYNC_BEGIN event above. The |step| param identifies this step
|
||||||
// async event. This should be called at the beginning of the next phase of an
|
// within the async event. This should be called at the beginning of the next
|
||||||
// asynchronous operation.
|
// phase of an asynchronous operation. The ASYNC_BEGIN event must not have any
|
||||||
#define CEF_TRACE_EVENT_ASYNC_STEP0(category, name, id, step) \
|
// ASYNC_STEP_PAST events.
|
||||||
cef_trace_event_async_step(category, name, id, step, NULL, 0, false)
|
#define CEF_TRACE_EVENT_ASYNC_STEP_INTO0(category, name, id, step) \
|
||||||
#define CEF_TRACE_EVENT_ASYNC_STEP1(category, name, id, step, \
|
cef_trace_event_async_step_into(category, name, id, step, NULL, 0, false)
|
||||||
|
#define CEF_TRACE_EVENT_ASYNC_STEP_INTO1(category, name, id, step, \
|
||||||
arg1_name, arg1_val) \
|
arg1_name, arg1_val) \
|
||||||
cef_trace_event_async_step(category, name, id, step, arg1_name, arg1_val, \
|
cef_trace_event_async_step_into(category, name, id, step, arg1_name, \
|
||||||
false)
|
arg1_val, false)
|
||||||
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP0(category, name, id, step) \
|
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0(category, name, id, step) \
|
||||||
cef_trace_event_async_step(category, name, id, step, NULL, 0, true)
|
cef_trace_event_async_step_into(category, name, id, step, NULL, 0, true)
|
||||||
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP1(category, name, id, step, \
|
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1(category, name, id, step, \
|
||||||
arg1_name, arg1_val) \
|
arg1_name, arg1_val) \
|
||||||
cef_trace_event_async_step(category, name, id, step, arg1_name, arg1_val, \
|
cef_trace_event_async_step_into(category, name, id, step, arg1_name, \
|
||||||
true)
|
arg1_val, true)
|
||||||
|
|
||||||
|
// Records a single ASYNC_STEP_PAST event for |step| immediately. If the
|
||||||
|
// category is not enabled, then this does nothing. The |name| and |id| must
|
||||||
|
// match the ASYNC_BEGIN event above. The |step| param identifies this step
|
||||||
|
// within the async event. This should be called at the beginning of the next
|
||||||
|
// phase of an asynchronous operation. The ASYNC_BEGIN event must not have any
|
||||||
|
// ASYNC_STEP_INTO events.
|
||||||
|
#define CEF_TRACE_EVENT_ASYNC_STEP_PAST0(category, name, id, step) \
|
||||||
|
cef_trace_event_async_step_past(category, name, id, step, NULL, 0, false)
|
||||||
|
#define CEF_TRACE_EVENT_ASYNC_STEP_PAST1(category, name, id, step, \
|
||||||
|
arg1_name, arg1_val) \
|
||||||
|
cef_trace_event_async_step_past(category, name, id, step, arg1_name, \
|
||||||
|
arg1_val, false)
|
||||||
|
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0(category, name, id, step) \
|
||||||
|
cef_trace_event_async_step_past(category, name, id, step, NULL, 0, true)
|
||||||
|
#define CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1(category, name, id, step, \
|
||||||
|
arg1_name, arg1_val) \
|
||||||
|
cef_trace_event_async_step_past(category, name, id, step, arg1_name, \
|
||||||
|
arg1_val, true)
|
||||||
|
|
||||||
// Records a single ASYNC_END event for "name" immediately. If the category
|
// Records a single ASYNC_END event for "name" immediately. If the category
|
||||||
// is not enabled, then this does nothing.
|
// is not enabled, then this does nothing.
|
||||||
|
|
|
@ -1896,6 +1896,7 @@ void CefBrowserHostImpl::RenderProcessGone(base::TerminationStatus status) {
|
||||||
|
|
||||||
void CefBrowserHostImpl::DidCommitProvisionalLoadForFrame(
|
void CefBrowserHostImpl::DidCommitProvisionalLoadForFrame(
|
||||||
int64 frame_id,
|
int64 frame_id,
|
||||||
|
const string16& frame_unique_name,
|
||||||
bool is_main_frame,
|
bool is_main_frame,
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
content::PageTransition transition_type,
|
content::PageTransition transition_type,
|
||||||
|
@ -1909,6 +1910,7 @@ void CefBrowserHostImpl::DidCommitProvisionalLoadForFrame(
|
||||||
|
|
||||||
void CefBrowserHostImpl::DidFailProvisionalLoad(
|
void CefBrowserHostImpl::DidFailProvisionalLoad(
|
||||||
int64 frame_id,
|
int64 frame_id,
|
||||||
|
const string16& frame_unique_name,
|
||||||
bool is_main_frame,
|
bool is_main_frame,
|
||||||
const GURL& validated_url,
|
const GURL& validated_url,
|
||||||
int error_code,
|
int error_code,
|
||||||
|
|
|
@ -345,12 +345,14 @@ class CefBrowserHostImpl : public CefBrowserHost,
|
||||||
virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
|
virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
|
||||||
virtual void DidCommitProvisionalLoadForFrame(
|
virtual void DidCommitProvisionalLoadForFrame(
|
||||||
int64 frame_id,
|
int64 frame_id,
|
||||||
|
const string16& frame_unique_name,
|
||||||
bool is_main_frame,
|
bool is_main_frame,
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
content::PageTransition transition_type,
|
content::PageTransition transition_type,
|
||||||
content::RenderViewHost* render_view_host) OVERRIDE;
|
content::RenderViewHost* render_view_host) OVERRIDE;
|
||||||
virtual void DidFailProvisionalLoad(
|
virtual void DidFailProvisionalLoad(
|
||||||
int64 frame_id,
|
int64 frame_id,
|
||||||
|
const string16& frame_unique_name,
|
||||||
bool is_main_frame,
|
bool is_main_frame,
|
||||||
const GURL& validated_url,
|
const GURL& validated_url,
|
||||||
int error_code,
|
int error_code,
|
||||||
|
|
|
@ -18,11 +18,14 @@
|
||||||
#include "base/message_loop/message_loop.h"
|
#include "base/message_loop/message_loop.h"
|
||||||
#include "base/strings/string_util.h"
|
#include "base/strings/string_util.h"
|
||||||
#include "content/public/common/url_fetcher.h"
|
#include "content/public/common/url_fetcher.h"
|
||||||
|
#include "net/base/io_buffer.h"
|
||||||
#include "net/base/load_flags.h"
|
#include "net/base/load_flags.h"
|
||||||
|
#include "net/base/net_errors.h"
|
||||||
#include "net/http/http_request_headers.h"
|
#include "net/http/http_request_headers.h"
|
||||||
#include "net/http/http_response_headers.h"
|
#include "net/http/http_response_headers.h"
|
||||||
#include "net/url_request/url_fetcher.h"
|
#include "net/url_request/url_fetcher.h"
|
||||||
#include "net/url_request/url_fetcher_delegate.h"
|
#include "net/url_request/url_fetcher_delegate.h"
|
||||||
|
#include "net/url_request/url_fetcher_response_writer.h"
|
||||||
#include "net/url_request/url_request_status.h"
|
#include "net/url_request/url_request_status.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,10 +41,6 @@ class CefURLFetcherDelegate : public net::URLFetcherDelegate {
|
||||||
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
|
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
|
||||||
virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source,
|
virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source,
|
||||||
int64 current, int64 total) OVERRIDE;
|
int64 current, int64 total) OVERRIDE;
|
||||||
virtual void OnURLFetchDownloadData(const net::URLFetcher* source,
|
|
||||||
scoped_ptr<std::string> download_data)
|
|
||||||
OVERRIDE;
|
|
||||||
virtual bool ShouldSendDownloadData() OVERRIDE;
|
|
||||||
virtual void OnURLFetchUploadProgress(const net::URLFetcher* source,
|
virtual void OnURLFetchUploadProgress(const net::URLFetcher* source,
|
||||||
int64 current, int64 total) OVERRIDE;
|
int64 current, int64 total) OVERRIDE;
|
||||||
|
|
||||||
|
@ -51,6 +50,70 @@ class CefURLFetcherDelegate : public net::URLFetcherDelegate {
|
||||||
int request_flags_;
|
int request_flags_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class NET_EXPORT CefURLFetcherResponseWriter :
|
||||||
|
public net::URLFetcherResponseWriter {
|
||||||
|
public:
|
||||||
|
CefURLFetcherResponseWriter(
|
||||||
|
CefRefPtr<CefBrowserURLRequest> url_request,
|
||||||
|
scoped_refptr<base::MessageLoopProxy> message_loop_proxy)
|
||||||
|
: url_request_(url_request),
|
||||||
|
message_loop_proxy_(message_loop_proxy) {
|
||||||
|
}
|
||||||
|
virtual ~CefURLFetcherResponseWriter() {
|
||||||
|
}
|
||||||
|
|
||||||
|
// net::URLFetcherResponseWriter methods.
|
||||||
|
virtual int Initialize(const net::CompletionCallback& callback) OVERRIDE {
|
||||||
|
return net::OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual int Write(net::IOBuffer* buffer,
|
||||||
|
int num_bytes,
|
||||||
|
const net::CompletionCallback& callback) OVERRIDE {
|
||||||
|
if (url_request_) {
|
||||||
|
message_loop_proxy_->PostTask(FROM_HERE,
|
||||||
|
base::Bind(&CefURLFetcherResponseWriter::WriteOnClientThread,
|
||||||
|
url_request_, buffer, num_bytes, callback,
|
||||||
|
base::MessageLoop::current()->message_loop_proxy()));
|
||||||
|
return net::ERR_IO_PENDING;
|
||||||
|
}
|
||||||
|
return num_bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual int Finish(const net::CompletionCallback& callback) OVERRIDE {
|
||||||
|
if (url_request_)
|
||||||
|
url_request_ = NULL;
|
||||||
|
return net::OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
static void WriteOnClientThread(
|
||||||
|
CefRefPtr<CefBrowserURLRequest> url_request,
|
||||||
|
net::IOBuffer* buffer,
|
||||||
|
int num_bytes,
|
||||||
|
const net::CompletionCallback& callback,
|
||||||
|
scoped_refptr<base::MessageLoopProxy> source_message_loop_proxy) {
|
||||||
|
CefRefPtr<CefURLRequestClient> client = url_request->GetClient();
|
||||||
|
if (client)
|
||||||
|
client->OnDownloadData(url_request.get(), buffer->data(), num_bytes);
|
||||||
|
|
||||||
|
source_message_loop_proxy->PostTask(FROM_HERE,
|
||||||
|
base::Bind(&CefURLFetcherResponseWriter::ContinueOnSourceThread,
|
||||||
|
num_bytes, callback));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ContinueOnSourceThread(
|
||||||
|
int num_bytes,
|
||||||
|
const net::CompletionCallback& callback) {
|
||||||
|
callback.Run(num_bytes);
|
||||||
|
}
|
||||||
|
|
||||||
|
CefRefPtr<CefBrowserURLRequest> url_request_;
|
||||||
|
scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
|
||||||
|
|
||||||
|
DISALLOW_COPY_AND_ASSIGN(CefURLFetcherResponseWriter);
|
||||||
|
};
|
||||||
|
|
||||||
base::SupportsUserData::Data* CreateURLRequestUserData(
|
base::SupportsUserData::Data* CreateURLRequestUserData(
|
||||||
CefRefPtr<CefURLRequestClient> client) {
|
CefRefPtr<CefURLRequestClient> client) {
|
||||||
return new CefURLRequestUserData(client);
|
return new CefURLRequestUserData(client);
|
||||||
|
@ -219,6 +282,15 @@ class CefBrowserURLRequest::Context
|
||||||
CefURLRequestUserData::kUserDataKey,
|
CefURLRequestUserData::kUserDataKey,
|
||||||
base::Bind(&CreateURLRequestUserData, client_));
|
base::Bind(&CreateURLRequestUserData, client_));
|
||||||
|
|
||||||
|
scoped_ptr<net::URLFetcherResponseWriter> response_writer;
|
||||||
|
if (cef_flags & UR_FLAG_NO_DOWNLOAD_DATA) {
|
||||||
|
response_writer.reset(new CefURLFetcherResponseWriter(NULL, NULL));
|
||||||
|
} else {
|
||||||
|
response_writer.reset(
|
||||||
|
new CefURLFetcherResponseWriter(url_request_, message_loop_proxy_));
|
||||||
|
}
|
||||||
|
fetcher_->SaveResponseWithWriter(response_writer.Pass());
|
||||||
|
|
||||||
fetcher_->Start();
|
fetcher_->Start();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -384,16 +456,6 @@ void CefURLFetcherDelegate::OnURLFetchDownloadProgress(
|
||||||
context_->OnDownloadProgress(current, total);
|
context_->OnDownloadProgress(current, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CefURLFetcherDelegate::OnURLFetchDownloadData(
|
|
||||||
const net::URLFetcher* source,
|
|
||||||
scoped_ptr<std::string> download_data) {
|
|
||||||
context_->OnDownloadData(download_data.Pass());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CefURLFetcherDelegate::ShouldSendDownloadData() {
|
|
||||||
return !(request_flags_ & UR_FLAG_NO_DOWNLOAD_DATA);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CefURLFetcherDelegate::OnURLFetchUploadProgress(
|
void CefURLFetcherDelegate::OnURLFetchUploadProgress(
|
||||||
const net::URLFetcher* source,
|
const net::URLFetcher* source,
|
||||||
int64 current, int64 total) {
|
int64 current, int64 total) {
|
||||||
|
|
|
@ -139,7 +139,8 @@ std::string CefDevToolsDelegate::GetPageThumbnailData(const GURL& url) {
|
||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
scoped_ptr<content::DevToolsTarget> CefDevToolsDelegate::CreateNewTarget() {
|
scoped_ptr<content::DevToolsTarget> CefDevToolsDelegate::CreateNewTarget(
|
||||||
|
const GURL& url) {
|
||||||
return scoped_ptr<content::DevToolsTarget>();
|
return scoped_ptr<content::DevToolsTarget>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,8 @@ class CefDevToolsDelegate : public content::DevToolsHttpHandlerDelegate {
|
||||||
virtual bool BundlesFrontendResources() OVERRIDE;
|
virtual bool BundlesFrontendResources() OVERRIDE;
|
||||||
virtual base::FilePath GetDebugFrontendDir() OVERRIDE;
|
virtual base::FilePath GetDebugFrontendDir() OVERRIDE;
|
||||||
virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE;
|
virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE;
|
||||||
virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget() OVERRIDE;
|
virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget(const GURL& url)
|
||||||
|
OVERRIDE;
|
||||||
virtual scoped_ptr<content::DevToolsTarget> CreateTargetForId(
|
virtual scoped_ptr<content::DevToolsTarget> CreateTargetForId(
|
||||||
const std::string& id) OVERRIDE;
|
const std::string& id) OVERRIDE;
|
||||||
virtual void EnumerateTargets(TargetCallback callback) OVERRIDE;
|
virtual void EnumerateTargets(TargetCallback callback) OVERRIDE;
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
#include "base/bind.h"
|
#include "base/bind.h"
|
||||||
#include "chrome/browser/browser_process.h"
|
#include "chrome/browser/browser_process.h"
|
||||||
#include "chrome/browser/printing/printer_query.h"
|
#include "chrome/browser/printing/printer_query.h"
|
||||||
|
#include "chrome/browser/printing/printing_ui_web_contents_observer.h"
|
||||||
#include "chrome/browser/printing/print_job_manager.h"
|
#include "chrome/browser/printing/print_job_manager.h"
|
||||||
#include "chrome/common/print_messages.h"
|
#include "chrome/common/print_messages.h"
|
||||||
#include "content/public/browser/browser_thread.h"
|
#include "content/public/browser/browser_thread.h"
|
||||||
#include "content/public/browser/render_view_host.h"
|
#include "content/public/browser/render_view_host.h"
|
||||||
#include "content/public/browser/web_contents.h"
|
#include "content/public/browser/web_contents.h"
|
||||||
#include "content/public/browser/web_contents_view.h"
|
|
||||||
|
|
||||||
#if defined(OS_CHROMEOS)
|
#if defined(OS_CHROMEOS)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -75,7 +75,6 @@ void RenderParamsFromPrintSettings(const printing::PrintSettings& settings,
|
||||||
params->supports_alpha_blend = settings.supports_alpha_blend();
|
params->supports_alpha_blend = settings.supports_alpha_blend();
|
||||||
params->should_print_backgrounds = settings.should_print_backgrounds;
|
params->should_print_backgrounds = settings.should_print_backgrounds;
|
||||||
params->display_header_footer = settings.display_header_footer;
|
params->display_header_footer = settings.display_header_footer;
|
||||||
params->date = settings.date;
|
|
||||||
params->title = settings.title;
|
params->title = settings.title;
|
||||||
params->url = settings.url;
|
params->url = settings.url;
|
||||||
}
|
}
|
||||||
|
@ -261,10 +260,12 @@ void PrintingMessageFilter::GetPrintSettingsForRenderView(
|
||||||
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
||||||
content::WebContents* wc = GetWebContentsForRenderView(render_view_id);
|
content::WebContents* wc = GetWebContentsForRenderView(render_view_id);
|
||||||
if (wc) {
|
if (wc) {
|
||||||
|
scoped_ptr<PrintingUIWebContentsObserver> wc_observer(
|
||||||
|
new PrintingUIWebContentsObserver(wc));
|
||||||
BrowserThread::PostTask(
|
BrowserThread::PostTask(
|
||||||
BrowserThread::IO, FROM_HERE,
|
BrowserThread::IO, FROM_HERE,
|
||||||
base::Bind(&printing::PrinterQuery::GetSettings, printer_query,
|
base::Bind(&printing::PrinterQuery::GetSettings, printer_query,
|
||||||
params.ask_user_for_settings, wc->GetView()->GetNativeView(),
|
params.ask_user_for_settings, base::Passed(&wc_observer),
|
||||||
params.expected_page_count, params.has_selection,
|
params.expected_page_count, params.has_selection,
|
||||||
params.margin_type, callback));
|
params.margin_type, callback));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Maximum number of characters we allow in a tooltip.
|
|
||||||
const size_t kMaxTooltipLength = 1024;
|
|
||||||
|
|
||||||
// TODO(suzhe): Upstream this function.
|
// TODO(suzhe): Upstream this function.
|
||||||
WebKit::WebColor WebColorFromNSColor(NSColor *color) {
|
WebKit::WebColor WebColorFromNSColor(NSColor *color) {
|
||||||
CGFloat r, g, b, a;
|
CGFloat r, g, b, a;
|
||||||
|
|
|
@ -266,7 +266,7 @@ CEF_EXPORT void cef_trace_event_async_begin(const char* category,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CEF_EXPORT void cef_trace_event_async_step(const char* category,
|
CEF_EXPORT void cef_trace_event_async_step_into(const char* category,
|
||||||
const char* name,
|
const char* name,
|
||||||
uint64 id,
|
uint64 id,
|
||||||
uint64 step,
|
uint64 step,
|
||||||
|
@ -280,16 +280,49 @@ CEF_EXPORT void cef_trace_event_async_step(const char* category,
|
||||||
|
|
||||||
if (copy) {
|
if (copy) {
|
||||||
if (arg1_name == NULL) {
|
if (arg1_name == NULL) {
|
||||||
TRACE_EVENT_COPY_ASYNC_STEP0(category, name, id, step);
|
INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_ASYNC_STEP_INTO,
|
||||||
|
category, name, id, TRACE_EVENT_FLAG_COPY, "step", step);
|
||||||
} else {
|
} else {
|
||||||
TRACE_EVENT_COPY_ASYNC_STEP1(category, name, id, step,
|
INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_ASYNC_STEP_INTO,
|
||||||
|
category, name, id, TRACE_EVENT_FLAG_COPY, "step", step,
|
||||||
arg1_name, arg1_val);
|
arg1_name, arg1_val);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (arg1_name == NULL) {
|
if (arg1_name == NULL) {
|
||||||
TRACE_EVENT_ASYNC_STEP0(category, name, id, step);
|
TRACE_EVENT_ASYNC_STEP_INTO0(category, name, id, step);
|
||||||
} else {
|
} else {
|
||||||
TRACE_EVENT_ASYNC_STEP1(category, name, id, step,
|
TRACE_EVENT_ASYNC_STEP_INTO1(category, name, id, step,
|
||||||
|
arg1_name, arg1_val);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CEF_EXPORT void cef_trace_event_async_step_past(const char* category,
|
||||||
|
const char* name,
|
||||||
|
uint64 id,
|
||||||
|
uint64 step,
|
||||||
|
const char* arg1_name,
|
||||||
|
uint64 arg1_val,
|
||||||
|
int copy) {
|
||||||
|
DCHECK(category);
|
||||||
|
DCHECK(name);
|
||||||
|
if (!category || !name)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (copy) {
|
||||||
|
if (arg1_name == NULL) {
|
||||||
|
INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_ASYNC_STEP_PAST,
|
||||||
|
category, name, id, TRACE_EVENT_FLAG_COPY, "step", step);
|
||||||
|
} else {
|
||||||
|
INTERNAL_TRACE_EVENT_ADD_WITH_ID(TRACE_EVENT_PHASE_ASYNC_STEP_PAST,
|
||||||
|
category, name, id, TRACE_EVENT_FLAG_COPY, "step", step,
|
||||||
|
arg1_name, arg1_val);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (arg1_name == NULL) {
|
||||||
|
TRACE_EVENT_ASYNC_STEP_PAST0(category, name, id, step);
|
||||||
|
} else {
|
||||||
|
TRACE_EVENT_ASYNC_STEP_PAST1(category, name, id, step,
|
||||||
arg1_name, arg1_val);
|
arg1_name, arg1_val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,6 @@ using WebKit::WebView;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
const int64 kInvalidBrowserId = -1;
|
|
||||||
const int64 kInvalidFrameId = -1;
|
const int64 kInvalidFrameId = -1;
|
||||||
|
|
||||||
WebKit::WebString FilePathStringToWebString(
|
WebKit::WebString FilePathStringToWebString(
|
||||||
|
@ -698,7 +697,7 @@ void CefBrowserImpl::OnRequest(const Cef_Request_Params& params) {
|
||||||
response = web_frame->contentAsMarkup().utf8();
|
response = web_frame->contentAsMarkup().utf8();
|
||||||
success = true;
|
success = true;
|
||||||
} else if (LowerCaseEqualsASCII(command, "gettext")) {
|
} else if (LowerCaseEqualsASCII(command, "gettext")) {
|
||||||
response = UTF16ToUTF8(webkit_glue::DumpDocumentText(web_frame));
|
response = webkit_glue::DumpDocumentText(web_frame);
|
||||||
success = true;
|
success = true;
|
||||||
} else if (web_frame->executeCommand(UTF8ToUTF16(command))) {
|
} else if (web_frame->executeCommand(UTF8ToUTF16(command))) {
|
||||||
success = true;
|
success = true;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "libcef/renderer/dom_document_impl.h"
|
#include "libcef/renderer/dom_document_impl.h"
|
||||||
#include "libcef/renderer/dom_event_impl.h"
|
#include "libcef/renderer/dom_event_impl.h"
|
||||||
#include "libcef/renderer/thread_util.h"
|
#include "libcef/renderer/thread_util.h"
|
||||||
|
#include "libcef/renderer/webkit_glue.h"
|
||||||
|
|
||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
#include "base/strings/string_util.h"
|
#include "base/strings/string_util.h"
|
||||||
|
@ -272,7 +273,7 @@ bool CefDOMNodeImpl::SetValue(const CefString& value) {
|
||||||
if (node_.isElementNode())
|
if (node_.isElementNode())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return node_.setNodeValue(string16(value));
|
return webkit_glue::SetNodeValue(node_, string16(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
CefString CefDOMNodeImpl::GetAsMarkup() {
|
CefString CefDOMNodeImpl::GetAsMarkup() {
|
||||||
|
|
|
@ -591,8 +591,8 @@ v8::Local<v8::Value> CallV8Function(v8::Handle<v8::Context> context,
|
||||||
RefPtr<WebCore::Frame> frame = WebCore::toFrameIfNotDetached(context);
|
RefPtr<WebCore::Frame> frame = WebCore::toFrameIfNotDetached(context);
|
||||||
DCHECK(frame);
|
DCHECK(frame);
|
||||||
if (frame &&
|
if (frame &&
|
||||||
frame->script()->canExecuteScripts(WebCore::AboutToExecuteScript)) {
|
frame->script().canExecuteScripts(WebCore::AboutToExecuteScript)) {
|
||||||
func_rv = frame->script()->callFunction(function, receiver, argc, args);
|
func_rv = frame->script().callFunction(function, receiver, argc, args);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WebCore::WorkerScriptController* controller =
|
WebCore::WorkerScriptController* controller =
|
||||||
|
@ -600,7 +600,7 @@ v8::Local<v8::Value> CallV8Function(v8::Handle<v8::Context> context,
|
||||||
DCHECK(controller);
|
DCHECK(controller);
|
||||||
if (controller) {
|
if (controller) {
|
||||||
func_rv = WebCore::ScriptController::callFunction(
|
func_rv = WebCore::ScriptController::callFunction(
|
||||||
controller->workerGlobalScope()->executionContext(),
|
controller->workerGlobalScope().executionContext(),
|
||||||
function, receiver, argc, args, isolate);
|
function, receiver, argc, args, isolate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,20 +7,31 @@
|
||||||
// Otherwise there will be compile errors in wtf/MathExtras.h.
|
// Otherwise there will be compile errors in wtf/MathExtras.h.
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
|
|
||||||
|
// Defines required to access Blink internals (unwrap WebNode).
|
||||||
|
#undef BLINK_IMPLEMENTATION
|
||||||
|
#define BLINK_IMPLEMENTATION 1
|
||||||
|
#undef INSIDE_BLINK
|
||||||
|
#define INSIDE_BLINK 1
|
||||||
|
|
||||||
#include "libcef/renderer/webkit_glue.h"
|
#include "libcef/renderer/webkit_glue.h"
|
||||||
|
|
||||||
#include "base/compiler_specific.h"
|
#include "base/compiler_specific.h"
|
||||||
#include "third_party/WebKit/public/web/WebDocument.h"
|
#include "v8/include/v8.h"
|
||||||
#include "third_party/WebKit/public/web/WebElement.h"
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
MSVC_PUSH_WARNING_LEVEL(0);
|
MSVC_PUSH_WARNING_LEVEL(0);
|
||||||
|
#include "third_party/WebKit/public/platform/WebString.h"
|
||||||
|
#include "third_party/WebKit/public/web/WebDocument.h"
|
||||||
|
#include "third_party/WebKit/public/web/WebElement.h"
|
||||||
|
#include "third_party/WebKit/public/web/WebNode.h"
|
||||||
|
#include "third_party/WebKit/public/web/WebViewClient.h"
|
||||||
|
|
||||||
#include "bindings/v8/V8Binding.h"
|
#include "bindings/v8/V8Binding.h"
|
||||||
#include "bindings/v8/ScriptController.h"
|
#include "bindings/v8/ScriptController.h"
|
||||||
#include "core/history/BackForwardController.h"
|
#include "third_party/WebKit/Source/core/dom/Node.h"
|
||||||
#include "core/page/Page.h"
|
|
||||||
#include "third_party/WebKit/Source/web/WebFrameImpl.h"
|
#include "third_party/WebKit/Source/web/WebFrameImpl.h"
|
||||||
#include "third_party/WebKit/Source/web/WebViewImpl.h"
|
#include "third_party/WebKit/Source/web/WebViewImpl.h"
|
||||||
|
#include "third_party/WebKit/Source/wtf/PassRefPtr.h"
|
||||||
MSVC_POP_WARNING();
|
MSVC_POP_WARNING();
|
||||||
#undef LOG
|
#undef LOG
|
||||||
|
|
||||||
|
@ -30,32 +41,30 @@ bool CanGoBack(WebKit::WebView* view) {
|
||||||
if (!view)
|
if (!view)
|
||||||
return false;
|
return false;
|
||||||
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
||||||
return (impl->page()->backForward().backCount() > 0);
|
return (impl->client()->historyBackListCount() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanGoForward(WebKit::WebView* view) {
|
bool CanGoForward(WebKit::WebView* view) {
|
||||||
if (!view)
|
if (!view)
|
||||||
return false;
|
return false;
|
||||||
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
||||||
return (impl->page()->backForward().forwardCount() > 0);
|
return (impl->client()->historyForwardListCount() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GoBack(WebKit::WebView* view) {
|
void GoBack(WebKit::WebView* view) {
|
||||||
if (!view)
|
if (!view)
|
||||||
return;
|
return;
|
||||||
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
||||||
WebCore::BackForwardController& controller = impl->page()->backForward();
|
if (impl->client()->historyBackListCount() > 0)
|
||||||
if (controller.backCount() > 0)
|
impl->client()->navigateBackForwardSoon(-1);
|
||||||
controller.goBack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GoForward(WebKit::WebView* view) {
|
void GoForward(WebKit::WebView* view) {
|
||||||
if (!view)
|
if (!view)
|
||||||
return;
|
return;
|
||||||
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
WebKit::WebViewImpl* impl = reinterpret_cast<WebKit::WebViewImpl*>(view);
|
||||||
WebCore::BackForwardController& controller = impl->page()->backForward();
|
if (impl->client()->historyForwardListCount() > 0)
|
||||||
if (controller.forwardCount() > 0)
|
impl->client()->navigateBackForwardSoon(1);
|
||||||
controller.goForward();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
v8::Isolate* GetV8Isolate(WebKit::WebFrame* frame) {
|
v8::Isolate* GetV8Isolate(WebKit::WebFrame* frame) {
|
||||||
|
@ -68,14 +77,20 @@ v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame) {
|
||||||
return WebCore::ScriptController::mainWorldContext(impl->frame());
|
return WebCore::ScriptController::mainWorldContext(impl->frame());
|
||||||
}
|
}
|
||||||
|
|
||||||
base::string16 DumpDocumentText(WebKit::WebFrame* frame) {
|
std::string DumpDocumentText(WebKit::WebFrame* frame) {
|
||||||
// We use the document element's text instead of the body text here because
|
// We use the document element's text instead of the body text here because
|
||||||
// not all documents have a body, such as XML documents.
|
// not all documents have a body, such as XML documents.
|
||||||
WebKit::WebElement document_element = frame->document().documentElement();
|
WebKit::WebElement document_element = frame->document().documentElement();
|
||||||
if (document_element.isNull())
|
if (document_element.isNull())
|
||||||
return base::string16();
|
return std::string();
|
||||||
|
|
||||||
return document_element.innerText();
|
return document_element.innerText().utf8();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SetNodeValue(WebKit::WebNode& node, const WebKit::WebString& value) {
|
||||||
|
WebCore::Node* web_node = node.unwrap<WebCore::Node>();
|
||||||
|
web_node->setNodeValue(value);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // webkit_glue
|
} // webkit_glue
|
||||||
|
|
|
@ -7,11 +7,17 @@
|
||||||
#define CEF_LIBCEF_RENDERER_WEBKIT_GLUE_H_
|
#define CEF_LIBCEF_RENDERER_WEBKIT_GLUE_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "base/strings/string16.h"
|
|
||||||
#include "v8/include/v8.h"
|
namespace v8 {
|
||||||
|
class Context;
|
||||||
|
template <class T> class Handle;
|
||||||
|
class Isolate;
|
||||||
|
}
|
||||||
|
|
||||||
namespace WebKit {
|
namespace WebKit {
|
||||||
class WebFrame;
|
class WebFrame;
|
||||||
|
class WebNode;
|
||||||
|
class WebString;
|
||||||
class WebView;
|
class WebView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +35,9 @@ v8::Isolate* GetV8Isolate(WebKit::WebFrame* frame);
|
||||||
v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame);
|
v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame);
|
||||||
|
|
||||||
// Returns the text of the document element.
|
// Returns the text of the document element.
|
||||||
base::string16 DumpDocumentText(WebKit::WebFrame* frame);
|
std::string DumpDocumentText(WebKit::WebFrame* frame);
|
||||||
|
|
||||||
|
bool SetNodeValue(WebKit::WebNode& node, const WebKit::WebString& value);
|
||||||
|
|
||||||
} // webkit_glue
|
} // webkit_glue
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,33 @@
|
||||||
Index: browser/devtools/devtools_http_handler_impl.cc
|
Index: browser/devtools/devtools_http_handler_impl.cc
|
||||||
===================================================================
|
===================================================================
|
||||||
--- browser/devtools/devtools_http_handler_impl.cc (revision 228917)
|
--- browser/devtools/devtools_http_handler_impl.cc (revision 231322)
|
||||||
+++ browser/devtools/devtools_http_handler_impl.cc (working copy)
|
+++ browser/devtools/devtools_http_handler_impl.cc (working copy)
|
||||||
@@ -542,9 +542,17 @@
|
@@ -550,9 +550,16 @@
|
||||||
|
|
||||||
DevToolsTarget* DevToolsHttpHandlerImpl::GetTarget(const std::string& id) {
|
DevToolsTarget* DevToolsHttpHandlerImpl::GetTarget(const std::string& id) {
|
||||||
TargetMap::const_iterator it = target_map_.find(id);
|
TargetMap::const_iterator it = target_map_.find(id);
|
||||||
- if (it == target_map_.end())
|
- if (it == target_map_.end())
|
||||||
- return NULL;
|
|
||||||
- return it->second;
|
|
||||||
+ if (it != target_map_.end())
|
+ if (it != target_map_.end())
|
||||||
+ return it->second;
|
+ return it->second;
|
||||||
+
|
+
|
||||||
+ scoped_ptr<DevToolsTarget> target(delegate_->CreateTargetForId(id));
|
+ scoped_ptr<DevToolsTarget> target(delegate_->CreateTargetForId(id));
|
||||||
+ if (target) {
|
+ if (!target)
|
||||||
|
return NULL;
|
||||||
|
- return it->second;
|
||||||
|
+
|
||||||
+ DCHECK_EQ(id, target->GetId());
|
+ DCHECK_EQ(id, target->GetId());
|
||||||
+ target_map_[id] = target.release();
|
+ target_map_[id] = target.release();
|
||||||
+ return target_map_[id];
|
+ return target_map_[id];
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DevToolsHttpHandlerImpl::OnThumbnailRequestUI(
|
void DevToolsHttpHandlerImpl::OnThumbnailRequestUI(
|
||||||
Index: public/browser/devtools_http_handler_delegate.h
|
Index: public/browser/devtools_http_handler_delegate.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- public/browser/devtools_http_handler_delegate.h (revision 228917)
|
--- public/browser/devtools_http_handler_delegate.h (revision 231322)
|
||||||
+++ public/browser/devtools_http_handler_delegate.h (working copy)
|
+++ public/browser/devtools_http_handler_delegate.h (working copy)
|
||||||
@@ -39,6 +39,13 @@
|
@@ -39,6 +39,13 @@
|
||||||
// Creates new inspectable target.
|
// Creates new inspectable target.
|
||||||
virtual scoped_ptr<DevToolsTarget> CreateNewTarget() = 0;
|
virtual scoped_ptr<DevToolsTarget> CreateNewTarget(const GURL& url) = 0;
|
||||||
|
|
||||||
+ // Creates an inspectable target for the specified |id|. Called in cases where
|
+ // Creates an inspectable target for the specified |id|. Called in cases where
|
||||||
+ // the target has not been enumerated (for example, direct URL access where
|
+ // the target has not been enumerated (for example, direct URL access where
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Index: gyp/generator/ninja.py
|
Index: gyp/generator/ninja.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gyp/generator/ninja.py (revision 1735)
|
--- gyp/generator/ninja.py (revision 1769)
|
||||||
+++ gyp/generator/ninja.py (working copy)
|
+++ gyp/generator/ninja.py (working copy)
|
||||||
@@ -722,7 +722,16 @@
|
@@ -723,7 +723,16 @@
|
||||||
for path in copy['files']:
|
for path in copy['files']:
|
||||||
# Normalize the path so trailing slashes don't confuse us.
|
# Normalize the path so trailing slashes don't confuse us.
|
||||||
path = os.path.normpath(path)
|
path = os.path.normpath(path)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Index: frame/FrameView.cpp
|
Index: frame/FrameView.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- frame/FrameView.cpp (revision 159695)
|
--- frame/FrameView.cpp (revision 160715)
|
||||||
+++ frame/FrameView.cpp (working copy)
|
+++ frame/FrameView.cpp (working copy)
|
||||||
@@ -198,8 +198,10 @@
|
@@ -200,8 +200,10 @@
|
||||||
if (!isMainFrame())
|
if (!isMainFrame())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -15,23 +15,20 @@ Index: frame/FrameView.cpp
|
||||||
PassRefPtr<FrameView> FrameView::create(Frame* frame)
|
PassRefPtr<FrameView> FrameView::create(Frame* frame)
|
||||||
Index: platform/mac/NSScrollerImpDetails.mm
|
Index: platform/mac/NSScrollerImpDetails.mm
|
||||||
===================================================================
|
===================================================================
|
||||||
--- platform/mac/NSScrollerImpDetails.mm (revision 159695)
|
--- platform/mac/NSScrollerImpDetails.mm (revision 160715)
|
||||||
+++ platform/mac/NSScrollerImpDetails.mm (working copy)
|
+++ platform/mac/NSScrollerImpDetails.mm (working copy)
|
||||||
@@ -33,6 +33,7 @@
|
@@ -73,10 +73,14 @@
|
||||||
|
|
||||||
bool isScrollbarOverlayAPIAvailable()
|
bool isScrollbarOverlayAPIAvailable()
|
||||||
{
|
{
|
||||||
+#if 0
|
+#if 0
|
||||||
static bool apiAvailable;
|
static bool apiAvailable =
|
||||||
static bool shouldInitialize = true;
|
[NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scrollerImpWithStyle:controlSize:horizontal:replacingScrollerImp:)]
|
||||||
if (shouldInitialize) {
|
&& [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@selector(scrollerStyle)];
|
||||||
@@ -43,6 +44,9 @@
|
|
||||||
&& [scrollerImpPairClass instancesRespondToSelector:@selector(scrollerStyle)];
|
|
||||||
}
|
|
||||||
return apiAvailable;
|
return apiAvailable;
|
||||||
+#else
|
+#else
|
||||||
+ return false;
|
+ return false;
|
||||||
+#endif
|
+#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
NSScrollerStyle recommendedScrollerStyle() {
|
NSScrollerStyle recommendedScrollerStyle()
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Index: WebNode.cpp
|
Index: WebNode.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- WebNode.cpp (revision 158192)
|
--- WebNode.cpp (revision 160715)
|
||||||
+++ WebNode.cpp (working copy)
|
+++ WebNode.cpp (working copy)
|
||||||
@@ -175,7 +175,7 @@
|
@@ -169,7 +169,7 @@
|
||||||
void WebNode::addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture)
|
void WebNode::addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture)
|
||||||
{
|
{
|
||||||
// Please do not add more eventTypes to this list without an API review.
|
// Please do not add more eventTypes to this list without an API review.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Index: public/web/WebView.h
|
Index: public/web/WebView.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- public/web/WebView.h (revision 159695)
|
--- public/web/WebView.h (revision 160715)
|
||||||
+++ public/web/WebView.h (working copy)
|
+++ public/web/WebView.h (working copy)
|
||||||
@@ -447,6 +447,7 @@
|
@@ -441,6 +441,7 @@
|
||||||
|
|
||||||
// Sets whether select popup menus should be rendered by the browser.
|
// Sets whether select popup menus should be rendered by the browser.
|
||||||
BLINK_EXPORT static void setUseExternalPopupMenus(bool);
|
BLINK_EXPORT static void setUseExternalPopupMenus(bool);
|
||||||
|
@ -12,9 +12,9 @@ Index: public/web/WebView.h
|
||||||
// Visited link state --------------------------------------------------
|
// Visited link state --------------------------------------------------
|
||||||
Index: Source/web/ChromeClientImpl.cpp
|
Index: Source/web/ChromeClientImpl.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Source/web/ChromeClientImpl.cpp (revision 159695)
|
--- Source/web/ChromeClientImpl.cpp (revision 160715)
|
||||||
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
||||||
@@ -875,7 +875,7 @@
|
@@ -871,7 +871,7 @@
|
||||||
|
|
||||||
PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuClient* client) const
|
PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuClient* client) const
|
||||||
{
|
{
|
||||||
|
@ -25,9 +25,9 @@ Index: Source/web/ChromeClientImpl.cpp
|
||||||
return adoptRef(new PopupMenuChromium(frame, client));
|
return adoptRef(new PopupMenuChromium(frame, client));
|
||||||
Index: Source/web/WebViewImpl.cpp
|
Index: Source/web/WebViewImpl.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Source/web/WebViewImpl.cpp (revision 159695)
|
--- Source/web/WebViewImpl.cpp (revision 160715)
|
||||||
+++ Source/web/WebViewImpl.cpp (working copy)
|
+++ Source/web/WebViewImpl.cpp (working copy)
|
||||||
@@ -411,6 +411,7 @@
|
@@ -402,6 +402,7 @@
|
||||||
, m_fakePageScaleAnimationPageScaleFactor(0)
|
, m_fakePageScaleAnimationPageScaleFactor(0)
|
||||||
, m_fakePageScaleAnimationUseAnchor(false)
|
, m_fakePageScaleAnimationUseAnchor(false)
|
||||||
, m_contextMenuAllowed(false)
|
, m_contextMenuAllowed(false)
|
||||||
|
@ -35,7 +35,7 @@ Index: Source/web/WebViewImpl.cpp
|
||||||
, m_doingDragAndDrop(false)
|
, m_doingDragAndDrop(false)
|
||||||
, m_ignoreInputEvents(false)
|
, m_ignoreInputEvents(false)
|
||||||
, m_compositorDeviceScaleFactorOverride(0)
|
, m_compositorDeviceScaleFactorOverride(0)
|
||||||
@@ -3751,9 +3752,14 @@
|
@@ -3643,9 +3644,14 @@
|
||||||
updateLayerTreeViewport();
|
updateLayerTreeViewport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,9 +53,9 @@ Index: Source/web/WebViewImpl.cpp
|
||||||
void WebViewImpl::startDragging(Frame* frame,
|
void WebViewImpl::startDragging(Frame* frame,
|
||||||
Index: Source/web/WebViewImpl.h
|
Index: Source/web/WebViewImpl.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Source/web/WebViewImpl.h (revision 159695)
|
--- Source/web/WebViewImpl.h (revision 160715)
|
||||||
+++ Source/web/WebViewImpl.h (working copy)
|
+++ Source/web/WebViewImpl.h (working copy)
|
||||||
@@ -424,7 +424,8 @@
|
@@ -409,7 +409,8 @@
|
||||||
|
|
||||||
// Returns true if popup menus should be rendered by the browser, false if
|
// Returns true if popup menus should be rendered by the browser, false if
|
||||||
// they should be rendered by WebKit (which is the default).
|
// they should be rendered by WebKit (which is the default).
|
||||||
|
@ -65,7 +65,7 @@ Index: Source/web/WebViewImpl.h
|
||||||
|
|
||||||
bool contextMenuAllowed() const
|
bool contextMenuAllowed() const
|
||||||
{
|
{
|
||||||
@@ -727,6 +728,8 @@
|
@@ -702,6 +703,8 @@
|
||||||
|
|
||||||
bool m_contextMenuAllowed;
|
bool m_contextMenuAllowed;
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,6 @@ TEST(RequestTest, SendRecv) {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
const char kTypeTestCompleteMsg[] = "RequestTest.Type";
|
|
||||||
const char kTypeTestOrigin[] = "http://tests-requesttt.com/";
|
const char kTypeTestOrigin[] = "http://tests-requesttt.com/";
|
||||||
|
|
||||||
static struct TypeExpected {
|
static struct TypeExpected {
|
||||||
|
|
|
@ -45,10 +45,14 @@ enum TracingTestType {
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN0,
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN0,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN1,
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN1,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2,
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2,
|
||||||
CEF_TRACE_EVENT_ASYNC_STEP0,
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO0,
|
||||||
CEF_TRACE_EVENT_ASYNC_STEP1,
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO1,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_STEP0,
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_STEP1,
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1,
|
||||||
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST0,
|
||||||
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST1,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1,
|
||||||
CEF_TRACE_EVENT_ASYNC_END0,
|
CEF_TRACE_EVENT_ASYNC_END0,
|
||||||
CEF_TRACE_EVENT_ASYNC_END1,
|
CEF_TRACE_EVENT_ASYNC_END1,
|
||||||
CEF_TRACE_EVENT_ASYNC_END2,
|
CEF_TRACE_EVENT_ASYNC_END2,
|
||||||
|
@ -267,25 +271,43 @@ class TracingTestHandler : public CefTraceClient {
|
||||||
"CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2",
|
"CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2",
|
||||||
100, "arg1", 1, "arg2", 2);
|
100, "arg1", 1, "arg2", 2);
|
||||||
break;
|
break;
|
||||||
case CEF_TRACE_EVENT_ASYNC_STEP0:
|
case CEF_TRACE_EVENT_ASYNC_STEP_INTO0:
|
||||||
CEF_TRACE_EVENT_ASYNC_STEP0(kTraceTestCategory,
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO0(
|
||||||
"CEF_TRACE_EVENT_ASYNC_STEP0", 100,
|
kTraceTestCategory, "CEF_TRACE_EVENT_ASYNC_STEP_INTO0", 100, 1000);
|
||||||
|
break;
|
||||||
|
case CEF_TRACE_EVENT_ASYNC_STEP_INTO1:
|
||||||
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO1(
|
||||||
|
kTraceTestCategory, "CEF_TRACE_EVENT_ASYNC_STEP_INTO1", 100, 1000,
|
||||||
|
"arg1", 1);
|
||||||
|
break;
|
||||||
|
case CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0:
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0(
|
||||||
|
kTraceTestCategory, "CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0", 100,
|
||||||
1000);
|
1000);
|
||||||
break;
|
break;
|
||||||
case CEF_TRACE_EVENT_ASYNC_STEP1:
|
case CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1:
|
||||||
CEF_TRACE_EVENT_ASYNC_STEP1(kTraceTestCategory,
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1(
|
||||||
"CEF_TRACE_EVENT_ASYNC_STEP1", 100,
|
kTraceTestCategory, "CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1", 100,
|
||||||
1000, "arg1", 1);
|
1000, "arg1", 1);
|
||||||
break;
|
break;
|
||||||
case CEF_TRACE_EVENT_COPY_ASYNC_STEP0:
|
case CEF_TRACE_EVENT_ASYNC_STEP_PAST0:
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_STEP0(kTraceTestCategory,
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST0(
|
||||||
"CEF_TRACE_EVENT_COPY_ASYNC_STEP0",
|
kTraceTestCategory, "CEF_TRACE_EVENT_ASYNC_STEP_PAST0", 100, 1000);
|
||||||
100, 1000);
|
|
||||||
break;
|
break;
|
||||||
case CEF_TRACE_EVENT_COPY_ASYNC_STEP1:
|
case CEF_TRACE_EVENT_ASYNC_STEP_PAST1:
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_STEP1(kTraceTestCategory,
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST1(
|
||||||
"CEF_TRACE_EVENT_COPY_ASYNC_STEP1",
|
kTraceTestCategory, "CEF_TRACE_EVENT_ASYNC_STEP_PAST1", 100, 1000,
|
||||||
100, 1000, "arg1", 1);
|
"arg1", 1);
|
||||||
|
break;
|
||||||
|
case CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0:
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0(
|
||||||
|
kTraceTestCategory, "CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0", 100,
|
||||||
|
1000);
|
||||||
|
break;
|
||||||
|
case CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1:
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1(
|
||||||
|
kTraceTestCategory, "CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1", 100,
|
||||||
|
1000, "arg1", 1);
|
||||||
break;
|
break;
|
||||||
case CEF_TRACE_EVENT_ASYNC_END0:
|
case CEF_TRACE_EVENT_ASYNC_END0:
|
||||||
CEF_TRACE_EVENT_ASYNC_END0(kTraceTestCategory,
|
CEF_TRACE_EVENT_ASYNC_END0(kTraceTestCategory,
|
||||||
|
@ -381,19 +403,31 @@ TRACING_TEST(TraceCounterId1, CEF_TRACE_COUNTER_ID1);
|
||||||
TRACING_TEST(TraceCopyCounterId1, CEF_TRACE_COPY_COUNTER_ID1);
|
TRACING_TEST(TraceCopyCounterId1, CEF_TRACE_COPY_COUNTER_ID1);
|
||||||
TRACING_TEST(TraceCounterId2, CEF_TRACE_COUNTER_ID2);
|
TRACING_TEST(TraceCounterId2, CEF_TRACE_COUNTER_ID2);
|
||||||
TRACING_TEST(TraceCopyCounterId2, CEF_TRACE_COPY_COUNTER_ID1);
|
TRACING_TEST(TraceCopyCounterId2, CEF_TRACE_COPY_COUNTER_ID1);
|
||||||
TRACING_TEST(TraceTraceEventAsyncBegin0, CEF_TRACE_EVENT_ASYNC_BEGIN0);
|
TRACING_TEST(TraceEventAsyncBegin0, CEF_TRACE_EVENT_ASYNC_BEGIN0);
|
||||||
TRACING_TEST(TraceTraceEventAsyncBegin1, CEF_TRACE_EVENT_ASYNC_BEGIN1);
|
TRACING_TEST(TraceEventAsyncBegin1, CEF_TRACE_EVENT_ASYNC_BEGIN1);
|
||||||
TRACING_TEST(TraceTraceEventAsyncBegin2, CEF_TRACE_EVENT_ASYNC_BEGIN2);
|
TRACING_TEST(TraceEventAsyncBegin2, CEF_TRACE_EVENT_ASYNC_BEGIN2);
|
||||||
TRACING_TEST(TraceTraceEventCopyAsyncBegin0,
|
TRACING_TEST(TraceEventCopyAsyncBegin0,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN0);
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN0);
|
||||||
TRACING_TEST(TraceTraceEventCopyAsyncBegin1,
|
TRACING_TEST(TraceEventCopyAsyncBegin1,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN1);
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN1);
|
||||||
TRACING_TEST(TraceTraceEventCopyAsyncBegin2,
|
TRACING_TEST(TraceEventCopyAsyncBegin2,
|
||||||
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2);
|
CEF_TRACE_EVENT_COPY_ASYNC_BEGIN2);
|
||||||
TRACING_TEST(TraceTraceEventAsyncStep0, CEF_TRACE_EVENT_ASYNC_STEP0);
|
TRACING_TEST(TraceEventAsyncStepInto0,
|
||||||
TRACING_TEST(TraceTraceEventAsyncStep1, CEF_TRACE_EVENT_ASYNC_STEP1);
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO0);
|
||||||
TRACING_TEST(TraceEventCopyAsyncStep0, CEF_TRACE_EVENT_COPY_ASYNC_STEP0);
|
TRACING_TEST(TraceEventAsyncStepInto1,
|
||||||
TRACING_TEST(TraceEventCopyAsyncStep1, CEF_TRACE_EVENT_COPY_ASYNC_STEP1);
|
CEF_TRACE_EVENT_ASYNC_STEP_INTO1);
|
||||||
|
TRACING_TEST(TraceEventCopyAsyncStepInto0,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO0);
|
||||||
|
TRACING_TEST(TraceEventCopyAsyncStepInto1,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_INTO1);
|
||||||
|
TRACING_TEST(TraceEventAsyncStepPast0,
|
||||||
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST0);
|
||||||
|
TRACING_TEST(TraceEventAsyncStepPast1,
|
||||||
|
CEF_TRACE_EVENT_ASYNC_STEP_PAST1);
|
||||||
|
TRACING_TEST(TraceEventCopyAsyncStepPast0,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST0);
|
||||||
|
TRACING_TEST(TraceEventCopyAsyncStepPast1,
|
||||||
|
CEF_TRACE_EVENT_COPY_ASYNC_STEP_PAST1);
|
||||||
TRACING_TEST(TraceEventAsyncEnd0, CEF_TRACE_EVENT_ASYNC_END0);
|
TRACING_TEST(TraceEventAsyncEnd0, CEF_TRACE_EVENT_ASYNC_END0);
|
||||||
TRACING_TEST(TraceEventAsyncEnd1, CEF_TRACE_EVENT_ASYNC_END1);
|
TRACING_TEST(TraceEventAsyncEnd1, CEF_TRACE_EVENT_ASYNC_END1);
|
||||||
TRACING_TEST(TraceEventAsyncEnd2, CEF_TRACE_EVENT_ASYNC_END2);
|
TRACING_TEST(TraceEventAsyncEnd2, CEF_TRACE_EVENT_ASYNC_END2);
|
||||||
|
|
|
@ -27,8 +27,6 @@ const char kV8ContextChildTestUrl[] = "http://tests/V8Test.ContextChildTest";
|
||||||
const char kV8NavTestUrl[] = "http://tests/V8Test.NavTest";
|
const char kV8NavTestUrl[] = "http://tests/V8Test.NavTest";
|
||||||
const char kV8OnUncaughtExceptionTestUrl[] =
|
const char kV8OnUncaughtExceptionTestUrl[] =
|
||||||
"http://tests/V8Test.OnUncaughtException";
|
"http://tests/V8Test.OnUncaughtException";
|
||||||
const char kV8WorkerParentTestUrl[] = "http://tests/V8Test.WorkerParent";
|
|
||||||
const char kV8WorkerTestUrl[] = "http://tests/V8Test.Worker.js";
|
|
||||||
const char kV8TestMsg[] = "V8Test.Test";
|
const char kV8TestMsg[] = "V8Test.Test";
|
||||||
const char kV8TestCmdArg[] = "v8-test";
|
const char kV8TestCmdArg[] = "v8-test";
|
||||||
const char kV8RunTestMsg[] = "V8Test.RunTest";
|
const char kV8RunTestMsg[] = "V8Test.RunTest";
|
||||||
|
|
|
@ -11,9 +11,8 @@ Required components:
|
||||||
* CEF core library
|
* CEF core library
|
||||||
libcef.dylib
|
libcef.dylib
|
||||||
|
|
||||||
* Cursor resources
|
* Plugin support library
|
||||||
Resources/*.png
|
libplugin_carbon_interpose.dylib
|
||||||
Resources/*.tiff
|
|
||||||
|
|
||||||
Optional components:
|
Optional components:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue