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

Unified Diff: chrome/browser/chromeos/gdata/gdata_parser.h

Issue 10381155: Added support for Google Drive's external app document type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_parser.h
diff --git a/chrome/browser/chromeos/gdata/gdata_parser.h b/chrome/browser/chromeos/gdata/gdata_parser.h
index 624bc19a906625f83aa3e825f699f92925fd8968..4d0cfa8b04f4a505b208d97515ce960f4aa9e04b 100644
--- a/chrome/browser/chromeos/gdata/gdata_parser.h
+++ b/chrome/browser/chromeos/gdata/gdata_parser.h
@@ -281,12 +281,14 @@ class DocumentEntry : public FeedEntry {
// Special entries.
ITEM = 0x001001,
SITE = 0x001002,
- // Hosted documents.
- DOCUMENT = 0x002001,
- SPREADSHEET = 0x002002,
- PRESENTATION = 0x002003,
- DRAWING = 0x002004,
- TABLE = 0x002005,
+ // Hosted Google document.
+ DOCUMENT = 0x002101,
+ SPREADSHEET = 0x002102,
+ PRESENTATION = 0x002103,
+ DRAWING = 0x002104,
+ TABLE = 0x002105,
+ // Hosted external application document.
+ EXTERNAL_APP = 0x002201,
// Folders, collections.
FOLDER = 0x004001,
// Regular files.
@@ -370,7 +372,11 @@ class DocumentEntry : public FeedEntry {
std::string GetHostedDocumentExtension() const;
// True if document entry is remotely hosted.
- bool is_hosted_document() const { return (kind_ & 0x002000) != 0; }
+ bool is_hosted_document() const { return (kind_ & 0x002000) == 0x002000; }
+ // True if document entry hosted by Google Documents.
+ bool is_google_document() const { return (kind_ & 0x002100) == 0x002100; }
+ // True if document entry is hosted by an external application.
+ bool is_external_app() const { return (kind_ & 0x002200) == 0x002200; }
satorux1 2012/05/16 20:07:09 maybe is_external_app_document() to be more descri
zel 2012/05/16 20:56:14 Done.
// True if document entry is a folder (collection).
bool is_folder() const { return (kind_ & 0x004000) != 0; }
// True if document entry is regular file.

Powered by Google App Engine
This is Rietveld 408576698