mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 234212
- The CefBrowserSettings.user_style_sheet_location option is no longer supported in Blink. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1516 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
||||||
'chromium_revision': '233896',
|
'chromium_revision': '234212',
|
||||||
}
|
}
|
||||||
|
@@ -372,14 +372,6 @@ typedef struct _cef_browser_settings_t {
|
|||||||
///
|
///
|
||||||
cef_string_t default_encoding;
|
cef_string_t default_encoding;
|
||||||
|
|
||||||
///
|
|
||||||
// Location of the user style sheet that will be used for all pages. This must
|
|
||||||
// be a data URL of the form "data:text/css;charset=utf-8;base64,csscontent"
|
|
||||||
// where "csscontent" is the base64 encoded contents of the CSS file. Also
|
|
||||||
// configurable using the "user-style-sheet-location" command-line switch.
|
|
||||||
///
|
|
||||||
cef_string_t user_style_sheet_location;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
// Controls the loading of fonts from remote sources. Also configurable using
|
// Controls the loading of fonts from remote sources. Also configurable using
|
||||||
// the "disable-remote-fonts" command-line switch.
|
// the "disable-remote-fonts" command-line switch.
|
||||||
|
@@ -400,7 +400,6 @@ struct CefBrowserSettingsTraits {
|
|||||||
cef_string_clear(&s->cursive_font_family);
|
cef_string_clear(&s->cursive_font_family);
|
||||||
cef_string_clear(&s->fantasy_font_family);
|
cef_string_clear(&s->fantasy_font_family);
|
||||||
cef_string_clear(&s->default_encoding);
|
cef_string_clear(&s->default_encoding);
|
||||||
cef_string_clear(&s->user_style_sheet_location);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void set(const struct_type* src, struct_type* target,
|
static inline void set(const struct_type* src, struct_type* target,
|
||||||
@@ -427,10 +426,6 @@ struct CefBrowserSettingsTraits {
|
|||||||
cef_string_set(src->default_encoding.str, src->default_encoding.length,
|
cef_string_set(src->default_encoding.str, src->default_encoding.length,
|
||||||
&target->default_encoding, copy);
|
&target->default_encoding, copy);
|
||||||
|
|
||||||
cef_string_set(src->user_style_sheet_location.str,
|
|
||||||
src->user_style_sheet_location.length,
|
|
||||||
&target->user_style_sheet_location, copy);
|
|
||||||
|
|
||||||
target->remote_fonts = src->remote_fonts;
|
target->remote_fonts = src->remote_fonts;
|
||||||
target->javascript = src->javascript;
|
target->javascript = src->javascript;
|
||||||
target->javascript_open_windows = src->javascript_open_windows;
|
target->javascript_open_windows = src->javascript_open_windows;
|
||||||
|
@@ -22,13 +22,6 @@ void SetDefaults(WebPreferences& web) {
|
|||||||
command_line.GetSwitchValueASCII(switches::kDefaultEncoding);
|
command_line.GetSwitchValueASCII(switches::kDefaultEncoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command_line.HasSwitch(switches::kUserStyleSheetLocation)) {
|
|
||||||
web.user_style_sheet_location = GURL(
|
|
||||||
command_line.GetSwitchValueASCII(switches::kUserStyleSheetLocation));
|
|
||||||
if (!web.user_style_sheet_location.is_empty())
|
|
||||||
web.user_style_sheet_enabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
web.javascript_can_open_windows_automatically =
|
web.javascript_can_open_windows_automatically =
|
||||||
!command_line.HasSwitch(switches::kDisableJavascriptOpenWindows);
|
!command_line.HasSwitch(switches::kDisableJavascriptOpenWindows);
|
||||||
web.allow_scripts_to_close_windows =
|
web.allow_scripts_to_close_windows =
|
||||||
@@ -102,12 +95,6 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web) {
|
|||||||
if (cef.default_encoding.length > 0)
|
if (cef.default_encoding.length > 0)
|
||||||
web.default_encoding = CefString(&cef.default_encoding);
|
web.default_encoding = CefString(&cef.default_encoding);
|
||||||
|
|
||||||
if (cef.user_style_sheet_location.length > 0) {
|
|
||||||
web.user_style_sheet_enabled = true;
|
|
||||||
web.user_style_sheet_location =
|
|
||||||
GURL(CefString(&cef.user_style_sheet_location).ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
SET_STATE(cef.remote_fonts, web.remote_fonts_enabled);
|
SET_STATE(cef.remote_fonts, web.remote_fonts_enabled);
|
||||||
SET_STATE(cef.javascript, web.javascript_enabled);
|
SET_STATE(cef.javascript, web.javascript_enabled);
|
||||||
SET_STATE(cef.javascript_open_windows,
|
SET_STATE(cef.javascript_open_windows,
|
||||||
|
@@ -28,7 +28,6 @@
|
|||||||
#include "content/public/common/content_switches.h"
|
#include "content/public/common/content_switches.h"
|
||||||
#include "content/public/common/url_constants.h"
|
#include "content/public/common/url_constants.h"
|
||||||
#include "grit/cef_resources.h"
|
#include "grit/cef_resources.h"
|
||||||
#include "net/base/escape.h"
|
|
||||||
#include "net/socket/tcp_listen_socket.h"
|
#include "net/socket/tcp_listen_socket.h"
|
||||||
#include "ui/base/layout.h"
|
#include "ui/base/layout.h"
|
||||||
#include "ui/base/resource/resource_bundle.h"
|
#include "ui/base/resource/resource_bundle.h"
|
||||||
@@ -74,7 +73,7 @@ Target::Target(content::WebContents* web_contents) {
|
|||||||
content::DevToolsAgentHost::GetOrCreateFor(
|
content::DevToolsAgentHost::GetOrCreateFor(
|
||||||
web_contents->GetRenderViewHost());
|
web_contents->GetRenderViewHost());
|
||||||
id_ = agent_host_->GetId();
|
id_ = agent_host_->GetId();
|
||||||
title_ = UTF16ToUTF8(net::EscapeForHTML(web_contents->GetTitle()));
|
title_ = UTF16ToUTF8(web_contents->GetTitle());
|
||||||
url_ = web_contents->GetURL();
|
url_ = web_contents->GetURL();
|
||||||
content::NavigationController& controller = web_contents->GetController();
|
content::NavigationController& controller = web_contents->GetController();
|
||||||
content::NavigationEntry* entry = controller.GetActiveEntry();
|
content::NavigationEntry* entry = controller.GetActiveEntry();
|
||||||
|
@@ -39,9 +39,6 @@ const char kContextSafetyImplementation[] = "context-safety-implementation";
|
|||||||
// Default encoding.
|
// Default encoding.
|
||||||
const char kDefaultEncoding[] = "default-encoding";
|
const char kDefaultEncoding[] = "default-encoding";
|
||||||
|
|
||||||
// User style sheet location.
|
|
||||||
const char kUserStyleSheetLocation[] = "user-style-sheet-location";
|
|
||||||
|
|
||||||
// Disable opening of windows via JavaScript.
|
// Disable opening of windows via JavaScript.
|
||||||
const char kDisableJavascriptOpenWindows[] =
|
const char kDisableJavascriptOpenWindows[] =
|
||||||
"disable-javascript-open-windows";
|
"disable-javascript-open-windows";
|
||||||
|
@@ -25,7 +25,6 @@ extern const char kDisablePackLoading[];
|
|||||||
extern const char kUncaughtExceptionStackSize[];
|
extern const char kUncaughtExceptionStackSize[];
|
||||||
extern const char kContextSafetyImplementation[];
|
extern const char kContextSafetyImplementation[];
|
||||||
extern const char kDefaultEncoding[];
|
extern const char kDefaultEncoding[];
|
||||||
extern const char kUserStyleSheetLocation[];
|
|
||||||
extern const char kDisableJavascriptOpenWindows[];
|
extern const char kDisableJavascriptOpenWindows[];
|
||||||
extern const char kDisableJavascriptCloseWindows[];
|
extern const char kDisableJavascriptCloseWindows[];
|
||||||
extern const char kDisableJavascriptAccessClipboard[];
|
extern const char kDisableJavascriptAccessClipboard[];
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
Index: public/web/WebView.h
|
Index: public/web/WebView.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- public/web/WebView.h (revision 161588)
|
--- public/web/WebView.h (revision 161696)
|
||||||
+++ public/web/WebView.h (working copy)
|
+++ public/web/WebView.h (working copy)
|
||||||
@@ -443,6 +443,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,7 +12,7 @@ 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 161588)
|
--- Source/web/ChromeClientImpl.cpp (revision 161696)
|
||||||
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
||||||
@@ -871,7 +871,7 @@
|
@@ -871,7 +871,7 @@
|
||||||
|
|
||||||
@@ -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 161588)
|
--- Source/web/WebViewImpl.cpp (revision 161696)
|
||||||
+++ Source/web/WebViewImpl.cpp (working copy)
|
+++ Source/web/WebViewImpl.cpp (working copy)
|
||||||
@@ -403,6 +403,7 @@
|
@@ -390,6 +390,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)
|
||||||
@@ -3714,9 +3715,14 @@
|
@@ -3693,9 +3694,14 @@
|
||||||
updateLayerTreeViewport();
|
updateLayerTreeViewport();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ 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 161588)
|
--- Source/web/WebViewImpl.h (revision 161696)
|
||||||
+++ Source/web/WebViewImpl.h (working copy)
|
+++ Source/web/WebViewImpl.h (working copy)
|
||||||
@@ -414,7 +414,8 @@
|
@@ -414,7 +414,8 @@
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user