Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: chrome/browser/chromeos/gdata/drive_api_parser.h

Issue 10827135: Comment objectType field of ApplicationResource, resolving TODO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698