Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scope_system_input.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
  2. **
  3. ** Copyright (C) 2010 Opera Software AS. All rights reserved.
  4. **
  5. ** This file is part of the Opera web browser. It may not be distributed
  6. ** under any circumstances.
  7. */
  8. #ifndef SYSTEM_INPUT_DESKTOP_H
  9. #define SYSTEM_INPUT_DESKTOP_H
  10. #include "modules/hardcore/keys/opkeys.h"
  11. #include "modules/scope/src/scope_service.h"
  12. #include "adjunct/desktop_scope/src/generated/g_scope_system_input_interface.h"
  13. class SystemInputPI;
  14. class OpScopeSystemInput
  15. : public OpScopeSystemInput_SI
  16. {
  17. public:
  18. OpScopeSystemInput();
  19. virtual ~OpScopeSystemInput();
  20. // OpScopeService
  21. virtual OP_STATUS OnServiceEnabled();
  22. // Request/Response functions
  23. OP_STATUS DoClick(const MouseInfo &in);
  24. OP_STATUS DoKeyPress(const KeyPressInfo &in);
  25. OP_STATUS DoKeyUp(const KeyPressInfo &in);
  26. OP_STATUS DoKeyDown(const KeyPressInfo &in);
  27. OP_STATUS DoMouseDown(const MouseInfo &in);
  28. OP_STATUS DoMouseUp(const MouseInfo &in);
  29. OP_STATUS DoMouseMove(const MouseInfo &in);
  30. private:
  31. SystemInputPI *m_system_input_pi;
  32. // Convert from SystemInfo message input enums to Opera enums
  33. MouseButton GetOperaButton(OpScopeSystemInput_SI::MouseInfo::MouseButton button);
  34. ShiftKeyState GetOperaModifier(UINT32 modifier);
  35. };
  36. #endif // SYSTEM_INPUT_DESKTOP_H