summaryrefslogtreecommitdiffstats
path: root/chrome/browser/pdf_unsupported_feature.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 00:05:17 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 00:05:17 +0000
commitc8f73aba9f1fd8b2e0a34fcca08a1e968ddd8244 (patch)
treed2658c6f1da345a1f38531809250c934dd4d73fa /chrome/browser/pdf_unsupported_feature.h
parent090d7108424b5a8600e1b590b2227e52f23d6e7e (diff)
downloadchromium_src-c8f73aba9f1fd8b2e0a34fcca08a1e968ddd8244.zip
chromium_src-c8f73aba9f1fd8b2e0a34fcca08a1e968ddd8244.tar.gz
chromium_src-c8f73aba9f1fd8b2e0a34fcca08a1e968ddd8244.tar.bz2
When we detect a PDF with an unsupported feature, ask the user if they want to view it with Adobe Reader if it's installed. If it's not, ask them if they want to launch the url to install it. If it's installed and out of date, show an interstitial.
BUG=65339 Review URL: http://codereview.chromium.org/6259008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/pdf_unsupported_feature.h')
-rw-r--r--chrome/browser/pdf_unsupported_feature.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/pdf_unsupported_feature.h b/chrome/browser/pdf_unsupported_feature.h
new file mode 100644
index 0000000..e6e4f64
--- /dev/null
+++ b/chrome/browser/pdf_unsupported_feature.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PDF_UNSUPPORTED_FEATURE_H_
+#define CHROME_BROWSER_PDF_UNSUPPORTED_FEATURE_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+class TabContents;
+
+// Call this when a tab encounters a PDF that has features which our internal
+// viewer doesn't support. Will take care of puting up an infobar to inform the
+// user and launch Reader if they choose. If Reader is out of date, it will put
+// up an interstitial.
+void PDFHasUnsupportedFeature(TabContents* tab);
+
+#endif // CHROME_BROWSER_PDF_UNSUPPORTED_FEATURE_H_