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.

winman_constants.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
  2. **
  3. ** Copyright (C) 1995-2002 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 DOCHAND_WINMAN_CONSTANTS_H
  9. #define DOCHAND_WINMAN_CONSTANTS_H
  10. enum DM_PrintType
  11. {
  12. PRINT_AS_SCREEN = 0,
  13. PRINT_ACTIVE_FRAME,
  14. PRINT_ALL_FRAMES
  15. };
  16. enum ST_MESSAGETYPE
  17. {
  18. ST_ALINK,
  19. ST_ATITLE,
  20. ST_ASTRING,
  21. ST_ASTATUS,
  22. ST_ABUTTON
  23. };
  24. enum WinState
  25. {
  26. BUSY,
  27. CLICKABLE,
  28. NOT_BUSY,
  29. RESERVED
  30. };
  31. enum WinSizeState
  32. {
  33. NORMAL,
  34. ICONIC,
  35. MAXIMIZED,
  36. FULLSCREEN,
  37. INVALID_WINSIZESTATE // last enum
  38. };
  39. enum FOCUS_REQUEST
  40. {
  41. FOCUS_REQUEST_NO_REQUEST, //Will clear any previously set requests
  42. FOCUS_REQUEST_STORE, //Store current focus
  43. FOCUS_REQUEST_STORE_WITH_SELECTION, //Store current focus, and selection if the element with focus is an editcontrol
  44. FOCUS_REQUEST_RESTORE, //Restore stored focus if window is active
  45. FOCUS_REQUEST_RESTORE_AND_ACTIVATE, //Restore stored focus, and activate window
  46. FOCUS_REQUEST_RESTORE_AND_ACTIVATE_WITH_SELECTION, //Restore stored focus and selection, and activate window
  47. FOCUS_REQUEST_URL, //Set (or store, if window is inactive) focus in addressbar
  48. FOCUS_REQUEST_SEARCH_OR_URL, //Set (or store..) focus in searchbar, or addressbar is searchbar is hidden
  49. FOCUS_REQUEST_DOCUMENT_OR_URL, //Set (or store..) focus in document, or addressbar is no document is loaded
  50. FOCUS_REQUEST_DOCUMENT //Set (or store..) focus in document
  51. };
  52. enum FOCUS_REQUEST_TIME
  53. {
  54. FOCUS_REQUEST_TIME_NOT_SET = 0,
  55. FOCUS_REQUEST_TIME_NOW = 1, //Should be in ascending order, so action can be performed like 'if (time < ...'
  56. FOCUS_REQUEST_TIME_ACTIVATED = 2, //Executed when window is activated
  57. FOCUS_REQUEST_TIME_DOCUMENTINFO_LOADED = 3, //Executed when documentinfo is loaded
  58. FOCUS_REQUEST_TIME_DOCUMENT_LOADED = 4, //Executed when document is loaded
  59. FOCUS_REQUEST_TIME_NEVER = 99 //Never happens...
  60. };
  61. enum TOPTOOLBARTYPE
  62. {
  63. NO_TOOLBAR,
  64. BROWSER_TOOLBAR
  65. };
  66. enum Window_Type
  67. {
  68. WIN_TYPE_NORMAL = 0,
  69. WIN_TYPE_DOWNLOAD,
  70. WIN_TYPE_CACHE,
  71. WIN_TYPE_PLUGINS,
  72. WIN_TYPE_HISTORY,
  73. WIN_TYPE_HELP,
  74. WIN_TYPE_MAIL_VIEW,
  75. WIN_TYPE_MAIL_COMPOSE,
  76. WIN_TYPE_NEWSFEED_VIEW,
  77. WIN_TYPE_IM_VIEW,
  78. WIN_TYPE_P2P_VIEW,
  79. WIN_TYPE_BRAND_VIEW,
  80. WIN_TYPE_PRINT_SELECTION,
  81. WIN_TYPE_JS_CONSOLE,
  82. WIN_TYPE_GADGET,
  83. WIN_TYPE_CONTROLLER, // Controller window in a Browser in Browser context.
  84. WIN_TYPE_INFO, // this type is used for "input dead" info type areas, like displaying a Contact's picture
  85. WIN_TYPE_DIALOG, // for the HTML dialogs used in core-gogi
  86. WIN_TYPE_THUMBNAIL, // used for thumbnail generation
  87. WIN_TYPE_DEVTOOLS, // Developer Tools, has access to opera.scopeAddClient() and friends JS API
  88. WIN_TYPE_NORMAL_HIDDEN // A normal window, not exposed trough scope. Used for example by the gogi UIs
  89. };
  90. enum Window_Feature
  91. {
  92. WIN_FEATURE_NAVIGABLE = 0x001,
  93. WIN_FEATURE_PRINTABLE = 0x002,
  94. WIN_FEATURE_RELOADABLE = 0x004,
  95. WIN_FEATURE_FOCUSABLE = 0x008,
  96. WIN_FEATURE_HOMEABLE = 0x010,
  97. WIN_FEATURE_PROGRESS = 0x020,
  98. WIN_FEATURE_OUTSIDE = 0x040, // window is outside/sdi and should not connect to main toolbar etc.
  99. WIN_FEATURE_BOOKMARKABLE = 0x080, // ok to at window to bookmark lists.
  100. WIN_FEATURE_MENU = 0x100, // window can have a menu (but it will only be displayed in SDI mode)
  101. WIN_FEATURE_ALERTS = 0x200 // window will show ecmascript alert dialogs
  102. };
  103. #endif // DOCHAND_WINMAN_CONSTANTS_H