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

Unified Diff: content/renderer/render_widget.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
===================================================================
--- content/renderer/render_widget.cc (revision 163045)
+++ content/renderer/render_widget.cc (working copy)
@@ -35,9 +35,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "third_party/skia/include/core/SkShader.h"
#include "ui/base/ui_base_switches.h"
-#include "ui/gfx/point.h"
#include "ui/gfx/rect_conversions.h"
-#include "ui/gfx/size.h"
#include "ui/gfx/size_conversions.h"
#include "ui/gfx/skia_util.h"
#include "ui/gl/gl_switches.h"
@@ -72,8 +70,9 @@
using WebKit::WebTouchEvent;
using WebKit::WebVector;
using WebKit::WebWidget;
-using content::RenderThread;
+namespace content {
+
static const float kStandardDPI = 160;
RenderWidget::RenderWidget(WebKit::WebPopupType popup_type,
@@ -265,7 +264,7 @@
// Don't send any messages after the browser has told us to close, and filter
// most outgoing messages while swapped out.
if ((is_swapped_out_ &&
- !content::SwappedOutMessages::CanSendWhileSwappedOut(message)) ||
+ !SwappedOutMessages::CanSendWhileSwappedOut(message)) ||
closing_) {
delete message;
return false;
@@ -1868,8 +1867,7 @@
stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
}
-bool RenderWidget::GetGpuRenderingStats(
- content::GpuRenderingStats* stats) const {
+bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const {
GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel();
if (!gpu_channel)
return false;
@@ -1897,3 +1895,5 @@
bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
return false;
}
+
+} // namespace content
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698