mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Move to a unified thread model for CEF based on the CEF2 implementation.
- Add the ability to post user-defined tasks for execution on CEF threads (issue #25). - Update the CEF swap image. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@90 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "browser_appcache_system.h"
|
||||
#include "browser_impl.h"
|
||||
#include "browser_navigation_controller.h"
|
||||
#include "context.h"
|
||||
#include "cef_context.h"
|
||||
#include "request_impl.h"
|
||||
#include "v8_impl.h"
|
||||
|
||||
@@ -126,13 +126,13 @@ int next_page_id_ = 1;
|
||||
// WebViewDelegate -----------------------------------------------------------
|
||||
|
||||
void BrowserWebViewDelegate::SetUserStyleSheetEnabled(bool is_enabled) {
|
||||
WebPreferences* prefs = _Context->GetWebPreferences();
|
||||
WebPreferences* prefs = _Context->web_preferences();
|
||||
prefs->user_style_sheet_enabled = is_enabled;
|
||||
prefs->Apply(browser_->GetWebView());
|
||||
}
|
||||
|
||||
void BrowserWebViewDelegate::SetUserStyleSheetLocation(const GURL& location) {
|
||||
WebPreferences* prefs = _Context->GetWebPreferences();
|
||||
WebPreferences* prefs = _Context->web_preferences();
|
||||
prefs->user_style_sheet_enabled = true;
|
||||
prefs->user_style_sheet_location = location;
|
||||
prefs->Apply(browser_->GetWebView());
|
||||
|
Reference in New Issue
Block a user