Permalink
Browse files

first commit

Change-Id: Ie8614a68d61c550f38d93f54bdf2964319bab988
  • Loading branch information...
anupamkaul committed Feb 1, 2012
0 parents commit 149fadcd046b50925cea1ebfb0500167af32e58b
Showing with 4,214 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +24 −0 appinfo.json
  3. +362 −0 css/browser.css
  4. +11 −0 db/kinds/com.palm.browserbookmarks
  5. +11 −0 db/kinds/com.palm.browserhistory
  6. +8 −0 db/kinds/com.palm.browserpreferences
  7. +29 −0 db/permissions/com.palm.browserbookmarks
  8. +18 −0 db/permissions/com.palm.browserhistory
  9. +12 −0 db/permissions/com.palm.browserpreferences
  10. +41 −0 depends.js
  11. BIN icon-256x256.png
  12. BIN icon.png
  13. BIN images/background-bookmarks-grid.png
  14. BIN images/background-startpage.png
  15. BIN images/bookmark-icon-default.png
  16. BIN images/bookmark-icon-frame.png
  17. BIN images/bookmark-info-icon.png
  18. BIN images/bookmark-overlay.png
  19. BIN images/chrome/button-menu.png
  20. BIN images/chrome/drag-handle.png
  21. BIN images/chrome/filter-search-highlight.png
  22. BIN images/chrome/list-divider.png
  23. BIN images/chrome/menu-icon-add.png
  24. BIN images/chrome/menu-icon-back.png
  25. BIN images/chrome/menu-icon-bookmark.png
  26. BIN images/chrome/menu-icon-forward.png
  27. BIN images/chrome/menu-icon-newcard.png
  28. BIN images/chrome/menu-icon-refresh.png
  29. BIN images/chrome/menu-icon-share.png
  30. BIN images/chrome/menu-icon-stop.png
  31. BIN images/chrome/palm-popup-background.png
  32. BIN images/chrome/progress-bar-inner.png
  33. BIN images/chrome/progress-bar.png
  34. BIN images/chrome/radiobutton.png
  35. BIN images/chrome/search-results-background.png
  36. BIN images/chrome/secure-lock.png
  37. BIN images/chrome/toaster-icon-bookmarks.png
  38. BIN images/chrome/toaster-icon-downloads.png
  39. BIN images/chrome/toaster-icon-history.png
  40. BIN images/chrome/url-pill.png
  41. BIN images/header-icon-bookmarks.png
  42. BIN images/header-icon-history.png
  43. BIN images/header-icon-prefs.png
  44. BIN images/list-icon-bing.png
  45. BIN images/list-icon-google.png
  46. BIN images/list-icon-wikipedia.png
  47. BIN images/mime-icon-audio.png
  48. BIN images/mime-icon-download.png
  49. BIN images/mime-icon-image.png
  50. BIN images/mime-icon-pdf.png
  51. BIN images/mime-icon-ppt.png
  52. BIN images/mime-icon-txt.png
  53. BIN images/mime-icon-vcard.png
  54. BIN images/mime-icon-video.png
  55. BIN images/mime-icon-word.png
  56. BIN images/mime-icon-xls.png
  57. BIN images/palm-popup-background.png
  58. BIN images/startpage-placeholder.png
  59. +28 −0 index.html
  60. +15 −0 mock/browserApp_bookmarksService.json
  61. +15 −0 mock/browserApp_bookmarks_bookmarksService.json
  62. +21 −0 mock/browserApp_browserPrefsService.json
  63. +34 −0 mock/browserApp_findBookmarks.json
  64. +41 −0 mock/browserApp_findHistory.json
  65. +41 −0 mock/browserApp_historyService.json
  66. +41 −0 mock/browserApp_history_historyService.json
  67. +15 −0 mock/browserApp_startPage_actionbar_search_bookmarksService.json
  68. +35 −0 mock/browserApp_startPage_actionbar_search_historyService.json
  69. +6 −0 mock/browserApp_startPage_addressbar_bookmarksService.json
  70. +24 −0 mock/browserApp_startPage_addressbar_historyService.json
  71. +80 −0 source/AcceptCancelPopup.js
  72. +123 −0 source/ActionBar.js
  73. +140 −0 source/AddressInput.js
  74. +99 −0 source/BookmarkDialog.js
  75. +78 −0 source/BookmarkList.js
  76. +508 −0 source/Browser.js
  77. +652 −0 source/BrowserApp.js
  78. +64 −0 source/BrowserContextMenu.js
  79. +45 −0 source/BrowserPrompt.js
  80. +223 −0 source/CertificateDetail.js
  81. +130 −0 source/DownloadList.js
  82. +57 −0 source/FindBar.js
  83. +142 −0 source/HistoryList.js
  84. +66 −0 source/MimeIcon.js
  85. +24 −0 source/NoFocusButton.js
  86. +151 −0 source/Preferences.js
  87. +29 −0 source/ProgressItem.js
  88. +75 −0 source/StartPage.js
  89. +266 −0 source/URLSearch.js
  90. +28 −0 source/VerticalAcceptCancelPopup.js
  91. +23 −0 source/clipboard.js
  92. +324 −0 source/tld.js
  93. +54 −0 source/util.js
@@ -0,0 +1 @@
+resources/
@@ -0,0 +1,24 @@
+{
+ "id": "com.palm.app.browser",
+ "version": "1.0.0",
+ "vendor": "HP",
+ "type": "web",
+ "main": "index.html",
+ "title": "Web",
+ "keywords" : [ "web", "Browser", "Blazer", "Internet" ],
+ "icon": "icon.png",
+ "splashicon": "icon-256x256.png",
+ "uiRevision": 2,
+ "tapToShareSupported":true,
+ "universalSearch": {
+ "dbsearch": {
+ "displayName":"Bookmarks & History",
+ "url":"com.palm.app.browser",
+ "launchParam":"url",
+ "launchParamDbField":"url",
+ "displayFields": ["title", "url"],
+ "dbQuery": [{"method":"search","params":{"query":{"from":"com.palm.browserbookmarks:1","where":[{"prop":"searchText","op":"?","val":"","collate":"primary"}],"limit":20}}},{"method":"search","params":{"query":{"from":"com.palm.browserhistory:1","where":[{"prop":"searchText","op":"?","val":"","collate":"primary"}],"limit":50}}}],
+ "batchQuery":true
+ }
+ }
+}
@@ -0,0 +1,362 @@
+// Copyright 2012 Hewlett-Packard Development Company, L.P.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/* Start Page */
+
+.startpage-list .enyo-datalist-client {
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.startpage-list-item: {
+ display: inline-block;
+}
+
+.startpage {
+ background: #313131 url(../images/background-startpage.png) center center no-repeat ;
+ -webkit-background-size: 100% 100%;
+ height: 1024px;
+ /*
+ background-color: #323232;
+ background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 250, from(#5c5d5f), color-stop(0.1, #3c3c3c), to(#101010));
+ */
+}
+
+.startpage .startpage-placeholder {
+ background: url(../images/startpage-placeholder.png) 50% 50% no-repeat;
+}
+
+.startpage .startpage-placeholder-tall {
+ height: 1024px;
+}
+
+/* AddressBar */
+
+.actionbar.enyo-toolbar {
+ height: 54px;
+ border-width: 2px 0;
+}
+
+.actionbar .enyo-tool-button .enyo-button-icon {
+ margin: 2px;
+}
+
+.actionbar .menu-container {
+ padding: 1px 4px 0;
+}
+
+.actionbar-tool-button {
+ padding: 0;
+}
+
+.page-title {
+ width: 620px;
+ margin: 0 auto;
+ padding-right: 10px;
+ text-align: center;
+ color: white;
+ font-size: .65em;
+ font-weight: bold;
+}
+
+.addressbar {
+ margin: 0 10px;
+}
+
+.addressbar input {
+ font-size: 15px;
+ color: #ccc;
+}
+
+.addressbar .enyo-tool-input-focus input {
+ color: #333;
+}
+
+.addressbar .enyo-input.enyo-tool-input .enyo-input-input:focus {
+ color: #e5e5e5;
+}
+
+.addressbar .enyo-tool-input-spacing {
+ margin: -7px 0;
+}
+
+.search-button.enyo-button-down {
+ background-position: 0 -34px;
+}
+
+.addressbar-button {
+ width: 32px;
+ height: 32px;
+ position: relative;
+ right: -6px;
+}
+
+.go-button {
+ background: url(../images/chrome/menu-icon-go.png) 0 0 no-repeat;
+}
+
+.go-button.enyo-button-down {
+ background-position: 0 32px;
+}
+
+.refresh-button {
+ background: url(../images/chrome/menu-icon-refresh.png) 0 1px no-repeat;
+}
+
+.refresh-button.enyo-button-down {
+ background-position: 0 -31px;
+}
+
+.stop-button {
+ background: url(../images/chrome/menu-icon-stop.png) 0 1px no-repeat;
+}
+
+.stop-button.enyo-button-down {
+ background-position: 0 -31px;
+}
+
+.secure-lock {
+ background: url(../images/chrome/secure-lock.png) center center no-repeat;
+ width: 32px;
+ height: 32px;
+ position: relative;
+ left: -3px;
+}
+
+.enyo-button-disabled .enyo-button-icon {
+ opacity: .5;
+}
+
+.addressbar-popup {
+ position: absolute;
+ width: 100%;
+ margin: -36px 0;
+ border-width: 24px;
+ -webkit-border-image: url(../images/chrome/search-results-background.png) 24 24 24 24 repeat;
+ -webkit-box-sizing: border-box;
+}
+
+.addressbar-popup-inner {
+ margin: 0 -16px -15px -16px;
+ padding-bottom: 12px;
+}
+
+.transparent-scrim {
+ opacity: 0;
+}
+
+.addressbar-providerslist {
+ min-height: 10px;
+}
+
+.addressbar-provider-title,
+.addressbar-search-title {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ line-height: 32px;
+ padding: 0 12px;
+}
+
+.addressbar-providerslist .enyo-item {
+ border: 0;
+}
+
+.addressbar-popup-divider {
+ background: silver;
+ height: 2px;
+ border-bottom: 1px solid #fff;
+}
+
+.addressbar-highlight {
+ background: url(../images/chrome/filter-search-highlight.png) bottom left repeat-x;
+}
+
+/* Progress bar */
+
+.url-progress.enyo-progress-bar {
+ -webkit-border-image: none;
+ border-width: 0;
+ height: 4px;
+ background: url(../images/chrome/progress-bar.png) 0 0 repeat-x;
+ width: 100%;
+ z-index: 10;
+ top: 2px;
+
+ -webkit-transition: opacity 1s;
+ opacity: 1;
+}
+.progress-bar.completed {
+ opacity: 0;
+ display: none;
+}
+.url-progress .enyo-progress-bar-inner {
+ -webkit-border-image: none;
+ margin: 0;
+ height: 4px;
+ background: url(../images/chrome/progress-bar-inner.png) 0 0 repeat-x;
+}
+.url-progress.invisible {
+ opacity: 0;
+}
+
+/* Browser */
+
+.browser-dialog-body enyo-text-body {
+ word-wrap: break-word;
+}
+
+/* Toaster */
+
+.enyo-toaster .enyo-header {
+ height: 54px;
+}
+
+.enyo-toaster .enyo-header-inner {
+ padding: 5px 13px;
+}
+
+.enyo-toaster .basic-back {
+ background-color: #e5e5e5;
+}
+
+.enyo-toaster .enyo-toolbar {
+ height: 56px; /* avoid the toolbar w/ no buttons gets a few px shorter */
+}
+
+.enyo-toaster .enyo-radiobutton.enyo-button-depressed .enyo-button-icon,
+.enyo-toaster .enyo-radiobutton.enyo-button-down .enyo-button-icon,
+.enyo-toaster .enyo-tabbutton.enyo-button-depressed .enyo-button-icon,
+.enyo-toaster .enyo-tabbutton.enyo-button-down .enyo-button-icon {
+ background-position: 0 -32px;
+}
+
+.toaster-item {
+ padding: 8px 3px 8px 11px;
+}
+
+.toaster-item .enyo-confirmprompt .enyo-button {
+ min-width:100px;
+}
+
+.item-image {
+ width: 46px;
+ height: 46px;
+ margin: 4px;
+}
+
+.item-thumb-container {
+ position: relative;
+ width: 52px;
+ height: 52px;
+}
+
+.item-image-frame {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 52px;
+ height: 52px;
+ background: url(../images/bookmark-icon-frame.png) 1px 2px no-repeat;
+}
+
+.bookmark-edit {
+ padding: 11px; /* make the tappable area to 48x48 */
+}
+
+/* History */
+
+/* Downloads */
+
+.dl-toaster-item {
+ padding: 8px 11px;
+ min-height: 60px;
+}
+
+.dl-item-image {
+ width: 36px;
+ height: 36px;
+ margin-top: 4px;
+}
+.dl-item-title {
+ padding: 0 8px 0 6px;
+}
+.dl-toaster-item .enyo-progress-button {
+ font-size: .8em;
+ min-height: 30px;
+}
+
+.dl-toaster-item .enyo-progress-button-cancel {
+ margin-top: 0;
+}
+
+.item-progress {
+ margin-right: 2px;
+}
+
+/* List Items for Site Titles and URLs (search pop and bookmarks) */
+
+.url-item-title {
+ padding: 0 0 0 12px;
+}
+
+.url-item-url {
+ padding: 0 0 0 12px;
+ line-height: 18px;
+}
+
+.url-item-image {
+ vertical-align: middle;
+ margin-top: 6px;
+}
+
+/* Progress Menu Button */
+
+.progress-menu-button-icon {
+ display: inline-block;
+ margin: -5px -24px 0px -24px;
+ width: 48px;
+ height: 48px;
+ vertical-align: middle;
+}
+
+/* Preferences */
+
+.preferences-header {
+ height: 58px;
+ max-height: 58px;
+}
+
+.preferences-header .enyo-header-inner {
+ padding: 3px 12px;
+}
+
+.preferences-header-image {
+ padding-right: 10px;
+}
+
+.enyo-preferences-box .enyo-button,
+.preference-prompt .enyo-button {
+ margin: 6px 3px;
+}
+
+/* Misc */
+
+.launch-popup {
+ margin-top: 5px;
+}
+
+.enyo-gemstone.enyo-item.enyo-held {
+ background-repeat: repeat-x;
+}
Oops, something went wrong.

0 comments on commit 149fadc

Please sign in to comment.