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