OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
14 #include "ppapi/c/private/ppb_instance_private.h" | 14 #include "ppapi/c/private/ppb_instance_private.h" |
| 15 #include "ui/base/ime/text_input_type.h" |
15 | 16 |
16 class GURL; | 17 class GURL; |
17 | 18 |
18 namespace base { | 19 namespace base { |
19 class FilePath; | 20 class FilePath; |
20 } | 21 } |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class ImageSkia; | 24 class ImageSkia; |
24 class Rect; | 25 class Rect; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; | 104 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; |
104 | 105 |
105 // Sets a read-only property on the <embed> tag for this plugin instance. | 106 // Sets a read-only property on the <embed> tag for this plugin instance. |
106 virtual void SetEmbedProperty(PP_Var key, PP_Var value) = 0; | 107 virtual void SetEmbedProperty(PP_Var key, PP_Var value) = 0; |
107 | 108 |
108 // Sets the selected text for this plugin. | 109 // Sets the selected text for this plugin. |
109 virtual void SetSelectedText(const base::string16& selected_text) = 0; | 110 virtual void SetSelectedText(const base::string16& selected_text) = 0; |
110 | 111 |
111 // Sets the link currently under the cursor. | 112 // Sets the link currently under the cursor. |
112 virtual void SetLinkUnderCursor(const std::string& url) = 0; | 113 virtual void SetLinkUnderCursor(const std::string& url) = 0; |
| 114 |
| 115 // Sets the text input type for this plugin. |
| 116 virtual void SetTextInputType(ui::TextInputType type) = 0; |
113 }; | 117 }; |
114 | 118 |
115 } // namespace content | 119 } // namespace content |
116 | 120 |
117 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 121 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |