mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision beafd8cb (#314338).
- Remove unused CefContextMenuHandler::GetMisspellingHash() method. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@2020 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
87
patch/patches/base_atomicops_455263.patch
Normal file
87
patch/patches/base_atomicops_455263.patch
Normal file
@@ -0,0 +1,87 @@
|
||||
diff --git atomicops.h atomicops.h
|
||||
index 6a5371c..48e2f13 100644
|
||||
--- atomicops.h
|
||||
+++ atomicops.h
|
||||
@@ -168,7 +168,7 @@ struct AtomicOps_x86CPUFeatureStruct {
|
||||
bool has_cmpxchg16b; // Processor supports cmpxchg16b instruction.
|
||||
};
|
||||
BASE_EXPORT extern struct AtomicOps_x86CPUFeatureStruct
|
||||
- AtomicOps_Internalx86CPUFeatures;
|
||||
+ base_AtomicOps_Internalx86CPUFeatures;
|
||||
#endif
|
||||
|
||||
// Try to use a portable implementation based on C++11 atomics.
|
||||
diff --git atomicops_internals_x86_gcc.cc atomicops_internals_x86_gcc.cc
|
||||
index c21e96d..fb570e0 100644
|
||||
--- atomicops_internals_x86_gcc.cc
|
||||
+++ atomicops_internals_x86_gcc.cc
|
||||
@@ -34,7 +34,7 @@
|
||||
// Set the flags so that code will run correctly and conservatively, so even
|
||||
// if we haven't been initialized yet, we're probably single threaded, and our
|
||||
// default values should hopefully be pretty safe.
|
||||
-struct AtomicOps_x86CPUFeatureStruct AtomicOps_Internalx86CPUFeatures = {
|
||||
+struct AtomicOps_x86CPUFeatureStruct base_AtomicOps_Internalx86CPUFeatures = {
|
||||
false, // bug can't exist before process spawns multiple threads
|
||||
false, // Chrome requires SSE2, but for transition assume not and initialize
|
||||
// this properly.
|
||||
@@ -76,16 +76,16 @@ void AtomicOps_Internalx86CPUFeaturesInit() {
|
||||
if (strcmp(vendor, "AuthenticAMD") == 0 && // AMD
|
||||
family == 15 &&
|
||||
32 <= model && model <= 63) {
|
||||
- AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug = true;
|
||||
+ base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug = true;
|
||||
} else {
|
||||
- AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug = false;
|
||||
+ base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug = false;
|
||||
}
|
||||
|
||||
// edx bit 26 is SSE2 which we use to tell use whether we can use mfence
|
||||
- AtomicOps_Internalx86CPUFeatures.has_sse2 = ((edx >> 26) & 1);
|
||||
+ base_AtomicOps_Internalx86CPUFeatures.has_sse2 = ((edx >> 26) & 1);
|
||||
|
||||
// ecx bit 13 indicates whether the cmpxchg16b instruction is supported
|
||||
- AtomicOps_Internalx86CPUFeatures.has_cmpxchg16b = ((ecx >> 13) & 1);
|
||||
+ base_AtomicOps_Internalx86CPUFeatures.has_cmpxchg16b = ((ecx >> 13) & 1);
|
||||
}
|
||||
|
||||
class AtomicOpsx86Initializer {
|
||||
diff --git atomicops_internals_x86_gcc.h atomicops_internals_x86_gcc.h
|
||||
index 69eacdb..c2ad1e6 100644
|
||||
--- atomicops_internals_x86_gcc.h
|
||||
+++ atomicops_internals_x86_gcc.h
|
||||
@@ -51,7 +51,7 @@ inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr,
|
||||
: "+r" (temp), "+m" (*ptr)
|
||||
: : "memory");
|
||||
// temp now holds the old value of *ptr
|
||||
- if (AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
+ if (base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
__asm__ __volatile__("lfence" : : : "memory");
|
||||
}
|
||||
return temp + increment;
|
||||
@@ -61,7 +61,7 @@ inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr,
|
||||
Atomic32 old_value,
|
||||
Atomic32 new_value) {
|
||||
Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value);
|
||||
- if (AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
+ if (base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
__asm__ __volatile__("lfence" : : : "memory");
|
||||
}
|
||||
return x;
|
||||
@@ -149,7 +149,7 @@ inline Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr,
|
||||
: "+r" (temp), "+m" (*ptr)
|
||||
: : "memory");
|
||||
// temp now contains the previous value of *ptr
|
||||
- if (AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
+ if (base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
__asm__ __volatile__("lfence" : : : "memory");
|
||||
}
|
||||
return temp + increment;
|
||||
@@ -206,7 +206,7 @@ inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr,
|
||||
Atomic64 old_value,
|
||||
Atomic64 new_value) {
|
||||
Atomic64 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value);
|
||||
- if (AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
+ if (base_AtomicOps_Internalx86CPUFeatures.has_amd_lock_mb_bug) {
|
||||
__asm__ __volatile__("lfence" : : : "memory");
|
||||
}
|
||||
return x;
|
@@ -1,8 +1,8 @@
|
||||
diff --git web_contents_impl.cc web_contents_impl.cc
|
||||
index 0326fe5..5daf313 100644
|
||||
index 507ebbe..1ef87a2 100644
|
||||
--- web_contents_impl.cc
|
||||
+++ web_contents_impl.cc
|
||||
@@ -1164,22 +1164,29 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||
@@ -1191,22 +1191,29 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||
params.browser_context, params.site_instance, params.routing_id,
|
||||
params.main_frame_routing_id);
|
||||
|
||||
@@ -48,7 +48,7 @@ index 0326fe5..5daf313 100644
|
||||
}
|
||||
CHECK(render_view_host_delegate_view_);
|
||||
CHECK(view_.get());
|
||||
@@ -1517,6 +1524,9 @@ void WebContentsImpl::CreateNewWindow(
|
||||
@@ -1571,6 +1578,9 @@ void WebContentsImpl::CreateNewWindow(
|
||||
static_cast<SessionStorageNamespaceImpl*>(session_storage_namespace);
|
||||
CHECK(session_storage_namespace_impl->IsFromContext(dom_storage_context));
|
||||
|
||||
@@ -58,7 +58,7 @@ index 0326fe5..5daf313 100644
|
||||
if (delegate_ &&
|
||||
!delegate_->ShouldCreateWebContents(this,
|
||||
route_id,
|
||||
@@ -1525,7 +1535,9 @@ void WebContentsImpl::CreateNewWindow(
|
||||
@@ -1579,7 +1589,9 @@ void WebContentsImpl::CreateNewWindow(
|
||||
params.frame_name,
|
||||
params.target_url,
|
||||
partition_id,
|
||||
@@ -69,7 +69,7 @@ index 0326fe5..5daf313 100644
|
||||
if (route_id != MSG_ROUTING_NONE &&
|
||||
!RenderViewHost::FromID(render_process_id, route_id)) {
|
||||
// If the embedder didn't create a WebContents for this route, we need to
|
||||
@@ -1545,6 +1557,8 @@ void WebContentsImpl::CreateNewWindow(
|
||||
@@ -1599,6 +1611,8 @@ void WebContentsImpl::CreateNewWindow(
|
||||
create_params.main_frame_routing_id = main_frame_route_id;
|
||||
create_params.opener = this;
|
||||
create_params.opener_suppressed = params.opener_suppressed;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git common.gypi common.gypi
|
||||
index 83a3df6..a0a0b60 100644
|
||||
index 948dcec..243b262 100644
|
||||
--- common.gypi
|
||||
+++ common.gypi
|
||||
@@ -9,6 +9,9 @@
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git ui/browser.cc ui/browser.cc
|
||||
index 6c926b9..a809f0f 100644
|
||||
index 436a15e..3985b27 100644
|
||||
--- ui/browser.cc
|
||||
+++ ui/browser.cc
|
||||
@@ -1567,7 +1567,9 @@ bool Browser::ShouldCreateWebContents(
|
||||
@@ -1563,7 +1563,9 @@ bool Browser::ShouldCreateWebContents(
|
||||
const base::string16& frame_name,
|
||||
const GURL& target_url,
|
||||
const std::string& partition_id,
|
||||
@@ -14,7 +14,7 @@ index 6c926b9..a809f0f 100644
|
||||
// If a BackgroundContents is created, suppress the normal WebContents.
|
||||
return !MaybeCreateBackgroundContents(route_id,
|
||||
diff --git ui/browser.h ui/browser.h
|
||||
index c9aad25..b682e4e 100644
|
||||
index 8478d97..d1a3f4e 100644
|
||||
--- ui/browser.h
|
||||
+++ ui/browser.h
|
||||
@@ -587,7 +587,9 @@ class Browser : public TabStripModelObserver,
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git content/browser/compositor/gpu_process_transport_factory.cc content/browser/compositor/gpu_process_transport_factory.cc
|
||||
index c7c867e..5b0ea66 100644
|
||||
index cc42565..c671a8d 100644
|
||||
--- content/browser/compositor/gpu_process_transport_factory.cc
|
||||
+++ content/browser/compositor/gpu_process_transport_factory.cc
|
||||
@@ -106,6 +106,13 @@ GpuProcessTransportFactory::CreateOffscreenCommandBufferContext() {
|
||||
@@ -17,7 +17,7 @@ index c7c867e..5b0ea66 100644
|
||||
return scoped_ptr<cc::SoftwareOutputDevice>(new SoftwareOutputDeviceWin(
|
||||
compositor));
|
||||
diff --git ui/compositor/compositor.h ui/compositor/compositor.h
|
||||
index 94cd1a91..b13e64fb 100644
|
||||
index ded2992..0b000c6 100644
|
||||
--- ui/compositor/compositor.h
|
||||
+++ ui/compositor/compositor.h
|
||||
@@ -13,6 +13,7 @@
|
||||
@@ -28,7 +28,7 @@ index 94cd1a91..b13e64fb 100644
|
||||
#include "cc/surfaces/surface_sequence.h"
|
||||
#include "cc/trees/layer_tree_host_client.h"
|
||||
#include "cc/trees/layer_tree_host_single_thread_client.h"
|
||||
@@ -136,6 +137,17 @@ class COMPOSITOR_EXPORT CompositorLock
|
||||
@@ -134,6 +135,17 @@ class COMPOSITOR_EXPORT CompositorLock
|
||||
DISALLOW_COPY_AND_ASSIGN(CompositorLock);
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ index 94cd1a91..b13e64fb 100644
|
||||
// Compositor object to take care of GPU painting.
|
||||
// A Browser compositor object is responsible for generating the final
|
||||
// displayable form of pixels comprising a single widget's contents. It draws an
|
||||
@@ -157,6 +169,9 @@ class COMPOSITOR_EXPORT Compositor
|
||||
@@ -155,6 +167,9 @@ class COMPOSITOR_EXPORT Compositor
|
||||
// Schedules a redraw of the layer tree associated with this compositor.
|
||||
void ScheduleDraw();
|
||||
|
||||
@@ -56,7 +56,7 @@ index 94cd1a91..b13e64fb 100644
|
||||
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
||||
// must have no parent. The compositor's root layer is reset if the root layer
|
||||
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
||||
@@ -310,6 +325,8 @@ class COMPOSITOR_EXPORT Compositor
|
||||
@@ -298,6 +313,8 @@ class COMPOSITOR_EXPORT Compositor
|
||||
|
||||
ui::ContextFactory* context_factory_;
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git public/renderer/content_renderer_client.cc public/renderer/content_renderer_client.cc
|
||||
index 489ee14..caa083e 100644
|
||||
index 79b40ac..4babaa9 100644
|
||||
--- public/renderer/content_renderer_client.cc
|
||||
+++ public/renderer/content_renderer_client.cc
|
||||
@@ -99,7 +99,6 @@ bool ContentRendererClient::AllowPopup() {
|
||||
@@ -19,10 +19,10 @@ index 489ee14..caa083e 100644
|
||||
bool ContentRendererClient::ShouldFork(blink::WebFrame* frame,
|
||||
const GURL& url,
|
||||
diff --git public/renderer/content_renderer_client.h public/renderer/content_renderer_client.h
|
||||
index bc82ce6..b112107 100644
|
||||
index a7c7271..05fc084 100644
|
||||
--- public/renderer/content_renderer_client.h
|
||||
+++ public/renderer/content_renderer_client.h
|
||||
@@ -195,7 +195,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
@@ -192,7 +192,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
// Returns true if a popup window should be allowed.
|
||||
virtual bool AllowPopup();
|
||||
|
||||
@@ -30,7 +30,7 @@ index bc82ce6..b112107 100644
|
||||
// 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
|
||||
@@ -210,7 +209,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
@@ -207,7 +206,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
blink::WebNavigationType type,
|
||||
blink::WebNavigationPolicy default_policy,
|
||||
bool is_redirect);
|
||||
@@ -39,10 +39,10 @@ index bc82ce6..b112107 100644
|
||||
// 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
|
||||
diff --git renderer/render_frame_impl.cc renderer/render_frame_impl.cc
|
||||
index 473b185..2d082b5 100644
|
||||
index 876e8ae..a5064a1 100644
|
||||
--- renderer/render_frame_impl.cc
|
||||
+++ renderer/render_frame_impl.cc
|
||||
@@ -3798,7 +3798,6 @@ void RenderFrameImpl::OnCommitNavigation(
|
||||
@@ -3954,7 +3954,6 @@ void RenderFrameImpl::OnCommitNavigation(
|
||||
WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
||||
RenderFrame* render_frame,
|
||||
const NavigationPolicyInfo& info) {
|
||||
@@ -50,7 +50,7 @@ index 473b185..2d082b5 100644
|
||||
// The handlenavigation API is deprecated and will be removed once
|
||||
// crbug.com/325351 is resolved.
|
||||
if (info.urlRequest.url() != GURL(kSwappedOutURL) &&
|
||||
@@ -3813,7 +3812,6 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
||||
@@ -3969,7 +3968,6 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
||||
info.isRedirect)) {
|
||||
return blink::WebNavigationPolicyIgnore;
|
||||
}
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git gyp/generator/ninja.py gyp/generator/ninja.py
|
||||
index 5cda5c3..bad5ca3 100644
|
||||
index 5407795..580aa54 100644
|
||||
--- gyp/generator/ninja.py
|
||||
+++ gyp/generator/ninja.py
|
||||
@@ -743,7 +743,16 @@ class NinjaWriter(object):
|
||||
@@ -747,7 +747,16 @@ class NinjaWriter(object):
|
||||
for path in copy['files']:
|
||||
# Normalize the path so trailing slashes don't confuse us.
|
||||
path = os.path.normpath(path)
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git message_loop.cc message_loop.cc
|
||||
index 8180733..927f755 100644
|
||||
index 24db543..d57673d 100644
|
||||
--- message_loop.cc
|
||||
+++ message_loop.cc
|
||||
@@ -148,7 +148,6 @@ MessageLoop::MessageLoop(scoped_ptr<MessagePump> pump)
|
||||
@@ -159,7 +159,6 @@ MessageLoop::MessageLoop(scoped_ptr<MessagePump> pump)
|
||||
MessageLoop::~MessageLoop() {
|
||||
DCHECK_EQ(this, current());
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git public/common/common_param_traits_macros.h public/common/common_param_traits_macros.h
|
||||
index a064d53..8abea71 100644
|
||||
index 4f59c26..69a7b34 100644
|
||||
--- public/common/common_param_traits_macros.h
|
||||
+++ public/common/common_param_traits_macros.h
|
||||
@@ -188,6 +188,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
||||
@@ -190,6 +190,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
||||
IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes)
|
||||
IPC_STRUCT_TRAITS_MEMBER(initialize_at_minimum_page_scale)
|
||||
IPC_STRUCT_TRAITS_MEMBER(smart_insert_delete_enabled)
|
||||
@@ -11,10 +11,10 @@ index a064d53..8abea71 100644
|
||||
IPC_STRUCT_TRAITS_MEMBER(navigate_on_drag_drop)
|
||||
IPC_STRUCT_TRAITS_MEMBER(spatial_navigation_enabled)
|
||||
diff --git public/common/web_preferences.cc public/common/web_preferences.cc
|
||||
index a5574d3..8e9e391 100644
|
||||
index 5563c00..4c24e35 100644
|
||||
--- public/common/web_preferences.cc
|
||||
+++ public/common/web_preferences.cc
|
||||
@@ -179,6 +179,7 @@ WebPreferences::WebPreferences()
|
||||
@@ -190,6 +190,7 @@ WebPreferences::WebPreferences()
|
||||
rubber_banding_on_compositor_thread(false),
|
||||
use_solid_color_scrollbars(false),
|
||||
navigate_on_drag_drop(true),
|
||||
@@ -23,10 +23,10 @@ index a5574d3..8e9e391 100644
|
||||
v8_script_streaming_enabled(false),
|
||||
v8_script_streaming_mode(V8_SCRIPT_STREAMING_MODE_ALL),
|
||||
diff --git public/common/web_preferences.h public/common/web_preferences.h
|
||||
index 78559f2..028a94e 100644
|
||||
index ab43cd9..a5b3022 100644
|
||||
--- public/common/web_preferences.h
|
||||
+++ public/common/web_preferences.h
|
||||
@@ -169,6 +169,7 @@ struct CONTENT_EXPORT WebPreferences {
|
||||
@@ -179,6 +179,7 @@ struct CONTENT_EXPORT WebPreferences {
|
||||
bool rubber_banding_on_compositor_thread;
|
||||
bool use_solid_color_scrollbars;
|
||||
bool navigate_on_drag_drop;
|
||||
@@ -35,10 +35,10 @@ index 78559f2..028a94e 100644
|
||||
bool v8_script_streaming_enabled;
|
||||
V8ScriptStreamingMode v8_script_streaming_mode;
|
||||
diff --git renderer/render_view_impl.cc renderer/render_view_impl.cc
|
||||
index 623cb14..5d21fc5 100644
|
||||
index 3be3eb3..23f9891 100644
|
||||
--- renderer/render_view_impl.cc
|
||||
+++ renderer/render_view_impl.cc
|
||||
@@ -958,6 +958,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
||||
@@ -956,6 +956,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
||||
|
||||
settings->setJavaEnabled(prefs.java_enabled);
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git content_browser_client.cc content_browser_client.cc
|
||||
index 91c8a4d..10c3b28 100644
|
||||
index 8f3d06c..e67e698 100644
|
||||
--- content_browser_client.cc
|
||||
+++ content_browser_client.cc
|
||||
@@ -278,6 +278,10 @@ bool ContentBrowserClient::IsFastShutdownPossible() {
|
||||
@@ -14,7 +14,7 @@ index 91c8a4d..10c3b28 100644
|
||||
return base::FilePath();
|
||||
}
|
||||
diff --git content_browser_client.h content_browser_client.h
|
||||
index 627353d..e1805f4 100644
|
||||
index d2ae7a0..a5b36d5 100644
|
||||
--- content_browser_client.h
|
||||
+++ content_browser_client.h
|
||||
@@ -28,6 +28,7 @@
|
||||
@@ -22,10 +22,10 @@ index 627353d..e1805f4 100644
|
||||
#include "net/url_request/url_request_job_factory.h"
|
||||
#include "storage/browser/fileapi/file_system_context.h"
|
||||
+#include "third_party/skia/include/core/SkColor.h"
|
||||
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
|
||||
#include "ui/base/window_open_disposition.h"
|
||||
|
||||
#if defined(OS_POSIX) && !defined(OS_MACOSX)
|
||||
@@ -499,6 +500,9 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||
@@ -509,6 +510,9 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||
// Clears browser cookies.
|
||||
virtual void ClearCookies(RenderViewHost* rvh) {}
|
||||
|
||||
@@ -36,33 +36,33 @@ index 627353d..e1805f4 100644
|
||||
// This can be called on any thread.
|
||||
virtual base::FilePath GetDefaultDownloadDirectory();
|
||||
diff --git web_contents.cc web_contents.cc
|
||||
index 7afc338..c014439 100644
|
||||
index 6768411..1dd382b 100644
|
||||
--- web_contents.cc
|
||||
+++ web_contents.cc
|
||||
@@ -17,7 +17,9 @@ WebContents::CreateParams::CreateParams(BrowserContext* context)
|
||||
main_frame_routing_id(MSG_ROUTING_NONE),
|
||||
initially_hidden(false),
|
||||
guest_delegate(NULL),
|
||||
- context(NULL) {}
|
||||
+ context(NULL),
|
||||
+ view(NULL),
|
||||
+ delegate_view(NULL) {}
|
||||
guest_delegate(nullptr),
|
||||
- context(nullptr) {}
|
||||
+ context(nullptr),
|
||||
+ view(nullptr),
|
||||
+ delegate_view(nullptr) {}
|
||||
|
||||
WebContents::CreateParams::CreateParams(
|
||||
BrowserContext* context, SiteInstance* site)
|
||||
@@ -29,7 +31,9 @@ WebContents::CreateParams::CreateParams(
|
||||
main_frame_routing_id(MSG_ROUTING_NONE),
|
||||
initially_hidden(false),
|
||||
guest_delegate(NULL),
|
||||
- context(NULL) {}
|
||||
+ context(NULL),
|
||||
+ view(NULL),
|
||||
+ delegate_view(NULL) {}
|
||||
guest_delegate(nullptr),
|
||||
- context(nullptr) {}
|
||||
+ context(nullptr),
|
||||
+ view(nullptr),
|
||||
+ delegate_view(nullptr) {}
|
||||
|
||||
WebContents::CreateParams::~CreateParams() {
|
||||
}
|
||||
diff --git web_contents.h web_contents.h
|
||||
index 87becd6..b66d3fb 100644
|
||||
index 879e8d8..0287912 100644
|
||||
--- web_contents.h
|
||||
+++ web_contents.h
|
||||
@@ -52,9 +52,11 @@ class PageState;
|
||||
@@ -79,7 +79,7 @@ index 87becd6..b66d3fb 100644
|
||||
struct Manifest;
|
||||
@@ -122,6 +124,10 @@ class WebContents : public PageNavigator,
|
||||
// Used to specify the location context which display the new view should
|
||||
// belong. This can be NULL if not needed.
|
||||
// belong. This can be nullptr if not needed.
|
||||
gfx::NativeView context;
|
||||
+
|
||||
+ // Optionally specify the view and delegate view.
|
||||
@@ -89,7 +89,7 @@ index 87becd6..b66d3fb 100644
|
||||
|
||||
// Creates a new WebContents.
|
||||
diff --git web_contents_delegate.cc web_contents_delegate.cc
|
||||
index e846041..da3c9e6 100644
|
||||
index 461927c..2217377 100644
|
||||
--- web_contents_delegate.cc
|
||||
+++ web_contents_delegate.cc
|
||||
@@ -137,7 +137,9 @@ bool WebContentsDelegate::ShouldCreateWebContents(
|
||||
@@ -104,7 +104,7 @@ index e846041..da3c9e6 100644
|
||||
}
|
||||
|
||||
diff --git web_contents_delegate.h web_contents_delegate.h
|
||||
index 344fbaf..adaa39d 100644
|
||||
index 13d1c1d..ddf88d8 100644
|
||||
--- web_contents_delegate.h
|
||||
+++ web_contents_delegate.h
|
||||
@@ -36,9 +36,11 @@ class DownloadItem;
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git render_process_host_impl.cc render_process_host_impl.cc
|
||||
index 656e995..aa3e239 100644
|
||||
index 37d745e..5723bdc 100644
|
||||
--- render_process_host_impl.cc
|
||||
+++ render_process_host_impl.cc
|
||||
@@ -2047,6 +2047,8 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead) {
|
||||
@@ -2065,6 +2065,8 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead,
|
||||
#endif
|
||||
RemoveUserData(kSessionStorageHolderKey);
|
||||
|
||||
@@ -11,7 +11,7 @@ index 656e995..aa3e239 100644
|
||||
IDMap<IPC::Listener>::iterator iter(&listeners_);
|
||||
while (!iter.IsAtEnd()) {
|
||||
iter.GetCurrentValue()->OnMessageReceived(
|
||||
@@ -2056,8 +2058,6 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead) {
|
||||
@@ -2074,8 +2076,6 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead,
|
||||
iter.Advance();
|
||||
}
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git core/frame/FrameView.cpp core/frame/FrameView.cpp
|
||||
index 61cf629..f734ee9 100644
|
||||
index 8719a5c..555d59d 100644
|
||||
--- core/frame/FrameView.cpp
|
||||
+++ core/frame/FrameView.cpp
|
||||
@@ -144,8 +144,10 @@ FrameView::FrameView(LocalFrame* frame)
|
||||
@@ -146,8 +146,10 @@ FrameView::FrameView(LocalFrame* frame)
|
||||
if (!m_frame->isMainFrame())
|
||||
return;
|
||||
|
||||
|
30
patch/patches/ui_webview_1257.patch
Normal file
30
patch/patches/ui_webview_1257.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff --git web_dialog_view.cc web_dialog_view.cc
|
||||
index 0bffda9..c584bc9 100644
|
||||
--- web_dialog_view.cc
|
||||
+++ web_dialog_view.cc
|
||||
@@ -339,7 +339,9 @@ bool WebDialogView::ShouldCreateWebContents(
|
||||
const base::string16& frame_name,
|
||||
const GURL& target_url,
|
||||
const std::string& partition_id,
|
||||
- content::SessionStorageNamespace* session_storage_namespace) {
|
||||
+ content::SessionStorageNamespace* session_storage_namespace,
|
||||
+ content::WebContentsView** view,
|
||||
+ content::RenderViewHostDelegateView** delegate_view) {
|
||||
if (delegate_)
|
||||
return delegate_->HandleShouldCreateWebContents();
|
||||
return true;
|
||||
diff --git web_dialog_view.h web_dialog_view.h
|
||||
index ce69cfc..a890771 100644
|
||||
--- web_dialog_view.h
|
||||
+++ web_dialog_view.h
|
||||
@@ -119,7 +119,9 @@ class WEBVIEW_EXPORT WebDialogView : public views::ClientView,
|
||||
const base::string16& frame_name,
|
||||
const GURL& target_url,
|
||||
const std::string& partition_id,
|
||||
- content::SessionStorageNamespace* session_storage_namespace) override;
|
||||
+ content::SessionStorageNamespace* session_storage_namespace,
|
||||
+ content::WebContentsView** view,
|
||||
+ content::RenderViewHostDelegateView** delegate_view) override;
|
||||
|
||||
private:
|
||||
FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered);
|
@@ -12,7 +12,7 @@ index a8e088c..838b6a0 100644
|
||||
return host ? host->GetAcceleratedWidget() : NULL;
|
||||
}
|
||||
diff --git desktop_aura/desktop_window_tree_host_win.cc desktop_aura/desktop_window_tree_host_win.cc
|
||||
index 1e8d67d..34b535a 100644
|
||||
index b54a643..5a589e5 100644
|
||||
--- desktop_aura/desktop_window_tree_host_win.cc
|
||||
+++ desktop_aura/desktop_window_tree_host_win.cc
|
||||
@@ -133,7 +133,9 @@ void DesktopWindowTreeHostWin::Init(aura::Window* content_window,
|
||||
@@ -43,10 +43,10 @@ index 1e8d67d..34b535a 100644
|
||||
if (input_method)
|
||||
input_method->OnBlur();
|
||||
diff --git desktop_aura/desktop_window_tree_host_x11.cc desktop_aura/desktop_window_tree_host_x11.cc
|
||||
index 54d67ad..13e5163 100644
|
||||
index 80008cf..46ea712 100644
|
||||
--- desktop_aura/desktop_window_tree_host_x11.cc
|
||||
+++ desktop_aura/desktop_window_tree_host_x11.cc
|
||||
@@ -152,7 +152,8 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
@@ -153,7 +153,8 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
window_shape_(NULL),
|
||||
custom_window_shape_(false),
|
||||
urgency_hint_set_(false),
|
||||
@@ -118,7 +118,7 @@ index 54d67ad..13e5163 100644
|
||||
bounds_.x(), bounds_.y(),
|
||||
bounds_.width(), bounds_.height(),
|
||||
0, // border width
|
||||
@@ -1698,6 +1712,10 @@ uint32_t DesktopWindowTreeHostX11::DispatchEvent(
|
||||
@@ -1699,6 +1713,10 @@ uint32_t DesktopWindowTreeHostX11::DispatchEvent(
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -163,7 +163,7 @@ index d6b5cc8..bf20d4c 100644
|
||||
};
|
||||
|
||||
diff --git widget.cc widget.cc
|
||||
index a24f781..52a1755 100644
|
||||
index 76dc14a..8c40f67 100644
|
||||
--- widget.cc
|
||||
+++ widget.cc
|
||||
@@ -109,6 +109,7 @@ Widget::InitParams::InitParams()
|
||||
@@ -206,7 +206,7 @@ index a24f781..52a1755 100644
|
||||
// This must come after SetContentsView() or it might not be able to find
|
||||
// the correct NativeTheme (on Linux). See http://crbug.com/384492
|
||||
diff --git widget.h widget.h
|
||||
index e0f6180..25f557f 100644
|
||||
index 06bd491..ed3893e 100644
|
||||
--- widget.h
|
||||
+++ widget.h
|
||||
@@ -235,6 +235,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git Source/web/ChromeClientImpl.cpp Source/web/ChromeClientImpl.cpp
|
||||
index 781c45a..0fda8bf 100644
|
||||
index 0f36f75..b6dd8de 100644
|
||||
--- Source/web/ChromeClientImpl.cpp
|
||||
+++ Source/web/ChromeClientImpl.cpp
|
||||
@@ -741,7 +741,7 @@ bool ChromeClientImpl::hasOpenedPopup() const
|
||||
@@ -740,7 +740,7 @@ bool ChromeClientImpl::hasOpenedPopup() const
|
||||
|
||||
PassRefPtrWillBeRawPtr<PopupMenu> ChromeClientImpl::createPopupMenu(LocalFrame& frame, PopupMenuClient* client)
|
||||
{
|
||||
@@ -12,10 +12,10 @@ index 781c45a..0fda8bf 100644
|
||||
|
||||
return adoptRefWillBeNoop(new PopupMenuChromium(frame, client));
|
||||
diff --git Source/web/WebViewImpl.cpp Source/web/WebViewImpl.cpp
|
||||
index 8ee7335..4e2384d 100644
|
||||
index 06e1c3e..95b7405 100644
|
||||
--- Source/web/WebViewImpl.cpp
|
||||
+++ Source/web/WebViewImpl.cpp
|
||||
@@ -379,6 +379,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
|
||||
@@ -380,6 +380,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
|
||||
, m_fakePageScaleAnimationPageScaleFactor(0)
|
||||
, m_fakePageScaleAnimationUseAnchor(false)
|
||||
, m_contextMenuAllowed(false)
|
||||
@@ -23,8 +23,8 @@ index 8ee7335..4e2384d 100644
|
||||
, m_doingDragAndDrop(false)
|
||||
, m_ignoreInputEvents(false)
|
||||
, m_compositorDeviceScaleFactorOverride(0)
|
||||
@@ -3974,9 +3975,14 @@ void WebViewImpl::deviceOrPageScaleFactorChanged()
|
||||
m_page->inspectorController().deviceOrPageScaleFactorChanged();
|
||||
@@ -4059,9 +4060,14 @@ void WebViewImpl::pageScaleFactorChanged()
|
||||
m_page->inspectorController().pageScaleFactorChanged();
|
||||
}
|
||||
|
||||
+void WebViewImpl::setUseExternalPopupMenusThisInstance(bool useExternalPopupMenus)
|
||||
@@ -40,10 +40,10 @@ index 8ee7335..4e2384d 100644
|
||||
|
||||
void WebViewImpl::startDragging(LocalFrame* frame,
|
||||
diff --git Source/web/WebViewImpl.h Source/web/WebViewImpl.h
|
||||
index 5264cf5..f49be43 100644
|
||||
index 7474465..580783f 100644
|
||||
--- Source/web/WebViewImpl.h
|
||||
+++ Source/web/WebViewImpl.h
|
||||
@@ -370,7 +370,8 @@ public:
|
||||
@@ -383,7 +383,8 @@ public:
|
||||
|
||||
// Returns true if popup menus should be rendered by the browser, false if
|
||||
// they should be rendered by WebKit (which is the default).
|
||||
@@ -53,7 +53,7 @@ index 5264cf5..f49be43 100644
|
||||
|
||||
bool contextMenuAllowed() const
|
||||
{
|
||||
@@ -662,6 +663,8 @@ private:
|
||||
@@ -676,6 +677,8 @@ private:
|
||||
|
||||
bool m_contextMenuAllowed;
|
||||
|
||||
@@ -63,10 +63,10 @@ index 5264cf5..f49be43 100644
|
||||
|
||||
bool m_ignoreInputEvents;
|
||||
diff --git public/web/WebView.h public/web/WebView.h
|
||||
index dd5fa13..84a1e5e 100644
|
||||
index 1273aaa..b5d388e 100644
|
||||
--- public/web/WebView.h
|
||||
+++ public/web/WebView.h
|
||||
@@ -405,6 +405,7 @@ public:
|
||||
@@ -407,6 +407,7 @@ public:
|
||||
|
||||
// Sets whether select popup menus should be rendered by the browser.
|
||||
BLINK_EXPORT static void setUseExternalPopupMenus(bool);
|
||||
|
Reference in New Issue
Block a user