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(
const std::string& type,
const std::vector<std::string>& args) {
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
OnTouchBarItemResult(type, args));
}
const std::string& type,
const std::vector<std::string>& args) {
for (NativeWindowObserver& observer : observers_)
observer.OnTouchBarItemResult(type, args);
}
#if defined(OS_WIN)
void NativeWindow::NotifyWindowMessage(