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

Unified Diff: content/child/browser_font_resource_trusted.cc

Issue 20214004: move BrowserFontResource_Trusted to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « content/child/browser_font_resource_trusted.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/browser_font_resource_trusted.cc
diff --git a/ppapi/proxy/browser_font_resource_trusted.cc b/content/child/browser_font_resource_trusted.cc
similarity index 98%
rename from ppapi/proxy/browser_font_resource_trusted.cc
rename to content/child/browser_font_resource_trusted.cc
index b8bc8759d4d721fe9b8ac8e6ab37a6e9e06b9c27..d31ede098b34da2aa963ebf8be20a6abe23abc0a 100644
--- a/ppapi/proxy/browser_font_resource_trusted.cc
+++ b/content/child/browser_font_resource_trusted.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ppapi/proxy/browser_font_resource_trusted.h"
+#include "content/child/browser_font_resource_trusted.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "ppapi/c/dev/ppb_font_dev.h"
+#include "ppapi/proxy/connection.h"
#include "ppapi/shared_impl/ppapi_preferences.h"
#include "ppapi/shared_impl/var.h"
#include "ppapi/thunk/enter.h"
@@ -34,8 +35,7 @@ using WebKit::WebRect;
using WebKit::WebTextRun;
using WebKit::WebCanvas;
-namespace ppapi {
-namespace proxy {
+namespace content {
namespace {
@@ -143,7 +143,7 @@ bool PPTextRunToWebTextRun(const PP_BrowserFont_Trusted_TextRun& text,
// Assumes the given PP_FontDescription has been validated.
WebFontDescription PPFontDescToWebFontDesc(
const PP_BrowserFont_Trusted_Description& font,
- const Preferences& prefs) {
+ const ppapi::Preferences& prefs) {
// Verify that the enums match so we can just static cast.
COMPILE_ASSERT(static_cast<int>(WebFontDescription::Weight100) ==
static_cast<int>(PP_BROWSERFONT_TRUSTED_WEIGHT_100),
@@ -248,10 +248,10 @@ bool BrowserFontResource_Trusted::IsPPFontDescriptionValid(
}
BrowserFontResource_Trusted::BrowserFontResource_Trusted(
- Connection connection,
+ ppapi::proxy::Connection connection,
PP_Instance instance,
const PP_BrowserFont_Trusted_Description& desc,
- const Preferences& prefs)
+ const ppapi::Preferences& prefs)
: PluginResource(connection, instance),
font_(WebFont::create(PPFontDescToWebFontDesc(desc, prefs))) {
}
@@ -259,7 +259,7 @@ BrowserFontResource_Trusted::BrowserFontResource_Trusted(
BrowserFontResource_Trusted::~BrowserFontResource_Trusted() {
}
-thunk::PPB_BrowserFont_Trusted_API*
+ppapi::thunk::PPB_BrowserFont_Trusted_API*
BrowserFontResource_Trusted::AsPPB_BrowserFont_Trusted_API() {
return this;
}
@@ -425,5 +425,4 @@ void BrowserFontResource_Trusted::DrawTextToCanvas(
}
}
-} // namespace proxy
-} // namespace ppapi
+} // namespace content
« no previous file with comments | « content/child/browser_font_resource_trusted.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698