On Thu, Feb 19, 2009 at 2:35 PM, Darin Fisher <[email protected]> wrote:

> std::vector<unsigned short> text;
> std::vector<unsigned short> unmodified_text;
> std::vector<unsigned short> key_identifier;
>

Their equivalents, yes.


> Is it really the case that those are unbounded in length?  Or, is there
> some small max length that they can be?
>

There's no theoretical limit on the Mac. I don't know what the practical
limit is.


> Why isn't this a problem for Windows and Linux since they also have to
> populate the PlatformKeyboardEvent's m_text, m_unmodifiedText,
> and m_keyIdentifier fields.
>

AFAICT, they guarantee one character per input event. The Mac doesn't. I can
see doing a cap, though it doesn't thrill me.

Avi

>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to