Add API messages for IPC.
This commit is contained in:
parent
683087fbc4
commit
993cf1cc61
6 changed files with 84 additions and 0 deletions
|
@ -32,6 +32,9 @@ NativeWindow::NativeWindow(content::WebContents* web_contents,
|
|||
web_contents->SetDelegate(this);
|
||||
|
||||
// Add window as an observer of the web contents.
|
||||
content::WebContentsObserver::Observe(web_contents);
|
||||
|
||||
// Get notified of title updated message.
|
||||
registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED,
|
||||
content::Source<content::WebContents>(web_contents));
|
||||
}
|
||||
|
@ -125,6 +128,10 @@ void NativeWindow::WebContentsCreated(
|
|||
window->InitFromOptions(options.get());
|
||||
}
|
||||
|
||||
bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void NativeWindow::Observe(int type,
|
||||
const content::NotificationSource& source,
|
||||
const content::NotificationDetails& details) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue