OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 class ExternalPopupMenu; | 65 class ExternalPopupMenu; |
66 class GeolocationDispatcher; | 66 class GeolocationDispatcher; |
67 class ManifestManager; | 67 class ManifestManager; |
68 class MediaStreamDispatcher; | 68 class MediaStreamDispatcher; |
69 class MediaStreamRendererFactory; | 69 class MediaStreamRendererFactory; |
70 class MidiDispatcher; | 70 class MidiDispatcher; |
71 class NotificationPermissionDispatcher; | 71 class NotificationPermissionDispatcher; |
72 class NotificationProvider; | 72 class NotificationProvider; |
73 class PageState; | 73 class PageState; |
74 class PepperPluginInstanceImpl; | 74 class PepperPluginInstanceImpl; |
| 75 class PluginPowerSaverHelper; |
75 class PushMessagingDispatcher; | 76 class PushMessagingDispatcher; |
76 class RendererAccessibility; | 77 class RendererAccessibility; |
77 class RendererCdmManager; | 78 class RendererCdmManager; |
78 class RendererMediaPlayerManager; | 79 class RendererMediaPlayerManager; |
79 class RendererPpapiHost; | 80 class RendererPpapiHost; |
80 class RenderFrameObserver; | 81 class RenderFrameObserver; |
81 class RenderViewImpl; | 82 class RenderViewImpl; |
82 class RenderWidget; | 83 class RenderWidget; |
83 class RenderWidgetFullscreenPepper; | 84 class RenderWidgetFullscreenPepper; |
84 class ScreenOrientationDispatcher; | 85 class ScreenOrientationDispatcher; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void SimulateImeConfirmComposition(const base::string16& text, | 229 void SimulateImeConfirmComposition(const base::string16& text, |
229 const gfx::Range& replacement_range); | 230 const gfx::Range& replacement_range); |
230 | 231 |
231 // TODO(jam): remove these once the IPC handler moves from RenderView to | 232 // TODO(jam): remove these once the IPC handler moves from RenderView to |
232 // RenderFrame. | 233 // RenderFrame. |
233 void OnImeSetComposition( | 234 void OnImeSetComposition( |
234 const base::string16& text, | 235 const base::string16& text, |
235 const std::vector<blink::WebCompositionUnderline>& underlines, | 236 const std::vector<blink::WebCompositionUnderline>& underlines, |
236 int selection_start, | 237 int selection_start, |
237 int selection_end); | 238 int selection_end); |
238 void OnImeConfirmComposition( | 239 void OnImeConfirmComposition(const base::string16& text, |
239 const base::string16& text, | 240 const gfx::Range& replacement_range, |
240 const gfx::Range& replacement_range, | 241 bool keep_selection); |
241 bool keep_selection); | 242 |
| 243 PluginPowerSaverHelper* plugin_power_saver_helper(); |
242 #endif // ENABLE_PLUGINS | 244 #endif // ENABLE_PLUGINS |
243 | 245 |
244 // May return NULL in some cases, especially if userMediaClient() returns | 246 // May return NULL in some cases, especially if userMediaClient() returns |
245 // NULL. | 247 // NULL. |
246 MediaStreamDispatcher* GetMediaStreamDispatcher(); | 248 MediaStreamDispatcher* GetMediaStreamDispatcher(); |
247 | 249 |
248 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 250 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
249 void DidHideExternalPopupMenu(); | 251 void DidHideExternalPopupMenu(); |
250 #endif | 252 #endif |
251 | 253 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // RenderFrameProxy exists only when is_swapped_out_ is true. | 669 // RenderFrameProxy exists only when is_swapped_out_ is true. |
668 // TODO(nasko): This can be removed once we don't have a swapped out state on | 670 // TODO(nasko): This can be removed once we don't have a swapped out state on |
669 // RenderFrame. See https://crbug.com/357747. | 671 // RenderFrame. See https://crbug.com/357747. |
670 RenderFrameProxy* render_frame_proxy_; | 672 RenderFrameProxy* render_frame_proxy_; |
671 bool is_detaching_; | 673 bool is_detaching_; |
672 | 674 |
673 #if defined(ENABLE_PLUGINS) | 675 #if defined(ENABLE_PLUGINS) |
674 // Current text input composition text. Empty if no composition is in | 676 // Current text input composition text. Empty if no composition is in |
675 // progress. | 677 // progress. |
676 base::string16 pepper_composition_text_; | 678 base::string16 pepper_composition_text_; |
| 679 |
| 680 PluginPowerSaverHelper* plugin_power_saver_helper_; |
677 #endif | 681 #endif |
678 | 682 |
679 RendererWebCookieJarImpl cookie_jar_; | 683 RendererWebCookieJarImpl cookie_jar_; |
680 | 684 |
681 // All the registered observers. | 685 // All the registered observers. |
682 ObserverList<RenderFrameObserver> observers_; | 686 ObserverList<RenderFrameObserver> observers_; |
683 | 687 |
684 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 688 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
685 | 689 |
686 // The node that the context menu was pressed over. | 690 // The node that the context menu was pressed over. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 #endif | 784 #endif |
781 | 785 |
782 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 786 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
783 | 787 |
784 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 788 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
785 }; | 789 }; |
786 | 790 |
787 } // namespace content | 791 } // namespace content |
788 | 792 |
789 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 793 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |