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

Unified Diff: chrome/common/webkit_param_traits.h

Issue 6682033: Move plugin messages to content. (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/plugin_messages_internal.h ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/webkit_param_traits.h
===================================================================
--- chrome/common/webkit_param_traits.h (revision 78042)
+++ chrome/common/webkit_param_traits.h (working copy)
@@ -30,7 +30,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
@@ -81,57 +80,6 @@
};
template <>
-struct ParamTraits<WebKit::WebInputEvent::Type> {
- typedef WebKit::WebInputEvent::Type param_type;
- static void Write(Message* m, const param_type& p) {
- m->WriteInt(p);
- }
- static bool Read(const Message* m, void** iter, param_type* p) {
- int type;
- if (!m->ReadInt(iter, &type))
- return false;
- *p = static_cast<WebKit::WebInputEvent::Type>(type);
- return true;
- }
- static void Log(const param_type& p, std::string* l) {
- const char* type;
- switch (p) {
- case WebKit::WebInputEvent::MouseDown:
- type = "MouseDown";
- break;
- case WebKit::WebInputEvent::MouseUp:
- type = "MouseUp";
- break;
- case WebKit::WebInputEvent::MouseMove:
- type = "MouseMove";
- break;
- case WebKit::WebInputEvent::MouseLeave:
- type = "MouseLeave";
- break;
- case WebKit::WebInputEvent::MouseEnter:
- type = "MouseEnter";
- break;
- case WebKit::WebInputEvent::MouseWheel:
- type = "MouseWheel";
- break;
- case WebKit::WebInputEvent::RawKeyDown:
- type = "RawKeyDown";
- break;
- case WebKit::WebInputEvent::KeyDown:
- type = "KeyDown";
- break;
- case WebKit::WebInputEvent::KeyUp:
- type = "KeyUp";
- break;
- default:
- type = "None";
- break;
- }
- LogParam(std::string(type), l);
- }
-};
-
-template <>
struct ParamTraits<WebKit::WebCache::UsageStats> {
typedef WebKit::WebCache::UsageStats param_type;
static void Write(Message* m, const param_type& p) {
« no previous file with comments | « chrome/common/plugin_messages_internal.h ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698