Append command line for renderer in NativeWindow.

This commit is contained in:
Cheng Zhao 2014-03-06 10:40:10 +08:00
parent 1b3e6bdb92
commit 686493e8ec
3 changed files with 15 additions and 6 deletions

View file

@ -19,6 +19,8 @@
#include "vendor/brightray/browser/inspectable_web_contents_delegate.h"
#include "vendor/brightray/browser/inspectable_web_contents_impl.h"
class CommandLine;
namespace base {
class DictionaryValue;
class ListValue;
@ -160,6 +162,10 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
content::WebContents* GetWebContents() const;
content::WebContents* GetDevToolsWebContents() const;
// Called when renderer process is going to be started.
void AppendExtraCommandLineSwitches(CommandLine* command_line,
int child_process_id);
void AddObserver(NativeWindowObserver* obs) {
observers_.AddObserver(obs);
}
@ -169,7 +175,6 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
}
bool has_frame() const { return has_frame_; }
std::string node_integration() const { return node_integration_; }
void set_has_dialog_attached(bool has_dialog_attached) {
has_dialog_attached_ = has_dialog_attached;