message_handler_delegate.h 985 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2015 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_UI_WIN_MESSAGE_HANDLER_DELEGATE_H_
  5. #define ATOM_BROWSER_UI_WIN_MESSAGE_HANDLER_DELEGATE_H_
  6. #include <windows.h>
  7. namespace atom {
  8. class MessageHandlerDelegate {
  9. public:
  10. // Catch-all message handling and filtering. Called before
  11. // HWNDMessageHandler's built-in handling, which may pre-empt some
  12. // expectations in Views/Aura if messages are consumed. Returns true if the
  13. // message was consumed by the delegate and should not be processed further
  14. // by the HWNDMessageHandler. In this case, |result| is returned. |result| is
  15. // not modified otherwise.
  16. virtual bool PreHandleMSG(UINT message,
  17. WPARAM w_param,
  18. LPARAM l_param,
  19. LRESULT* result);
  20. };
  21. } // namespace atom
  22. #endif // ATOM_BROWSER_UI_WIN_MESSAGE_HANDLER_DELEGATE_H_