OLD | NEW |
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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Notification that the given plugin has crashed. | 242 // Notification that the given plugin has crashed. |
243 void PluginCrashed(const FilePath& plugin_path); | 243 void PluginCrashed(const FilePath& plugin_path); |
244 | 244 |
245 // Creates a fullscreen container for a pepper plugin instance. | 245 // Creates a fullscreen container for a pepper plugin instance. |
246 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer( | 246 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer( |
247 webkit::ppapi::PluginInstance* plugin); | 247 webkit::ppapi::PluginInstance* plugin); |
248 | 248 |
249 // Informs the render view that a PPAPI plugin has gained or lost focus. | 249 // Informs the render view that a PPAPI plugin has gained or lost focus. |
250 void PpapiPluginFocusChanged(); | 250 void PpapiPluginFocusChanged(); |
251 | 251 |
| 252 // Informs the render view that a PPAPI plugin has changed text input status. |
| 253 void PpapiPluginTextInputTypeChanged(); |
| 254 |
| 255 // Cancels current composition. |
| 256 void PpapiPluginCancelComposition(); |
| 257 |
252 // Request updated policy regarding firewall NAT traversal being enabled. | 258 // Request updated policy regarding firewall NAT traversal being enabled. |
253 void RequestRemoteAccessClientFirewallTraversal(); | 259 void RequestRemoteAccessClientFirewallTraversal(); |
254 | 260 |
255 #if defined(OS_MACOSX) || defined(OS_WIN) | 261 #if defined(OS_MACOSX) || defined(OS_WIN) |
256 // Informs the render view that the given plugin has gained or lost focus. | 262 // Informs the render view that the given plugin has gained or lost focus. |
257 void PluginFocusChanged(bool focused, int plugin_id); | 263 void PluginFocusChanged(bool focused, int plugin_id); |
258 #endif | 264 #endif |
259 | 265 |
260 #if defined(OS_MACOSX) | 266 #if defined(OS_MACOSX) |
261 // Starts plugin IME. | 267 // Starts plugin IME. |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 virtual void OnWasHidden(); | 633 virtual void OnWasHidden(); |
628 virtual void OnWasRestored(bool needs_repainting); | 634 virtual void OnWasRestored(bool needs_repainting); |
629 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 635 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
630 virtual void OnImeSetComposition( | 636 virtual void OnImeSetComposition( |
631 const string16& text, | 637 const string16& text, |
632 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 638 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
633 int selection_start, | 639 int selection_start, |
634 int selection_end) OVERRIDE; | 640 int selection_end) OVERRIDE; |
635 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; | 641 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; |
636 virtual ui::TextInputType GetTextInputType() OVERRIDE; | 642 virtual ui::TextInputType GetTextInputType() OVERRIDE; |
| 643 virtual gfx::Rect GetCaretBounds() OVERRIDE; |
637 virtual bool CanComposeInline() OVERRIDE; | 644 virtual bool CanComposeInline() OVERRIDE; |
638 virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE; | 645 virtual bool WebWidgetHandlesCompositorScheduling() const OVERRIDE; |
639 | 646 |
640 private: | 647 private: |
641 // For unit tests. | 648 // For unit tests. |
642 friend class ExternalPopupMenuTest; | 649 friend class ExternalPopupMenuTest; |
643 friend class PepperDeviceTest; | 650 friend class PepperDeviceTest; |
644 friend class RenderViewTest; | 651 friend class RenderViewTest; |
645 | 652 |
646 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 653 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 // bunch of stuff, you should probably create a helper class and put your | 1208 // bunch of stuff, you should probably create a helper class and put your |
1202 // data and methods on that to avoid bloating RenderView more. You can | 1209 // data and methods on that to avoid bloating RenderView more. You can |
1203 // use the Observer interface to filter IPC messages and receive frame change | 1210 // use the Observer interface to filter IPC messages and receive frame change |
1204 // notifications. | 1211 // notifications. |
1205 // --------------------------------------------------------------------------- | 1212 // --------------------------------------------------------------------------- |
1206 | 1213 |
1207 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1214 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1208 }; | 1215 }; |
1209 | 1216 |
1210 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1217 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |