Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. type alias NavigationState = {
  2. canGoBak: Bool
  3. conGoForward: Bool
  4. }
  5.  
  6.  
  7. type alias SecurityState = {
  8. isSecure: Bool
  9. extendedValidation: Bool
  10. }
  11.  
  12. type alias LoadState = {
  13. loadStarted: Int
  14. loadEnded: Int
  15. connected: Int
  16. progress: Float -- 0 to 1
  17. }
  18.  
  19. type URI = Blank | String
  20.  
  21. type alias PageState = {
  22. uri: URI
  23. title: String
  24. isFocused: Bool
  25. }
  26.  
  27. type alias Direction = Forward | Backward
  28. type alias Selection = {
  29. start: Int
  30. end: Int
  31. direction: Direction
  32. }
  33.  
  34. type alias Input = {
  35. isFocused: Bool
  36. selection: Selection
  37. value: String
  38. }
  39.  
  40. type alias WebView = {
  41. progress: LoadState
  42. security: SecurityState
  43. navigation: NavigationState
  44. page: PageState
  45. input: Input
  46. }
  47.  
  48. type alias Browser = {
  49. views: List WebViews
  50. active: Int
  51. }
  52.  
  53. type alias App = {
  54. isFocused: Bool
  55. theme: Theme
  56. browser: WebView
  57. }
  58.  
  59.  
  60.  
  61. --------
  62.  
  63. type alias LocationBar = {
  64. isFocused: Bool
  65. theme: Theme
  66. webView: WebView
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement