Create a method to signal our Observer method
This commit is contained in:
parent
d98cece115
commit
37d18d512b
2 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue