Create a method to signal our Observer method

This commit is contained in:
Paul Betts 2015-06-17 17:15:52 -07:00
parent d98cece115
commit 37d18d512b
2 changed files with 6 additions and 0 deletions

View file

@ -580,6 +580,11 @@ void NativeWindow::NotifyWindowUnresponsive() {
OnRendererUnresponsive());
}
void NativeWindow::NotifyExecuteWindowsCommand(int command_id) {
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnExecuteWindowsCommand(command_id));
}
void NativeWindow::OnCapturePageDone(const CapturePageCallback& callback,
const SkBitmap& bitmap,
content::ReadbackResponse response) {

View file

@ -198,6 +198,7 @@ class NativeWindow : public content::WebContentsObserver,
void NotifyWindowLeaveFullScreen();
void NotifyWindowEnterHtmlFullScreen();
void NotifyWindowLeaveHtmlFullScreen();
void NotifyExecuteWindowsCommand(int command_id);
void AddObserver(NativeWindowObserver* obs) {
observers_.AddObserver(obs);