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

Unified Diff: chrome/browser/ui/pdf/pdf_tab_helper.h

Issue 23478036: Create a PDF password dialog for Views. (Closed) Base URL: http://git.chromium.org/chromium/src.git@pdf
Patch Set: Created 7 years, 3 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/ui/pdf/pdf_tab_helper.h
diff --git a/chrome/browser/ui/pdf/pdf_tab_helper.h b/chrome/browser/ui/pdf/pdf_tab_helper.h
index 45a6e6f10282134c3f0424c97610f67770394541..6b7809b89212cd747f39d673c614b6b13b72850d 100644
--- a/chrome/browser/ui/pdf/pdf_tab_helper.h
+++ b/chrome/browser/ui/pdf/pdf_tab_helper.h
@@ -61,8 +61,7 @@ class PDFTabHelper : public content::WebContentsObserver,
DISALLOW_COPY_AND_ASSIGN(PDFTabHelper);
};
-// TODO(avi): write for other platforms
-#if defined(OS_MACOSX)
+#if !defined(TOOLKIT_GTK)
typedef base::Callback<void(bool /* success */,
const base::string16& /* password */)>
PasswordDialogClosedCallback;
@@ -71,6 +70,6 @@ typedef base::Callback<void(bool /* success */,
void ShowPDFPasswordDialog(content::WebContents* web_contents,
const base::string16& prompt,
const PasswordDialogClosedCallback& callback);
-#endif // OS_*
+#endif // !TOOLKIT_GTK
#endif // CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_
« no previous file with comments | « no previous file | chrome/browser/ui/pdf/pdf_tab_helper.cc » ('j') | chrome/browser/ui/views/pdf_password_dialog.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698