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

Unified Diff: chrome/browser/pdf/pdf_extension_test_util.h

Issue 1237343002: Fix nested GuestView's container bounds calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pdf_extension_util -> pdf_extension_test_util Created 5 years, 5 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
« no previous file with comments | « chrome/browser/pdf/pdf_extension_test.cc ('k') | chrome/browser/pdf/pdf_extension_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/pdf/pdf_extension_test_util.h
diff --git a/chrome/browser/pdf/pdf_extension_test_util.h b/chrome/browser/pdf/pdf_extension_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..44835af8c376c0c096b21bde034333fc49494cf6
--- /dev/null
+++ b/chrome/browser/pdf/pdf_extension_test_util.h
@@ -0,0 +1,23 @@
+// Copyright 2015 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_PDF_EXTENSION_TEST_UTIL_H_
+#define CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_
+
+namespace content {
+class WebContents;
+} // namespace content
+
+namespace pdf_extension_test_util {
+
+// Ensures through PDFScriptingAPI that a PDF has finished loading inside the
+// given |web_contents|.
+// Returns true if it loads successfully or false if it fails. If it doesn't
+// finish loading the test will hang. This is done from outside of the
+// BrowserPluginGuest to ensure the PDFScriptingAPI works correctly from there.
raymes 2015/07/21 04:20:36 You can remove the last sentence. It doesn't make
lazyboy 2015/07/21 06:32:23 Done.
+bool EnsurePDFHasLoaded(content::WebContents* web_contents);
+
+} // namespace pdf_extension_test_util
+
+#endif // CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_
« no previous file with comments | « chrome/browser/pdf/pdf_extension_test.cc ('k') | chrome/browser/pdf/pdf_extension_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698