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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 class RendererMediaPlayerManager; | 142 class RendererMediaPlayerManager; |
143 class RendererMediaSessionManager; | 143 class RendererMediaSessionManager; |
144 class RendererPpapiHost; | 144 class RendererPpapiHost; |
145 class RendererSurfaceViewManager; | 145 class RendererSurfaceViewManager; |
146 class RenderFrameObserver; | 146 class RenderFrameObserver; |
147 class RenderViewImpl; | 147 class RenderViewImpl; |
148 class RenderWidget; | 148 class RenderWidget; |
149 class RenderWidgetFullscreenPepper; | 149 class RenderWidgetFullscreenPepper; |
150 class ResourceRequestBodyImpl; | 150 class ResourceRequestBodyImpl; |
151 class ScreenOrientationDispatcher; | 151 class ScreenOrientationDispatcher; |
152 class TextInputClientObserver; | |
152 class UserMediaClientImpl; | 153 class UserMediaClientImpl; |
153 class WakeLockDispatcher; | 154 class WakeLockDispatcher; |
154 struct CommonNavigationParams; | 155 struct CommonNavigationParams; |
155 struct CustomContextMenuContext; | 156 struct CustomContextMenuContext; |
156 struct FileChooserFileInfo; | 157 struct FileChooserFileInfo; |
157 struct FileChooserParams; | 158 struct FileChooserParams; |
158 struct FrameOwnerProperties; | 159 struct FrameOwnerProperties; |
159 struct FrameReplicationState; | 160 struct FrameReplicationState; |
160 struct NavigationParams; | 161 struct NavigationParams; |
161 struct RequestNavigationParams; | 162 struct RequestNavigationParams; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
684 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); | 685 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); |
685 | 686 |
686 // Notification that the given plugin is focused or unfocused. | 687 // Notification that the given plugin is focused or unfocused. |
687 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); | 688 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); |
688 | 689 |
689 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); | 690 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); |
690 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); | 691 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); |
691 void OnSetPepperVolume(int32_t pp_instance, double volume); | 692 void OnSetPepperVolume(int32_t pp_instance, double volume); |
692 #endif // ENABLE_PLUGINS | 693 #endif // ENABLE_PLUGINS |
693 | 694 |
695 #if defined(OS_MACOSX) | |
696 void OnTextInputClientMessageReceived(RenderWidget* render_widget, | |
697 const IPC::Message& message); | |
698 #endif | |
699 | |
694 protected: | 700 protected: |
695 explicit RenderFrameImpl(const CreateParams& params); | 701 explicit RenderFrameImpl(const CreateParams& params); |
696 | 702 |
697 private: | 703 private: |
698 friend class RenderFrameImplTest; | 704 friend class RenderFrameImplTest; |
699 friend class RenderFrameObserver; | 705 friend class RenderFrameObserver; |
700 friend class RenderAccessibilityImplTest; | 706 friend class RenderAccessibilityImplTest; |
701 friend class TestRenderFrame; | 707 friend class TestRenderFrame; |
702 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 708 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
703 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 709 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1263 // Whether or not the focus is on a PPAPI plugin | 1269 // Whether or not the focus is on a PPAPI plugin |
1264 PepperPluginInstanceImpl* focused_pepper_plugin_; | 1270 PepperPluginInstanceImpl* focused_pepper_plugin_; |
1265 | 1271 |
1266 // The plugin instance that received the last mouse event. It is set to NULL | 1272 // The plugin instance that received the last mouse event. It is set to NULL |
1267 // if the last mouse event went to elements other than Pepper plugins. | 1273 // if the last mouse event went to elements other than Pepper plugins. |
1268 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on | 1274 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on |
1269 // the RenderFrameImpl to NULL it out when it destructs. | 1275 // the RenderFrameImpl to NULL it out when it destructs. |
1270 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; | 1276 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; |
1271 #endif | 1277 #endif |
1272 | 1278 |
1279 #if defined(OS_MACOSX) | |
1280 // The receiver end for TextInputClientMac messages at this local root. | |
1281 std::unique_ptr<TextInputClientObserver> text_input_client_observer_; | |
Charlie Reis
2016/09/02 21:57:47
Maybe add a TODO to move this to RenderWidget if t
EhsanK
2016/09/08 17:10:40
Done. I added a TODO. That being said, with lfg@'s
Charlie Reis
2016/09/09 22:23:32
Acknowledged.
| |
1282 #endif | |
1283 | |
1273 mojo::Binding<mojom::Frame> frame_binding_; | 1284 mojo::Binding<mojom::Frame> frame_binding_; |
1274 mojom::FrameHostPtr frame_host_; | 1285 mojom::FrameHostPtr frame_host_; |
1275 | 1286 |
1276 // Indicates whether |didAccessInitialDocument| was called. | 1287 // Indicates whether |didAccessInitialDocument| was called. |
1277 bool has_accessed_initial_document_; | 1288 bool has_accessed_initial_document_; |
1278 | 1289 |
1279 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1290 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1280 | 1291 |
1281 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1292 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1282 }; | 1293 }; |
1283 | 1294 |
1284 } // namespace content | 1295 } // namespace content |
1285 | 1296 |
1286 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1297 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |