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_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Creates app resource from parsed JSON. | 135 // Creates app resource from parsed JSON. |
136 static scoped_ptr<AppResource> CreateFrom(const base::Value& value); | 136 static scoped_ptr<AppResource> CreateFrom(const base::Value& value); |
137 | 137 |
138 // Returns application ID, which is 12-digit decimals (e.g. "123456780123"). | 138 // Returns application ID, which is 12-digit decimals (e.g. "123456780123"). |
139 const std::string& application_id() const { return application_id_; } | 139 const std::string& application_id() const { return application_id_; } |
140 | 140 |
141 // Returns application name. | 141 // Returns application name. |
142 const std::string& name() const { return name_; } | 142 const std::string& name() const { return name_; } |
143 | 143 |
144 // Returns the name of the type of object this application creates. | 144 // Returns the name of the type of object this application creates. |
145 // This can be any string. TODO(kochi): figure out how to use this value. | 145 // This is used for displaying in "Create" menu item for this app. |
| 146 // If empty, application name is used instead. |
146 const std::string& object_type() const { return object_type_; } | 147 const std::string& object_type() const { return object_type_; } |
147 | 148 |
148 // Returns whether this application suuports creating new objects. | 149 // Returns whether this application suuports creating new objects. |
149 bool supports_create() const { return supports_create_; } | 150 bool supports_create() const { return supports_create_; } |
150 | 151 |
151 // Returns whether this application supports importing Google Docs. | 152 // Returns whether this application supports importing Google Docs. |
152 bool supports_import() const { return supports_import_; } | 153 bool supports_import() const { return supports_import_; } |
153 | 154 |
154 // Returns whether this application is installed. | 155 // Returns whether this application is installed. |
155 bool is_installed() const { return installed_; } | 156 bool is_installed() const { return installed_; } |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 std::string next_page_token_; | 363 std::string next_page_token_; |
363 GURL next_link_; | 364 GURL next_link_; |
364 ScopedVector<FileResource> items_; | 365 ScopedVector<FileResource> items_; |
365 | 366 |
366 DISALLOW_COPY_AND_ASSIGN(FileList); | 367 DISALLOW_COPY_AND_ASSIGN(FileList); |
367 }; | 368 }; |
368 | 369 |
369 } // namespace gdata | 370 } // namespace gdata |
370 | 371 |
371 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ | 372 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ |
OLD | NEW |