| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" | 9 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" |
| 10 #include "chrome/browser/cancelable_request.h" | 10 #include "chrome/browser/common/cancelable_request.h" |
| 11 #include "chrome/browser/favicon/favicon_service.h" | 11 #include "chrome/browser/favicon/favicon_service.h" |
| 12 #include "chrome/browser/ui/webui/ntp/android/partner_bookmarks_shim.h" | 12 #include "chrome/browser/ui/webui/ntp/android/partner_bookmarks_shim.h" |
| 13 #include "content/public/browser/web_ui_message_handler.h" | 13 #include "content/public/browser/web_ui_message_handler.h" |
| 14 | 14 |
| 15 // The handler for Javascript messages related to the bookmarks. | 15 // The handler for Javascript messages related to the bookmarks. |
| 16 // | 16 // |
| 17 // In Javascript if getBookmarks() is called without any parameter, the 'Other | 17 // In Javascript if getBookmarks() is called without any parameter, the 'Other |
| 18 // Bookmark' folder and bookmark bar's bookmarks and folders are returned. | 18 // Bookmark' folder and bookmark bar's bookmarks and folders are returned. |
| 19 // If getBookmarks() is called with a valid bookmark folder id, the given | 19 // If getBookmarks() is called with a valid bookmark folder id, the given |
| 20 // folder's bookmarks and sub folders of are returned. | 20 // folder's bookmarks and sub folders of are returned. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Called once the favicon is loaded during creation of the bookmark shortcuts | 131 // Called once the favicon is loaded during creation of the bookmark shortcuts |
| 132 // and is available for use. | 132 // and is available for use. |
| 133 void OnShortcutFaviconDataAvailable( | 133 void OnShortcutFaviconDataAvailable( |
| 134 FaviconService::Handle handle, | 134 FaviconService::Handle handle, |
| 135 const history::FaviconBitmapResult& bitmap_result); | 135 const history::FaviconBitmapResult& bitmap_result); |
| 136 | 136 |
| 137 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); | 137 DISALLOW_COPY_AND_ASSIGN(BookmarksHandler); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ | 140 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_BOOKMARKS_HANDLER_H_ |
| OLD | NEW |