OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace gfx { | 38 namespace gfx { |
39 class Point; | 39 class Point; |
40 class Rect; | 40 class Rect; |
41 } | 41 } |
42 | 42 |
43 namespace IPC { | 43 namespace IPC { |
44 struct ChannelHandle; | 44 struct ChannelHandle; |
45 } | 45 } |
46 | 46 |
| 47 namespace ui { |
| 48 class Range; |
| 49 } |
| 50 |
47 namespace webkit { | 51 namespace webkit { |
48 struct WebPluginInfo; | 52 struct WebPluginInfo; |
49 namespace ppapi { | 53 namespace ppapi { |
50 class PepperFilePath; | 54 class PepperFilePath; |
51 class PluginInstance; | 55 class PluginInstance; |
52 class PluginModule; | 56 class PluginModule; |
53 } | 57 } |
54 } | 58 } |
55 | 59 |
56 namespace WebKit { | 60 namespace WebKit { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 124 |
121 // Notification that the page visibility has changed. The default is visible. | 125 // Notification that the page visibility has changed. The default is visible. |
122 void PageVisibilityChanged(bool is_visible); | 126 void PageVisibilityChanged(bool is_visible); |
123 | 127 |
124 // IME status. | 128 // IME status. |
125 bool IsPluginFocused() const; | 129 bool IsPluginFocused() const; |
126 gfx::Rect GetCaretBounds() const; | 130 gfx::Rect GetCaretBounds() const; |
127 ui::TextInputType GetTextInputType() const; | 131 ui::TextInputType GetTextInputType() const; |
128 bool IsPluginAcceptingCompositionEvents() const; | 132 bool IsPluginAcceptingCompositionEvents() const; |
129 bool CanComposeInline() const; | 133 bool CanComposeInline() const; |
| 134 void GetSurroundingText(string16* text, ui::Range* range) const; |
130 | 135 |
131 // IME events. | 136 // IME events. |
132 void OnImeSetComposition( | 137 void OnImeSetComposition( |
133 const string16& text, | 138 const string16& text, |
134 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 139 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
135 int selection_start, | 140 int selection_start, |
136 int selection_end); | 141 int selection_end); |
137 void OnImeConfirmComposition(const string16& text); | 142 void OnImeConfirmComposition(const string16& text); |
138 | 143 |
139 // Notification that a mouse event has arrived at the render view. | 144 // Notification that a mouse event has arrived at the render view. |
140 void WillHandleMouseEvent(); | 145 void WillHandleMouseEvent(); |
141 | 146 |
142 // PluginDelegate implementation. | 147 // PluginDelegate implementation. |
143 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance, | 148 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance, |
144 bool focused) OVERRIDE; | 149 bool focused) OVERRIDE; |
145 virtual void PluginTextInputTypeChanged( | 150 virtual void PluginTextInputTypeChanged( |
146 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 151 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
147 virtual void PluginCaretPositionChanged( | 152 virtual void PluginCaretPositionChanged( |
148 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 153 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
149 virtual void PluginRequestedCancelComposition( | 154 virtual void PluginRequestedCancelComposition( |
150 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 155 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 156 virtual void PluginSelectionChanged( |
| 157 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
151 virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance) OVERRIDE; | 158 virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
152 virtual void InstanceCreated( | 159 virtual void InstanceCreated( |
153 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 160 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
154 virtual void InstanceDeleted( | 161 virtual void InstanceDeleted( |
155 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 162 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
156 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; | 163 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; |
157 virtual uint32_t GetAudioHardwareOutputSampleRate() OVERRIDE; | 164 virtual uint32_t GetAudioHardwareOutputSampleRate() OVERRIDE; |
158 virtual uint32_t GetAudioHardwareOutputBufferSize() OVERRIDE; | 165 virtual uint32_t GetAudioHardwareOutputBufferSize() OVERRIDE; |
159 virtual PlatformAudioOutput* CreateAudioOutput( | 166 virtual PlatformAudioOutput* CreateAudioOutput( |
160 uint32_t sample_rate, | 167 uint32_t sample_rate, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 472 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
466 | 473 |
467 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 474 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
468 | 475 |
469 scoped_ptr<DeviceEnumerationEventHandler> device_enumeration_event_handler_; | 476 scoped_ptr<DeviceEnumerationEventHandler> device_enumeration_event_handler_; |
470 | 477 |
471 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 478 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
472 }; | 479 }; |
473 | 480 |
474 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 481 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |