Move BrowserPluginGuestDelegate to a separate class
This commit is contained in:
parent
9974a238c2
commit
b2a8678c47
6 changed files with 322 additions and 223 deletions
|
@ -25,9 +25,6 @@ class EventEmitter : public Wrappable {
|
|||
public:
|
||||
typedef std::vector<v8::Local<v8::Value>> ValueArray;
|
||||
|
||||
protected:
|
||||
EventEmitter();
|
||||
|
||||
// this.emit(name, new Event(), args...);
|
||||
template<typename... Args>
|
||||
bool Emit(const base::StringPiece& name, const Args&... args) {
|
||||
|
@ -48,6 +45,9 @@ class EventEmitter : public Wrappable {
|
|||
StringToV8(isolate(), "defaultPrevented"))->BooleanValue();
|
||||
}
|
||||
|
||||
protected:
|
||||
EventEmitter();
|
||||
|
||||
private:
|
||||
v8::Local<v8::Object> CreateEvent(v8::Isolate* isolate,
|
||||
content::WebContents* sender,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue