mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use new NativeWindowObserver helper
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user