#include "base/message_loop/message_loop.h"
#include "base/strings/sys_string_conversions.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
#include "atom/common/node_includes.h"
// Show the menu.
[NSMenu popUpContextMenu:[menu_controller menu]
withEvent:clickEvent
- forView:web_contents->GetView()->GetContentNativeView()];
+ forView:web_contents->GetContentNativeView()];
}
// static
#include "atom/common/native_mate_converters/string16_converter.h"
#include "atom/common/native_mate_converters/value_converter.h"
#include "base/strings/utf_string_conversions.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
return handled;
}
-void WebContents::WebContentsDestroyed(content::WebContents*) {
+void WebContents::WebContentsDestroyed() {
// The RenderViewDeleted was not called when the WebContents is destroyed.
RenderViewDeleted(web_contents_->GetRenderViewHost());
Emit("destroyed");
}
void WebContents::ExecuteJavaScript(const base::string16& code) {
- web_contents()->GetRenderViewHost()->ExecuteJavascriptInWebFrame(
- base::string16(), code);
+ web_contents()->GetMainFrame()->ExecuteJavaScript(code);
}
bool WebContents::SendIPCMessage(const base::string16& channel,
virtual void DidStopLoading(
content::RenderViewHost* render_view_host) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void WebContentsDestroyed(content::WebContents*) OVERRIDE;
+ virtual void WebContentsDestroyed() OVERRIDE;
private:
// Called when received a message from renderer.
Observe(sender);
}
-void Event::WebContentsDestroyed(content::WebContents* web_contents) {
+void Event::WebContentsDestroyed() {
sender_ = NULL;
message_ = NULL;
}
virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate);
// content::WebContentsObserver implementations:
- virtual void WebContentsDestroyed(content::WebContents*) OVERRIDE;
+ virtual void WebContentsDestroyed() OVERRIDE;
private:
// Replyer for the synchronous messages.
}
void AtomBrowserMainParts::InitProxyResolverV8() {
- // Since we are integrating node in browser, we can just be sure that an
- // V8 instance would be prepared, while the ProxyResolverV8::CreateIsolate()
- // would try to create a V8 isolate, which messed everything on Windows, so
- // we have to override and call RememberDefaultIsolate on Windows instead.
- net::ProxyResolverV8::RememberDefaultIsolate();
+ brightray::BrowserMainParts::InitProxyResolverV8();
}
void AtomBrowserMainParts::PostEarlyInitialization() {
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
-#include "content/public/browser/web_contents_view.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/user_agent.h"
#include "ipc/ipc_message_macros.h"
ScheduleUnresponsiveEvent(5000);
if (web_contents->NeedToFireBeforeUnload())
- web_contents->GetMainFrame()->DispatchBeforeUnload(false);
+ web_contents->DispatchBeforeUnload(false);
else
web_contents->Close();
}
prefs->experimental_webgl_enabled = b;
if (web_preferences.Get("webaudio", &b))
prefs->webaudio_enabled = b;
- if (web_preferences.Get("accelerated-compositing", &b))
- prefs->accelerated_compositing_enabled = b;
if (web_preferences.Get("plugins", &b))
prefs->plugins_enabled = b;
if (web_preferences.Get("extra-plugin-dirs", &list))
#include "base/strings/sys_string_conversions.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "native_mate/dictionary.h"
if (!web_contents)
return;
- web_contents->GetView()->RestoreFocus();
+ web_contents->RestoreFocus();
content::RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
if (rwhv)
if (!web_contents)
return;
- web_contents->GetView()->StoreFocus();
+ web_contents->StoreFocus();
content::RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
if (rwhv)
bool NativeWindowMac::IsWithinDraggableRegion(NSPoint point) const {
if (!draggable_region_)
return false;
- NSView* webView = GetWebContents()->GetView()->GetNativeView();
+ NSView* webView = GetWebContents()->GetNativeView();
NSInteger webViewHeight = NSHeight([webView bounds]);
// |draggable_region_| is stored in local platform-indepdent coordiate system
// while |point| is in local Cocoa coordinate system. Do the conversion
}
void NativeWindowMac::ClipWebView() {
- NSView* view = GetWebContents()->GetView()->GetNativeView();
+ NSView* view = GetWebContents()->GetNativeView();
view.wantsLayer = YES;
view.layer.masksToBounds = YES;
// All ControlRegionViews should be added as children of the WebContentsView,
// because WebContentsView will be removed and re-added when entering and
// leaving fullscreen mode.
- NSView* webView = GetWebContents()->GetView()->GetNativeView();
+ NSView* webView = GetWebContents()->GetNativeView();
NSInteger webViewHeight = NSHeight([webView bounds]);
// Remove all ControlRegionViews that are added last time.
const std::vector<DraggableRegion>& regions) {
// We still need one ControlRegionView to cover the whole window such that
// mouse events could be captured.
- NSView* web_view = GetWebContents()->GetView()->GetNativeView();
+ NSView* web_view = GetWebContents()->GetNativeView();
gfx::Rect window_bounds(
0, 0, NSWidth([web_view bounds]), NSHeight([web_view bounds]));
system_drag_exclude_areas_.clear();
#include "base/strings/utf_string_conversions.h"
#include "browser/inspectable_web_contents_view.h"
#include "content/public/browser/native_web_keyboard_event.h"
-#include "content/public/browser/web_contents_view.h"
#include "native_mate/dictionary.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
bool StringToAccelerator(const std::string& description,
ui::Accelerator* accelerator) {
- if (!IsStringASCII(description)) {
+ if (!base::IsStringASCII(description)) {
LOG(ERROR) << "The accelerator string can only contain ASCII characters";
return false;
}
#ifndef ATOM_COMMON_CHROME_VERSION_H_
#define ATOM_COMMON_CHROME_VERSION_H_
-#define CHROME_VERSION_STRING "35.0.1916.153"
+#define CHROME_VERSION_STRING "36.0.1985.125"
#define CHROME_VERSION "v" CHROME_VERSION_STRING
#endif // ATOM_COMMON_CHROME_VERSION_H_
#include "atom/common/native_mate_converters/value_converter.h"
#include "content/public/renderer/render_view.h"
#include "native_mate/dictionary.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "atom/common/node_includes.h"
using content::RenderView;
-using blink::WebFrame;
+using blink::WebLocalFrame;
using blink::WebView;
namespace {
RenderView* GetCurrentRenderView() {
- WebFrame* frame = WebFrame::frameForCurrentContext();
+ WebLocalFrame* frame = WebLocalFrame::frameForCurrentContext();
if (!frame)
return NULL;
#include "native_mate/dictionary.h"
#include "native_mate/object_template_builder.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "atom/common/node_includes.h"
namespace {
blink::WebView* GetCurrentWebView() {
- blink::WebFrame* frame = blink::WebFrame::frameForCurrentContext();
+ blink::WebLocalFrame* frame = blink::WebLocalFrame::frameForCurrentContext();
if (!frame)
return NULL;
return frame->view();
#include "third_party/WebKit/public/web/WebDraggableRegion.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "atom/common/node_includes.h"
AtomRenderViewObserver::~AtomRenderViewObserver() {
}
-void AtomRenderViewObserver::DidCreateDocumentElement(blink::WebFrame* frame) {
+void AtomRenderViewObserver::DidCreateDocumentElement(
+ blink::WebLocalFrame* frame) {
// Read --zoom-factor from command line.
std::string zoom_factor_str = CommandLine::ForCurrentProcess()->
GetSwitchValueASCII(switches::kZoomFactor);;
private:
// content::RenderViewObserver implementation.
- virtual void DidCreateDocumentElement(blink::WebFrame* frame) OVERRIDE;
+ virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) OVERRIDE;
virtual void DraggableRegionsChanged(blink::WebFrame* frame) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
* `text-areas-are-resizable` Boolean
* `webgl` Boolean
* `webaudio` Boolean
- * `accelerated-compositing` Boolean
* `plugins` Boolean - Whether plugins should be enabled, currently only
`NPAPI` plugins are supported.
* `extra-plugin-dirs` Array - Array of paths that would be searched for
-Subproject commit 04ecc57b5bb2f6d015b673d5b17affdce1039ff1
+Subproject commit 6c2709003cb0d06ca105c5cb86ea9f6d666261c3
-Subproject commit 4d2db275a386b68e3c22ce87ca0c19fddae139e8
+Subproject commit 6d772c3cda0bb8270857397e128ea1e36c361125