]> khamidou — GitHub mirrors - electron.git/commitdiff
Create a method to signal our Observer method
authorPaul Betts <paul@paulbetts.org>
Thu, 18 Jun 2015 00:15:52 +0000 (17:15 -0700)
committerPaul Betts <paul@paulbetts.org>
Thu, 25 Jun 2015 17:29:21 +0000 (11:29 -0600)
atom/browser/native_window.cc
atom/browser/native_window.h

index df717c8dec982599feb81e5b5a3b4c233d6d6c9e..b49f2978ed2bbf22f86c2c344b4a6530b98777ef 100644 (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) {
index 4441726e339640eab796d44ec597bfef9cb057b0..4f302f83209263945e5ee4927195b587375a2de7 100644 (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);