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 df717c8..b49f297 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 4441726..4f302f8 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);