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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.cc

Issue 9187071: Lift the 64K message size limit for postMessage to/from NativeClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.cc (revision 117568)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.cc (working copy)
@@ -1,6 +1,6 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can
-// be found in the LICENSE file.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#include "native_client/src/shared/ppapi_proxy/plugin_ppb_input_event.h"
@@ -23,7 +23,6 @@
using ppapi_proxy::DebugPrintf;
using ppapi_proxy::GetMainSrpcChannel;
using ppapi_proxy::kInvalidResourceId;
-using ppapi_proxy::kMaxVarSize;
using ppapi_proxy::PluginInputEvent;
using ppapi_proxy::PluginResource;
using ppapi_proxy::Serialize;
@@ -272,7 +271,7 @@
"%"NACL_PRIu32", key_code=%"NACL_PRIu32"\n",
instance, type, time_stamp, modifiers, key_code);
// Serialize the character_text Var.
- uint32_t text_size = kMaxVarSize;
+ uint32_t text_size = 0;
nacl::scoped_array<char> text_bytes(Serialize(&character_text, 1,
&text_size));
PP_Resource resource_id = kInvalidResourceId;
@@ -441,4 +440,3 @@
}
} // namespace ppapi_proxy
-

Powered by Google App Engine
This is Rietveld 408576698