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

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: rebase 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..3647f05592c4518502745d23d984c4598ca3ac31 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_document() const { return (kind_ & 0x002200) == 0x002200; }
// True if document entry is a folder (collection).
bool is_folder() const { return (kind_ & 0x004000) != 0; }
// True if document entry is regular file.
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.cc ('k') | chrome/browser/chromeos/gdata/gdata_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698