summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 06:18:58 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 06:18:58 +0000
commite738ea51ac8011f8c16c10666fba1bb7b930fbb3 (patch)
tree65cdae9bce903f5a7717d1242e8d640d70ab51d0 /chrome/common
parent779aae5fa525671293b0db3ddad27cc3811a362a (diff)
downloadchromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.zip
chromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.tar.gz
chromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.tar.bz2
Reverting 11953.
Review URL: http://codereview.chromium.org/48121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages.h34
-rw-r--r--chrome/common/render_messages_internal.h13
2 files changed, 0 insertions, 47 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 4d67d88..ebac85c 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -38,7 +38,6 @@
#include "webkit/glue/webinputevent.h"
#include "webkit/glue/webplugin.h"
#include "webkit/glue/webpreferences.h"
-#include "webkit/glue/webtextdirection.h"
#include "webkit/glue/webview_delegate.h"
#if defined(OS_POSIX)
@@ -1834,39 +1833,6 @@ struct ParamTraits<AudioOutputStream::State> {
}
};
-template <>
-struct ParamTraits<WebTextDirection> {
- typedef WebTextDirection 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<WebTextDirection>(type);
- return true;
- }
- static void Log(const param_type& p, std::wstring* l) {
- std::wstring control;
- switch (p) {
- case WEB_TEXT_DIRECTION_DEFAULT:
- control = L"WEB_TEXT_DIRECTION_DEFAULT";
- break;
- case WEB_TEXT_DIRECTION_RTL:
- control = L"WEB_TEXT_DIRECTION_RTL";
- break;
- case WEB_TEXT_DIRECTION_LTR:
- control = L"WEB_TEXT_DIRECTION_LTR";
- break;
- default:
- control = L"UNKNOWN";
- break;
- }
-
- LogParam(control, l);
- }
-};
} // namespace IPC
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 98006fd..dedf4774 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -24,7 +24,6 @@
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webinputevent.h"
#include "webkit/glue/webplugin.h"
-#include "webkit/glue/webtextdirection.h"
// TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
// more sense with our current design.
@@ -512,18 +511,6 @@ IPC_BEGIN_MESSAGES(View)
// Notification that a move or resize renderer's containing window has
// started.
IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
-
- // Changes the text direction of a selected input field.
- // * direction (WebTextDirection)
- // Represents the new text direction.
- // Its possible values are listed below:
- // Value New Text Direction
- // WEB_TEXT_DIRECTION_DEFAULT NaturalWritingDirection ("inherit")
- // WEB_TEXT_DIRECTION_LTR LeftToRightWritingDirection ("rtl")
- // WEB_TEXT_DIRECTION_RTL RightToLeftWritingDirection ("ltr")
- IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
- WebTextDirection /* direction */)
-
IPC_END_MESSAGES(View)