Fix building on Windows
This commit is contained in:
parent
e6f3c4c22b
commit
637b642837
4 changed files with 11 additions and 11 deletions
|
@ -37,7 +37,7 @@ v8::Local<v8::Object> CreateEventObject(v8::Isolate* isolate) {
|
||||||
EventEmitter::EventEmitter() {
|
EventEmitter::EventEmitter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
v8::Local<v8::Object> EventEmitter::CreateEvent(v8::Isolate* isolate,
|
v8::Local<v8::Object> EventEmitter::CreateJSEvent(v8::Isolate* isolate,
|
||||||
content::WebContents* sender,
|
content::WebContents* sender,
|
||||||
IPC::Message* message) {
|
IPC::Message* message) {
|
||||||
v8::Local<v8::Object> event;
|
v8::Local<v8::Object> event;
|
||||||
|
|
|
@ -39,7 +39,7 @@ class EventEmitter : public Wrappable {
|
||||||
const Args&... args) {
|
const Args&... args) {
|
||||||
v8::Locker locker(isolate());
|
v8::Locker locker(isolate());
|
||||||
v8::HandleScope handle_scope(isolate());
|
v8::HandleScope handle_scope(isolate());
|
||||||
v8::Local<v8::Object> event = CreateEvent(isolate(), sender, message);
|
v8::Local<v8::Object> event = CreateJSEvent(isolate(), sender, message);
|
||||||
EmitEvent(isolate(), GetWrapper(isolate()), name, event, args...);
|
EmitEvent(isolate(), GetWrapper(isolate()), name, event, args...);
|
||||||
return event->Get(
|
return event->Get(
|
||||||
StringToV8(isolate(), "defaultPrevented"))->BooleanValue();
|
StringToV8(isolate(), "defaultPrevented"))->BooleanValue();
|
||||||
|
@ -49,7 +49,7 @@ class EventEmitter : public Wrappable {
|
||||||
EventEmitter();
|
EventEmitter();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
v8::Local<v8::Object> CreateEvent(v8::Isolate* isolate,
|
v8::Local<v8::Object> CreateJSEvent(v8::Isolate* isolate,
|
||||||
content::WebContents* sender,
|
content::WebContents* sender,
|
||||||
IPC::Message* message);
|
IPC::Message* message);
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "base/memory/scoped_ptr.h"
|
#include "base/memory/scoped_ptr.h"
|
||||||
|
#include "content/public/browser/client_certificate_delegate.h"
|
||||||
|
|
||||||
namespace content {
|
namespace content {
|
||||||
class ClientCertificateDelegate;
|
|
||||||
class WebContents;
|
class WebContents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -248,6 +248,9 @@ class NativeWindow : public content::WebContentsObserver,
|
||||||
// Window icon.
|
// Window icon.
|
||||||
gfx::ImageSkia icon_;
|
gfx::ImageSkia icon_;
|
||||||
|
|
||||||
|
// Observers of this window.
|
||||||
|
ObserverList<NativeWindowObserver> observers_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Schedule a notification unresponsive event.
|
// Schedule a notification unresponsive event.
|
||||||
void ScheduleUnresponsiveEvent(int ms);
|
void ScheduleUnresponsiveEvent(int ms);
|
||||||
|
@ -260,9 +263,6 @@ class NativeWindow : public content::WebContentsObserver,
|
||||||
const SkBitmap& bitmap,
|
const SkBitmap& bitmap,
|
||||||
content::ReadbackResponse response);
|
content::ReadbackResponse response);
|
||||||
|
|
||||||
// Observers of this window.
|
|
||||||
ObserverList<NativeWindowObserver> observers_;
|
|
||||||
|
|
||||||
// The windows has been closed.
|
// The windows has been closed.
|
||||||
bool is_closed_;
|
bool is_closed_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue