Rename CloseWebContents to RequestToClosePage
This commit is contained in:
parent
e41b0d4d2c
commit
62c44ee47b
4 changed files with 13 additions and 15 deletions
|
@ -315,7 +315,14 @@ void NativeWindow::CapturePage(const gfx::Rect& rect,
|
|||
kBGRA_8888_SkColorType);
|
||||
}
|
||||
|
||||
void NativeWindow::CloseWebContents() {
|
||||
content::WebContents* NativeWindow::GetWebContents() const {
|
||||
if (inspectable_web_contents_)
|
||||
return inspectable_web_contents_->GetWebContents();
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void NativeWindow::RequestToClosePage() {
|
||||
bool prevent_default = false;
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||
observers_,
|
||||
|
@ -344,13 +351,6 @@ void NativeWindow::CloseWebContents() {
|
|||
web_contents->Close();
|
||||
}
|
||||
|
||||
content::WebContents* NativeWindow::GetWebContents() const {
|
||||
if (inspectable_web_contents_)
|
||||
return inspectable_web_contents_->GetWebContents();
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void NativeWindow::AppendExtraCommandLineSwitches(
|
||||
base::CommandLine* command_line) {
|
||||
// Append --node-integration to renderer process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue