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

Side by Side Diff: webkit/plugins/ppapi/ppb_text_input_impl.h

Issue 10170014: Move text input API to Instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ppapi/shared_impl/function_group_base.h"
11 #include "ppapi/thunk/ppb_text_input_api.h"
12
13 namespace webkit {
14 namespace ppapi {
15
16 class PluginInstance;
17
18 class PPB_TextInput_Impl
19 : public ::ppapi::FunctionGroupBase,
20 public ::ppapi::thunk::PPB_TextInput_FunctionAPI {
21 public:
22 PPB_TextInput_Impl(PluginInstance* instance);
23
24 // FunctionGroupBase overrides.
25 virtual ::ppapi::thunk::PPB_TextInput_FunctionAPI*
26 AsPPB_TextInput_FunctionAPI() OVERRIDE;
27
28 // PPB_TextInput_FunctionAPI implementation.
29 virtual void SetTextInputType(PP_Instance instance,
30 PP_TextInput_Type type) OVERRIDE;
31 virtual void UpdateCaretPosition(PP_Instance instance,
32 const PP_Rect& caret,
33 const PP_Rect& bounding_box) OVERRIDE;
34 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE;
35 virtual void SelectionChanged(PP_Instance instance) OVERRIDE;
36 virtual void UpdateSurroundingText(PP_Instance instance,
37 const char* text,
38 uint32_t caret,
39 uint32_t anchor) OVERRIDE;
40
41 private:
42 PluginInstance* instance_;
43 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Impl);
44 };
45
46 } // namespace ppapi
47 } // namespace webkit
48
49 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698