Use new NativeWindowObserver helper

This commit is contained in:
Kevin Sawicki 2017-02-27 09:20:25 -08:00
parent ba3fbc9d1b
commit 2a00bb30c5

View file

@ -576,11 +576,11 @@ void NativeWindow::NotifyWindowExecuteWindowsCommand(
} }
void NativeWindow::NotifyTouchBarItemInteraction( void NativeWindow::NotifyTouchBarItemInteraction(
const std::string& type, const std::string& type,
const std::vector<std::string>& args) { const std::vector<std::string>& args) {
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, for (NativeWindowObserver& observer : observers_)
OnTouchBarItemResult(type, args)); observer.OnTouchBarItemResult(type, args);
} }
#if defined(OS_WIN) #if defined(OS_WIN)
void NativeWindow::NotifyWindowMessage( void NativeWindow::NotifyWindowMessage(