OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 private: | 185 private: |
186 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.move") | 186 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.move") |
187 }; | 187 }; |
188 | 188 |
189 class UpdateBookmarkFunction : public BookmarksFunction { | 189 class UpdateBookmarkFunction : public BookmarksFunction { |
190 public: | 190 public: |
191 static bool ExtractIds(const base::ListValue* args, std::list<int64>* ids, | 191 static bool ExtractIds(const base::ListValue* args, std::list<int64>* ids, |
192 bool* invalid_id); | 192 bool* invalid_id); |
193 virtual void GetQuotaLimitHeuristics( | 193 virtual void GetQuotaLimitHeuristics( |
194 QuotaLimitHeuristics* heuristics) const OVERRIDE; | 194 QuotaLimitHeuristics* heuristics) const OVERRIDE; |
195 virtual bool RunImpl(); | 195 virtual bool RunImpl() OVERRIDE; |
196 private: | 196 private: |
197 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.update") | 197 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.update") |
198 }; | 198 }; |
199 | 199 |
200 class BookmarksIOFunction : public BookmarksFunction, | 200 class BookmarksIOFunction : public BookmarksFunction, |
201 public SelectFileDialog::Listener { | 201 public SelectFileDialog::Listener { |
202 public: | 202 public: |
203 BookmarksIOFunction(); | 203 BookmarksIOFunction(); |
204 virtual ~BookmarksIOFunction(); | 204 virtual ~BookmarksIOFunction(); |
205 | 205 |
(...skipping 29 matching lines...) Expand all Loading... |
235 // BookmarkManagerIOFunction: | 235 // BookmarkManagerIOFunction: |
236 virtual bool RunImpl() OVERRIDE; | 236 virtual bool RunImpl() OVERRIDE; |
237 virtual void FileSelected(const FilePath& path, int index, void* params) | 237 virtual void FileSelected(const FilePath& path, int index, void* params) |
238 OVERRIDE; | 238 OVERRIDE; |
239 | 239 |
240 private: | 240 private: |
241 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); | 241 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); |
242 }; | 242 }; |
243 | 243 |
244 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ | 244 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EXTENSION_API_H_ |
OLD | NEW |