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

Unified Diff: chrome/common/common_param_traits.h

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/common/common_message_generator.h ('k') | chrome/common/common_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/common_param_traits.h
===================================================================
--- chrome/common/common_param_traits.h (revision 77652)
+++ chrome/common/common_param_traits.h (working copy)
@@ -27,7 +27,6 @@
//
// TODO(erg): The following headers are historical and only work because
// their definitions are inlined, which also needs to be fixed.
-#include "ui/gfx/native_widget_types.h"
#include "webkit/glue/webcursor.h"
#include "webkit/glue/window_open_disposition.h"
@@ -40,12 +39,6 @@
struct WebApplicationInfo;
class WebCursor;
-namespace gfx {
-class Point;
-class Rect;
-class Size;
-} // namespace gfx
-
namespace printing {
struct PageRange;
struct PrinterCapsAndDefaults;
@@ -70,30 +63,6 @@
};
template <>
-struct ParamTraits<gfx::Point> {
- typedef gfx::Point param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<gfx::Rect> {
- typedef gfx::Rect param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<gfx::Size> {
- typedef gfx::Size param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
struct ParamTraits<ContentSetting> {
typedef ContentSetting param_type;
static void Write(Message* m, const param_type& p);
@@ -130,38 +99,6 @@
};
template <>
-struct ParamTraits<gfx::NativeWindow> {
- typedef gfx::NativeWindow param_type;
- static void Write(Message* m, const param_type& p) {
-#if defined(OS_WIN)
- // HWNDs are always 32 bits on Windows, even on 64 bit systems.
- m->WriteUInt32(reinterpret_cast<uint32>(p));
-#else
- m->WriteData(reinterpret_cast<const char*>(&p), sizeof(p));
-#endif
- }
- static bool Read(const Message* m, void** iter, param_type* r) {
-#if defined(OS_WIN)
- return m->ReadUInt32(iter, reinterpret_cast<uint32*>(r));
-#else
- const char *data;
- int data_size = 0;
- bool result = m->ReadData(iter, &data, &data_size);
- if (result && data_size == sizeof(gfx::NativeWindow)) {
- memcpy(r, data, sizeof(gfx::NativeWindow));
- } else {
- result = false;
- NOTREACHED();
- }
- return result;
-#endif
- }
- static void Log(const param_type& p, std::string* l) {
- l->append("<gfx::NativeWindow>");
- }
-};
-
-template <>
struct ParamTraits<PageZoom::Function> {
typedef PageZoom::Function param_type;
static void Write(Message* m, const param_type& p) {
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698