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

Side by Side Diff: chrome/browser/pdf/pdf_extension_util.h

Issue 1237343002: Fix nested GuestView's container bounds calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: betterfix 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_ 5 #ifndef CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_
6 #define CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_ 6 #define CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace content {
11 class WebContents;
12 } // namespace content
13
10 namespace pdf_extension_util { 14 namespace pdf_extension_util {
11 15
12 // The ResourceIdentifier for the PDF Viewer plugin. 16 // The ResourceIdentifier for the PDF Viewer plugin.
13 extern const char kPdfResourceIdentifier[]; 17 extern const char kPdfResourceIdentifier[];
14 18
15 // Return the extensions manifest for PDF. The manifest is loaded from 19 // Return the extensions manifest for PDF. The manifest is loaded from
16 // browser_resources.grd and certain fields are replaced based on what chrome 20 // browser_resources.grd and certain fields are replaced based on what chrome
17 // flags are enabled. 21 // flags are enabled.
18 std::string GetManifest(); 22 std::string GetManifest();
19 23
24 // Ensures through PDFScriptingAPI that a PDF has finished loading inside the
25 // given |web_contents|.
26 // Returns true if it loads successfully or false if it fails. If it doesn't
27 // finish loading the test will hang. This is done from outside of the
28 // BrowserPluginGuest to ensure the PDFScriptingAPI works correctly from there.
29 bool EnsurePDFHasLoaded(content::WebContents* web_contents);
30
20 } // namespace pdf_extension_util 31 } // namespace pdf_extension_util
21 32
22 #endif // CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_ 33 #endif // CHROME_BROWSER_PDF_PDF_EXTENSION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698