Commit a45eb07c authored by K. Moon's avatar K. Moon Committed by Commit Bot

Create pdf/ppapi_migration directory

Introduces a new directory for temporary code related to the PDF
viewer's PPAPI migration. Code in this directory should abstract away
usage of PPAPI, so it may easily be removed after the migration is done.

Also moves the existing pdf/geometry_conversions.{cc, h} files, as an
early example of the kind of code that should be in this directory.

Bug: 10611824
Change-Id: I01372843f4149a607ef1b6dab80277986c177d4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261413
Commit-Queue: K Moon <kmoon@chromium.org>
Reviewed-by: default avatarDaniel Hosseinian <dhoss@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781536}
parent 9b2a17c0
...@@ -62,8 +62,6 @@ if (enable_pdf) { ...@@ -62,8 +62,6 @@ if (enable_pdf) {
"draw_utils/coordinates.h", "draw_utils/coordinates.h",
"draw_utils/shadow.cc", "draw_utils/shadow.cc",
"draw_utils/shadow.h", "draw_utils/shadow.h",
"geometry_conversions.cc",
"geometry_conversions.h",
"out_of_process_instance.cc", "out_of_process_instance.cc",
"out_of_process_instance.h", "out_of_process_instance.h",
"page_orientation.cc", "page_orientation.cc",
...@@ -77,6 +75,8 @@ if (enable_pdf) { ...@@ -77,6 +75,8 @@ if (enable_pdf) {
"pdf_ppapi.cc", "pdf_ppapi.cc",
"pdf_transform.cc", "pdf_transform.cc",
"pdf_transform.h", "pdf_transform.h",
"ppapi_migration/geometry_conversions.cc",
"ppapi_migration/geometry_conversions.h",
"preview_mode_client.cc", "preview_mode_client.cc",
"preview_mode_client.h", "preview_mode_client.h",
"range_set.cc", "range_set.cc",
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
#include <utility> #include <utility>
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "pdf/geometry_conversions.h"
#include "pdf/pdf_transform.h" #include "pdf/pdf_transform.h"
#include "pdf/pdfium/pdfium_engine.h" #include "pdf/pdfium/pdfium_engine.h"
#include "pdf/pdfium/pdfium_mem_buffer_file_read.h" #include "pdf/pdfium/pdfium_mem_buffer_file_read.h"
#include "pdf/pdfium/pdfium_mem_buffer_file_write.h" #include "pdf/pdfium/pdfium_mem_buffer_file_write.h"
#include "pdf/ppapi_migration/geometry_conversions.h"
#include "ppapi/c/dev/ppp_printing_dev.h" #include "ppapi/c/dev/ppp_printing_dev.h"
#include "ppapi/c/private/ppp_pdf.h" #include "ppapi/c/private/ppp_pdf.h"
#include "printing/nup_parameters.h" #include "printing/nup_parameters.h"
......
# PPAPI migration utilities
This directory contains utilities for bridging from legacy APIs during the PDF
viewer's [migration from Pepper](https://crbug.com/702993). The utilities should
be designed for easy removal once the migration is complete.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "pdf/geometry_conversions.h" #include "pdf/ppapi_migration/geometry_conversions.h"
#include "ppapi/c/pp_rect.h" #include "ppapi/c/pp_rect.h"
#include "ppapi/c/pp_size.h" #include "ppapi/c/pp_size.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef PDF_GEOMETRY_CONVERSIONS_H_ #ifndef PDF_PPAPI_MIGRATION_GEOMETRY_CONVERSIONS_H_
#define PDF_GEOMETRY_CONVERSIONS_H_ #define PDF_PPAPI_MIGRATION_GEOMETRY_CONVERSIONS_H_
struct PP_Rect; struct PP_Rect;
struct PP_Size; struct PP_Size;
...@@ -20,4 +20,4 @@ gfx::Size SizeFromPPSize(const PP_Size& pp_size); ...@@ -20,4 +20,4 @@ gfx::Size SizeFromPPSize(const PP_Size& pp_size);
} // namespace chrome_pdf } // namespace chrome_pdf
#endif // PDF_GEOMETRY_CONVERSIONS_H_ #endif // PDF_PPAPI_MIGRATION_GEOMETRY_CONVERSIONS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment