mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 241258.
- Update tracing implementation to use the new file-based approach (issue #1157). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1549 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Index: common.gypi
|
||||
===================================================================
|
||||
--- common.gypi (revision 237081)
|
||||
--- common.gypi (revision 240657)
|
||||
+++ common.gypi (working copy)
|
||||
@@ -9,6 +9,9 @@
|
||||
# Variables expected to be overriden on the GYP command line (-D) or by
|
||||
@@ -12,7 +12,7 @@ Index: common.gypi
|
||||
# Putting a variables dict inside another variables dict looks kind of
|
||||
# weird. This is done so that 'host_arch', 'chromeos', etc are defined as
|
||||
# variables within the outer variables dict here. This is necessary
|
||||
@@ -186,7 +189,7 @@
|
||||
@@ -201,7 +204,7 @@
|
||||
'enable_app_list%': 0,
|
||||
}],
|
||||
|
||||
@@ -23,7 +23,7 @@ Index: common.gypi
|
||||
'use_default_render_theme%': 0,
|
||||
Index: mac/strip_save_dsym
|
||||
===================================================================
|
||||
--- mac/strip_save_dsym (revision 237081)
|
||||
--- mac/strip_save_dsym (revision 240657)
|
||||
+++ mac/strip_save_dsym (working copy)
|
||||
@@ -48,7 +48,7 @@
|
||||
"bundle"]
|
||||
|
60
patch/patches/content_nav_1129.patch
Normal file
60
patch/patches/content_nav_1129.patch
Normal file
@@ -0,0 +1,60 @@
|
||||
Index: public/renderer/content_renderer_client.cc
|
||||
===================================================================
|
||||
--- public/renderer/content_renderer_client.cc (revision 240657)
|
||||
+++ public/renderer/content_renderer_client.cc (working copy)
|
||||
@@ -91,7 +91,6 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
-#ifdef OS_ANDROID
|
||||
bool ContentRendererClient::HandleNavigation(
|
||||
RenderView* view,
|
||||
DocumentState* document_state,
|
||||
@@ -103,7 +102,6 @@
|
||||
bool is_redirect) {
|
||||
return false;
|
||||
}
|
||||
-#endif
|
||||
|
||||
bool ContentRendererClient::ShouldFork(blink::WebFrame* frame,
|
||||
const GURL& url,
|
||||
Index: public/renderer/content_renderer_client.h
|
||||
===================================================================
|
||||
--- public/renderer/content_renderer_client.h (revision 240657)
|
||||
+++ public/renderer/content_renderer_client.h (working copy)
|
||||
@@ -172,7 +172,6 @@
|
||||
// Returns true if a popup window should be allowed.
|
||||
virtual bool AllowPopup();
|
||||
|
||||
-#ifdef OS_ANDROID
|
||||
// TODO(sgurun) This callback is deprecated and will be removed as soon
|
||||
// as android webview completes implementation of a resource throttle based
|
||||
// shouldoverrideurl implementation. See crbug.com/325351
|
||||
@@ -187,7 +186,6 @@
|
||||
blink::WebNavigationType type,
|
||||
blink::WebNavigationPolicy default_policy,
|
||||
bool is_redirect);
|
||||
-#endif
|
||||
|
||||
// Returns true if we should fork a new process for the given navigation.
|
||||
// If |send_referrer| is set to false (which is the default), no referrer
|
||||
Index: renderer/render_view_impl.cc
|
||||
===================================================================
|
||||
--- renderer/render_view_impl.cc (revision 240657)
|
||||
+++ renderer/render_view_impl.cc (working copy)
|
||||
@@ -3134,7 +3134,6 @@
|
||||
WebFrame* frame, WebDataSource::ExtraData* extraData,
|
||||
const WebURLRequest& request, WebNavigationType type,
|
||||
WebNavigationPolicy default_policy, bool is_redirect) {
|
||||
-#ifdef OS_ANDROID
|
||||
// The handlenavigation API is deprecated and will be removed once
|
||||
// crbug.com/325351 is resolved.
|
||||
if (request.url() != GURL(kSwappedOutURL) &&
|
||||
@@ -3149,7 +3148,6 @@
|
||||
is_redirect)) {
|
||||
return blink::WebNavigationPolicyIgnore;
|
||||
}
|
||||
-#endif
|
||||
|
||||
Referrer referrer(GetReferrerFromRequest(frame, request));
|
||||
|
@@ -1,8 +1,8 @@
|
||||
Index: frame/FrameView.cpp
|
||||
Index: core/frame/FrameView.cpp
|
||||
===================================================================
|
||||
--- frame/FrameView.cpp (revision 161588)
|
||||
+++ frame/FrameView.cpp (working copy)
|
||||
@@ -201,8 +201,10 @@
|
||||
--- core/frame/FrameView.cpp (revision 163979)
|
||||
+++ core/frame/FrameView.cpp (working copy)
|
||||
@@ -200,8 +200,10 @@
|
||||
if (!isMainFrame())
|
||||
return;
|
||||
|
||||
@@ -15,7 +15,7 @@ Index: frame/FrameView.cpp
|
||||
PassRefPtr<FrameView> FrameView::create(Frame* frame)
|
||||
Index: platform/mac/NSScrollerImpDetails.mm
|
||||
===================================================================
|
||||
--- platform/mac/NSScrollerImpDetails.mm (revision 161588)
|
||||
--- platform/mac/NSScrollerImpDetails.mm (revision 163979)
|
||||
+++ platform/mac/NSScrollerImpDetails.mm (working copy)
|
||||
@@ -73,10 +73,14 @@
|
||||
|
||||
|
332
patch/patches/tracing_1157.patch
Normal file
332
patch/patches/tracing_1157.patch
Normal file
@@ -0,0 +1,332 @@
|
||||
Index: trace_message_filter.cc
|
||||
===================================================================
|
||||
--- trace_message_filter.cc (revision 241258)
|
||||
+++ trace_message_filter.cc (working copy)
|
||||
@@ -121,7 +121,7 @@
|
||||
if (is_awaiting_end_ack_) {
|
||||
is_awaiting_end_ack_ = false;
|
||||
TracingControllerImpl::GetInstance()->OnDisableRecordingAcked(
|
||||
- known_categories);
|
||||
+ this, known_categories);
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -132,7 +132,8 @@
|
||||
// but check in case the child process is compromised.
|
||||
if (is_awaiting_capture_monitoring_snapshot_ack_) {
|
||||
is_awaiting_capture_monitoring_snapshot_ack_ = false;
|
||||
- TracingControllerImpl::GetInstance()->OnCaptureMonitoringSnapshotAcked();
|
||||
+ TracingControllerImpl::GetInstance()->OnCaptureMonitoringSnapshotAcked(
|
||||
+ this);
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -160,7 +161,7 @@
|
||||
if (is_awaiting_buffer_percent_full_ack_) {
|
||||
is_awaiting_buffer_percent_full_ack_ = false;
|
||||
TracingControllerImpl::GetInstance()->OnTraceBufferPercentFullReply(
|
||||
- percent_full);
|
||||
+ this, percent_full);
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
Index: tracing_controller_impl.cc
|
||||
===================================================================
|
||||
--- tracing_controller_impl.cc (revision 241258)
|
||||
+++ tracing_controller_impl.cc (working copy)
|
||||
@@ -177,7 +177,7 @@
|
||||
is_recording_ = true;
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendBeginTracing(category_filter, trace_options);
|
||||
}
|
||||
@@ -212,6 +212,7 @@
|
||||
// Count myself (local trace) in pending_disable_recording_ack_count_,
|
||||
// acked below.
|
||||
pending_disable_recording_ack_count_ = trace_message_filters_.size() + 1;
|
||||
+ pending_disable_recording_filters_ = trace_message_filters_;
|
||||
|
||||
// Handle special case of zero child processes by immediately flushing the
|
||||
// trace log. Once the flush has completed the caller will be notified that
|
||||
@@ -224,7 +225,7 @@
|
||||
}
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendEndTracing();
|
||||
}
|
||||
@@ -254,7 +255,7 @@
|
||||
static_cast<TraceLog::Options>(monitoring_tracing_options));
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendEnableMonitoring(category_filter,
|
||||
static_cast<TraceLog::Options>(monitoring_tracing_options));
|
||||
@@ -276,7 +277,7 @@
|
||||
TraceLog::GetInstance()->SetDisabled();
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendDisableMonitoring();
|
||||
}
|
||||
@@ -311,6 +312,7 @@
|
||||
// acked below.
|
||||
pending_capture_monitoring_snapshot_ack_count_ =
|
||||
trace_message_filters_.size() + 1;
|
||||
+ pending_capture_monitoring_filters_ = trace_message_filters_;
|
||||
|
||||
// Handle special case of zero child processes by immediately flushing the
|
||||
// trace log. Once the flush has completed the caller will be notified that
|
||||
@@ -323,7 +325,7 @@
|
||||
}
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendCaptureMonitoringSnapshot();
|
||||
}
|
||||
@@ -347,6 +349,7 @@
|
||||
// Count myself in pending_trace_buffer_percent_full_ack_count_, acked below.
|
||||
pending_trace_buffer_percent_full_ack_count_ =
|
||||
trace_message_filters_.size() + 1;
|
||||
+ pending_trace_buffer_percent_full_filters_ = trace_message_filters_;
|
||||
maximum_trace_buffer_percent_full_ = 0;
|
||||
|
||||
// Handle special case of zero child processes.
|
||||
@@ -354,11 +357,12 @@
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
base::Bind(&TracingControllerImpl::OnTraceBufferPercentFullReply,
|
||||
base::Unretained(this),
|
||||
+ scoped_refptr<TraceMessageFilter>(),
|
||||
TraceLog::GetInstance()->GetBufferPercentFull()));
|
||||
}
|
||||
|
||||
// Notify all child processes.
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendGetTraceBufferPercentFull();
|
||||
}
|
||||
@@ -383,7 +387,7 @@
|
||||
base::Bind(&TracingControllerImpl::OnWatchEventMatched,
|
||||
base::Unretained(this)));
|
||||
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendSetWatchEvent(category_name, event_name);
|
||||
}
|
||||
@@ -396,7 +400,7 @@
|
||||
if (!can_cancel_watch_event())
|
||||
return false;
|
||||
|
||||
- for (TraceMessageFilterMap::iterator it = trace_message_filters_.begin();
|
||||
+ for (TraceMessageFilterSet::iterator it = trace_message_filters_.begin();
|
||||
it != trace_message_filters_.end(); ++it) {
|
||||
it->get()->SendCancelWatchEvent();
|
||||
}
|
||||
@@ -437,15 +441,54 @@
|
||||
return;
|
||||
}
|
||||
|
||||
+ // If a filter is removed while a response from that filter is pending then
|
||||
+ // simulate the response. Otherwise the response count will be wrong and the
|
||||
+ // completion callback will never be executed.
|
||||
+ if (pending_disable_recording_ack_count_ > 0) {
|
||||
+ TraceMessageFilterSet::const_iterator it =
|
||||
+ pending_disable_recording_filters_.find(trace_message_filter);
|
||||
+ if (it != pending_disable_recording_filters_.end()) {
|
||||
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
+ base::Bind(&TracingControllerImpl::OnDisableRecordingAcked,
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter),
|
||||
+ std::vector<std::string>()));
|
||||
+ }
|
||||
+ }
|
||||
+ if (pending_capture_monitoring_snapshot_ack_count_ > 0) {
|
||||
+ TraceMessageFilterSet::const_iterator it =
|
||||
+ pending_capture_monitoring_filters_.find(trace_message_filter);
|
||||
+ if (it != pending_capture_monitoring_filters_.end()) {
|
||||
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
+ base::Bind(&TracingControllerImpl::OnCaptureMonitoringSnapshotAcked,
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter)));
|
||||
+ }
|
||||
+ }
|
||||
+ if (pending_trace_buffer_percent_full_ack_count_ > 0) {
|
||||
+ TraceMessageFilterSet::const_iterator it =
|
||||
+ pending_trace_buffer_percent_full_filters_.find(trace_message_filter);
|
||||
+ if (it != pending_trace_buffer_percent_full_filters_.end()) {
|
||||
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
+ base::Bind(&TracingControllerImpl::OnTraceBufferPercentFullReply,
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter),
|
||||
+ 0));
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
trace_message_filters_.erase(trace_message_filter);
|
||||
}
|
||||
|
||||
void TracingControllerImpl::OnDisableRecordingAcked(
|
||||
+ TraceMessageFilter* trace_message_filter,
|
||||
const std::vector<std::string>& known_category_groups) {
|
||||
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
base::Bind(&TracingControllerImpl::OnDisableRecordingAcked,
|
||||
- base::Unretained(this), known_category_groups));
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter),
|
||||
+ known_category_groups));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -456,6 +499,12 @@
|
||||
if (pending_disable_recording_ack_count_ == 0)
|
||||
return;
|
||||
|
||||
+ if (trace_message_filter &&
|
||||
+ !pending_disable_recording_filters_.erase(trace_message_filter)) {
|
||||
+ // The response from the specified message filter has already been received.
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
if (--pending_disable_recording_ack_count_ == 1) {
|
||||
// All acks from subprocesses have been received. Now flush the local trace.
|
||||
// During or after this call, our OnLocalTraceDataCollected will be
|
||||
@@ -497,17 +546,25 @@
|
||||
result_file_.reset();
|
||||
}
|
||||
|
||||
-void TracingControllerImpl::OnCaptureMonitoringSnapshotAcked() {
|
||||
+void TracingControllerImpl::OnCaptureMonitoringSnapshotAcked(
|
||||
+ TraceMessageFilter* trace_message_filter) {
|
||||
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
base::Bind(&TracingControllerImpl::OnCaptureMonitoringSnapshotAcked,
|
||||
- base::Unretained(this)));
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter)));
|
||||
return;
|
||||
}
|
||||
|
||||
if (pending_capture_monitoring_snapshot_ack_count_ == 0)
|
||||
return;
|
||||
|
||||
+ if (trace_message_filter &&
|
||||
+ !pending_capture_monitoring_filters_.erase(trace_message_filter)) {
|
||||
+ // The response from the specified message filter has already been received.
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
if (--pending_capture_monitoring_snapshot_ack_count_ == 1) {
|
||||
// All acks from subprocesses have been received. Now flush the local trace.
|
||||
// During or after this call, our OnLocalMonitoringTraceDataCollected
|
||||
@@ -582,7 +639,7 @@
|
||||
// Simulate an DisableRecordingAcked for the local trace.
|
||||
std::vector<std::string> category_groups;
|
||||
TraceLog::GetInstance()->GetKnownCategoryGroups(&category_groups);
|
||||
- OnDisableRecordingAcked(category_groups);
|
||||
+ OnDisableRecordingAcked(NULL, category_groups);
|
||||
}
|
||||
|
||||
void TracingControllerImpl::OnLocalMonitoringTraceDataCollected(
|
||||
@@ -595,20 +652,30 @@
|
||||
return;
|
||||
|
||||
// Simulate an CaptureMonitoringSnapshotAcked for the local trace.
|
||||
- OnCaptureMonitoringSnapshotAcked();
|
||||
+ OnCaptureMonitoringSnapshotAcked(NULL);
|
||||
}
|
||||
|
||||
-void TracingControllerImpl::OnTraceBufferPercentFullReply(float percent_full) {
|
||||
+void TracingControllerImpl::OnTraceBufferPercentFullReply(
|
||||
+ TraceMessageFilter* trace_message_filter,
|
||||
+ float percent_full) {
|
||||
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
base::Bind(&TracingControllerImpl::OnTraceBufferPercentFullReply,
|
||||
- base::Unretained(this), percent_full));
|
||||
+ base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter),
|
||||
+ percent_full));
|
||||
return;
|
||||
}
|
||||
|
||||
if (pending_trace_buffer_percent_full_ack_count_ == 0)
|
||||
return;
|
||||
|
||||
+ if (trace_message_filter &&
|
||||
+ !pending_trace_buffer_percent_full_filters_.erase(trace_message_filter)) {
|
||||
+ // The response from the specified message filter has already been received.
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
maximum_trace_buffer_percent_full_ =
|
||||
std::max(maximum_trace_buffer_percent_full_, percent_full);
|
||||
|
||||
@@ -625,6 +692,7 @@
|
||||
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
||||
base::Bind(&TracingControllerImpl::OnTraceBufferPercentFullReply,
|
||||
base::Unretained(this),
|
||||
+ make_scoped_refptr(trace_message_filter),
|
||||
TraceLog::GetInstance()->GetBufferPercentFull()));
|
||||
}
|
||||
}
|
||||
Index: tracing_controller_impl.h
|
||||
===================================================================
|
||||
--- tracing_controller_impl.h (revision 241258)
|
||||
+++ tracing_controller_impl.h (working copy)
|
||||
@@ -55,7 +55,7 @@
|
||||
virtual bool CancelWatchEvent() OVERRIDE;
|
||||
|
||||
private:
|
||||
- typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterMap;
|
||||
+ typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterSet;
|
||||
class ResultFile;
|
||||
|
||||
friend struct base::DefaultLazyInstanceTraits<TracingControllerImpl>;
|
||||
@@ -107,23 +107,30 @@
|
||||
bool has_more_events);
|
||||
|
||||
void OnDisableRecordingAcked(
|
||||
+ TraceMessageFilter* trace_message_filter,
|
||||
const std::vector<std::string>& known_category_groups);
|
||||
void OnResultFileClosed();
|
||||
|
||||
- void OnCaptureMonitoringSnapshotAcked();
|
||||
+ void OnCaptureMonitoringSnapshotAcked(
|
||||
+ TraceMessageFilter* trace_message_filter);
|
||||
void OnMonitoringSnapshotFileClosed();
|
||||
|
||||
- void OnTraceBufferPercentFullReply(float percent_full);
|
||||
+ void OnTraceBufferPercentFullReply(
|
||||
+ TraceMessageFilter* trace_message_filter,
|
||||
+ float percent_full);
|
||||
|
||||
void OnWatchEventMatched();
|
||||
|
||||
- TraceMessageFilterMap trace_message_filters_;
|
||||
+ TraceMessageFilterSet trace_message_filters_;
|
||||
// Pending acks for DisableRecording.
|
||||
int pending_disable_recording_ack_count_;
|
||||
+ TraceMessageFilterSet pending_disable_recording_filters_;
|
||||
// Pending acks for CaptureMonitoringSnapshot.
|
||||
int pending_capture_monitoring_snapshot_ack_count_;
|
||||
+ TraceMessageFilterSet pending_capture_monitoring_filters_;
|
||||
// Pending acks for GetTraceBufferPercentFull.
|
||||
int pending_trace_buffer_percent_full_ack_count_;
|
||||
+ TraceMessageFilterSet pending_trace_buffer_percent_full_filters_;
|
||||
float maximum_trace_buffer_percent_full_;
|
||||
|
||||
bool is_recording_;
|
@@ -1,6 +1,6 @@
|
||||
Index: desktop_aura/desktop_root_window_host_win.cc
|
||||
===================================================================
|
||||
--- desktop_aura/desktop_root_window_host_win.cc (revision 237081)
|
||||
--- desktop_aura/desktop_root_window_host_win.cc (revision 241258)
|
||||
+++ desktop_aura/desktop_root_window_host_win.cc (working copy)
|
||||
@@ -131,7 +131,9 @@
|
||||
native_widget_delegate_);
|
||||
@@ -13,9 +13,18 @@ Index: desktop_aura/desktop_root_window_host_win.cc
|
||||
parent_hwnd =
|
||||
params.parent->GetDispatcher()->host()->GetAcceleratedWidget();
|
||||
}
|
||||
@@ -751,7 +753,7 @@
|
||||
|
||||
void DesktopRootWindowHostWin::HandleCreate() {
|
||||
// TODO(beng): moar
|
||||
- NOTIMPLEMENTED();
|
||||
+ // NOTIMPLEMENTED();
|
||||
|
||||
native_widget_delegate_->OnNativeWidgetCreated(true);
|
||||
|
||||
Index: desktop_aura/desktop_screen_win.cc
|
||||
===================================================================
|
||||
--- desktop_aura/desktop_screen_win.cc (revision 237081)
|
||||
--- desktop_aura/desktop_screen_win.cc (revision 241258)
|
||||
+++ desktop_aura/desktop_screen_win.cc (working copy)
|
||||
@@ -54,6 +54,8 @@
|
||||
}
|
||||
@@ -28,7 +37,7 @@ Index: desktop_aura/desktop_screen_win.cc
|
||||
}
|
||||
Index: widget.h
|
||||
===================================================================
|
||||
--- widget.h (revision 237081)
|
||||
--- widget.h (revision 241258)
|
||||
+++ widget.h (working copy)
|
||||
@@ -201,6 +201,7 @@
|
||||
// Should the widget be double buffered? Default is false.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Index: public/web/WebView.h
|
||||
===================================================================
|
||||
--- public/web/WebView.h (revision 162607)
|
||||
--- public/web/WebView.h (revision 163979)
|
||||
+++ public/web/WebView.h (working copy)
|
||||
@@ -441,6 +441,7 @@
|
||||
|
||||
@@ -12,9 +12,9 @@ Index: public/web/WebView.h
|
||||
// Visited link state --------------------------------------------------
|
||||
Index: Source/web/ChromeClientImpl.cpp
|
||||
===================================================================
|
||||
--- Source/web/ChromeClientImpl.cpp (revision 162607)
|
||||
--- Source/web/ChromeClientImpl.cpp (revision 163979)
|
||||
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
||||
@@ -866,7 +866,7 @@
|
||||
@@ -867,7 +867,7 @@
|
||||
|
||||
PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuClient* client) const
|
||||
{
|
||||
@@ -25,9 +25,9 @@ Index: Source/web/ChromeClientImpl.cpp
|
||||
return adoptRef(new PopupMenuChromium(frame, client));
|
||||
Index: Source/web/WebViewImpl.cpp
|
||||
===================================================================
|
||||
--- Source/web/WebViewImpl.cpp (revision 162607)
|
||||
--- Source/web/WebViewImpl.cpp (revision 163979)
|
||||
+++ Source/web/WebViewImpl.cpp (working copy)
|
||||
@@ -392,6 +392,7 @@
|
||||
@@ -393,6 +393,7 @@
|
||||
, m_fakePageScaleAnimationPageScaleFactor(0)
|
||||
, m_fakePageScaleAnimationUseAnchor(false)
|
||||
, m_contextMenuAllowed(false)
|
||||
@@ -35,7 +35,7 @@ Index: Source/web/WebViewImpl.cpp
|
||||
, m_doingDragAndDrop(false)
|
||||
, m_ignoreInputEvents(false)
|
||||
, m_compositorDeviceScaleFactorOverride(0)
|
||||
@@ -3686,9 +3687,14 @@
|
||||
@@ -3708,9 +3709,14 @@
|
||||
updateLayerTreeViewport();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ Index: Source/web/WebViewImpl.cpp
|
||||
void WebViewImpl::startDragging(Frame* frame,
|
||||
Index: Source/web/WebViewImpl.h
|
||||
===================================================================
|
||||
--- Source/web/WebViewImpl.h (revision 162607)
|
||||
--- Source/web/WebViewImpl.h (revision 163979)
|
||||
+++ Source/web/WebViewImpl.h (working copy)
|
||||
@@ -416,7 +416,8 @@
|
||||
|
||||
@@ -65,7 +65,7 @@ Index: Source/web/WebViewImpl.h
|
||||
|
||||
bool contextMenuAllowed() const
|
||||
{
|
||||
@@ -713,6 +714,8 @@
|
||||
@@ -714,6 +715,8 @@
|
||||
|
||||
bool m_contextMenuAllowed;
|
||||
|
||||
|
@@ -1,41 +0,0 @@
|
||||
Index: webplugin_delegate_impl_win.cc
|
||||
===================================================================
|
||||
--- webplugin_delegate_impl_win.cc (revision 237081)
|
||||
+++ webplugin_delegate_impl_win.cc (working copy)
|
||||
@@ -88,8 +88,10 @@
|
||||
base::LazyInstance<base::win::IATPatchFunction> g_iat_patch_get_proc_address =
|
||||
LAZY_INSTANCE_INITIALIZER;
|
||||
|
||||
+#if defined(USE_AURA)
|
||||
base::LazyInstance<base::win::IATPatchFunction> g_iat_patch_window_from_point =
|
||||
LAZY_INSTANCE_INITIALIZER;
|
||||
+#endif
|
||||
|
||||
// http://crbug.com/16114
|
||||
// Enforces providing a valid device context in NPWindow, so that NPP_SetWindow
|
||||
@@ -420,12 +422,14 @@
|
||||
GetProcAddressPatch);
|
||||
}
|
||||
|
||||
+#if defined(USE_AURA)
|
||||
if (windowless_ && !g_iat_patch_window_from_point.Pointer()->is_patched() &&
|
||||
(quirks_ & PLUGIN_QUIRK_FAKE_WINDOW_FROM_POINT)) {
|
||||
g_iat_patch_window_from_point.Pointer()->Patch(
|
||||
GetPluginPath().value().c_str(), "user32.dll", "WindowFromPoint",
|
||||
WebPluginDelegateImpl::WindowFromPointPatch);
|
||||
}
|
||||
+#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -447,8 +451,10 @@
|
||||
if (g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched())
|
||||
g_iat_patch_reg_enum_key_ex_w.Pointer()->Unpatch();
|
||||
|
||||
+#if defined(USE_AURA)
|
||||
if (g_iat_patch_window_from_point.Pointer()->is_patched())
|
||||
g_iat_patch_window_from_point.Pointer()->Unpatch();
|
||||
+#endif
|
||||
|
||||
if (mouse_hook_) {
|
||||
UnhookWindowsHookEx(mouse_hook_);
|
Reference in New Issue
Block a user