| 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 webkit::ppapi::PluginModule* pepper_module); | 298 webkit::ppapi::PluginModule* pepper_module); |
| 299 | 299 |
| 300 // Creates a fullscreen container for a pepper plugin instance. | 300 // Creates a fullscreen container for a pepper plugin instance. |
| 301 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer( | 301 RenderWidgetFullscreenPepper* CreatePepperFullscreenContainer( |
| 302 webkit::ppapi::PluginInstance* plugin); | 302 webkit::ppapi::PluginInstance* plugin); |
| 303 | 303 |
| 304 // Create a new plugin without checking the content settings. | 304 // Create a new plugin without checking the content settings. |
| 305 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, | 305 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, |
| 306 const WebKit::WebPluginParams& params); | 306 const WebKit::WebPluginParams& params); |
| 307 | 307 |
| 308 // Informs the render view that a PPAPI plugin has gained or lost focus. |
| 309 void PpapiPluginFocusChanged(); |
| 310 |
| 308 #if defined(OS_MACOSX) | 311 #if defined(OS_MACOSX) |
| 309 // Informs the render view that the given plugin has gained or lost focus. | 312 // Informs the render view that the given plugin has gained or lost focus. |
| 310 void PluginFocusChanged(bool focused, int plugin_id); | 313 void PluginFocusChanged(bool focused, int plugin_id); |
| 311 | 314 |
| 312 // Starts plugin IME. | 315 // Starts plugin IME. |
| 313 void StartPluginIme(); | 316 void StartPluginIme(); |
| 314 | 317 |
| 315 // Helper routines for accelerated plugin support. Used by the | 318 // Helper routines for accelerated plugin support. Used by the |
| 316 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 319 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
| 317 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 320 gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 TransportDIB** dib, | 605 TransportDIB** dib, |
| 603 gfx::Rect* location, | 606 gfx::Rect* location, |
| 604 gfx::Rect* clip); | 607 gfx::Rect* clip); |
| 605 virtual gfx::Point GetScrollOffset(); | 608 virtual gfx::Point GetScrollOffset(); |
| 606 virtual void DidHandleKeyEvent(); | 609 virtual void DidHandleKeyEvent(); |
| 607 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 610 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
| 608 virtual void OnSetFocus(bool enable); | 611 virtual void OnSetFocus(bool enable); |
| 609 virtual void OnWasHidden(); | 612 virtual void OnWasHidden(); |
| 610 virtual void OnWasRestored(bool needs_repainting); | 613 virtual void OnWasRestored(bool needs_repainting); |
| 611 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 614 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
| 615 virtual void OnImeSetComposition( |
| 616 const string16& text, |
| 617 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 618 int selection_start, |
| 619 int selection_end) OVERRIDE; |
| 620 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; |
| 621 virtual WebKit::WebTextInputType GetTextInputType() OVERRIDE; |
| 612 | 622 |
| 613 private: | 623 private: |
| 614 // For unit tests. | 624 // For unit tests. |
| 615 friend class ExternalPopupMenuTest; | 625 friend class ExternalPopupMenuTest; |
| 616 friend class PepperDeviceTest; | 626 friend class PepperDeviceTest; |
| 617 friend class RenderViewTest; | 627 friend class RenderViewTest; |
| 618 | 628 |
| 619 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 629 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
| 620 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 630 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
| 621 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 631 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 // bunch of stuff, you should probably create a helper class and put your | 1159 // bunch of stuff, you should probably create a helper class and put your |
| 1150 // data and methods on that to avoid bloating RenderView more. You can use | 1160 // data and methods on that to avoid bloating RenderView more. You can use |
| 1151 // the Observer interface to filter IPC messages and receive frame change | 1161 // the Observer interface to filter IPC messages and receive frame change |
| 1152 // notifications. | 1162 // notifications. |
| 1153 // --------------------------------------------------------------------------- | 1163 // --------------------------------------------------------------------------- |
| 1154 | 1164 |
| 1155 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1165 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1156 }; | 1166 }; |
| 1157 | 1167 |
| 1158 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1168 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |