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

Side by Side Diff: ppapi/shared_impl/ppb_instance_shared.cc

Issue 10083013: Merge 132027 - Make the text input not require round-trips when the text is updated. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/shared_impl/ppb_instance_shared.h" 5 #include "ppapi/shared_impl/ppb_instance_shared.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_input_event.h" 10 #include "ppapi/c/ppb_input_event.h"
11 #include "ppapi/shared_impl/ppapi_globals.h" 11 #include "ppapi/shared_impl/ppapi_globals.h"
12 #include "ppapi/shared_impl/var.h" 12 #include "ppapi/shared_impl/var.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 15
16 // static
17 const int PPB_Instance_Shared::kExtraCharsForTextInput = 100;
18
16 PPB_Instance_Shared::~PPB_Instance_Shared() { 19 PPB_Instance_Shared::~PPB_Instance_Shared() {
17 } 20 }
18 21
19 void PPB_Instance_Shared::Log(PP_Instance instance, 22 void PPB_Instance_Shared::Log(PP_Instance instance,
20 PP_LogLevel_Dev level, 23 PP_LogLevel_Dev level,
21 PP_Var value) { 24 PP_Var value) {
22 LogWithSource(instance, level, PP_MakeUndefined(), value); 25 LogWithSource(instance, level, PP_MakeUndefined(), value);
23 } 26 }
24 27
25 void PPB_Instance_Shared::LogWithSource(PP_Instance instance, 28 void PPB_Instance_Shared::LogWithSource(PP_Instance instance,
(...skipping 20 matching lines...) Expand all
46 PP_INPUTEVENT_CLASS_WHEEL | 49 PP_INPUTEVENT_CLASS_WHEEL |
47 PP_INPUTEVENT_CLASS_TOUCH | 50 PP_INPUTEVENT_CLASS_TOUCH |
48 PP_INPUTEVENT_CLASS_IME)) 51 PP_INPUTEVENT_CLASS_IME))
49 return PP_ERROR_NOTSUPPORTED; 52 return PP_ERROR_NOTSUPPORTED;
50 53
51 // Everything else is valid. 54 // Everything else is valid.
52 return PP_OK; 55 return PP_OK;
53 } 56 }
54 57
55 } // namespace ppapi 58 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698