Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2278283002: Implement Mac Pop-up Dictionary for OOPIF. (Closed)
Patch Set: Rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); 682 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
682 683
683 // Notification that the given plugin is focused or unfocused. 684 // Notification that the given plugin is focused or unfocused.
684 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); 685 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
685 686
686 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); 687 void PepperStartsPlayback(PepperPluginInstanceImpl* instance);
687 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); 688 void PepperStopsPlayback(PepperPluginInstanceImpl* instance);
688 void OnSetPepperVolume(int32_t pp_instance, double volume); 689 void OnSetPepperVolume(int32_t pp_instance, double volume);
689 #endif // ENABLE_PLUGINS 690 #endif // ENABLE_PLUGINS
690 691
692 #if defined(OS_MACOSX)
693 void OnTextInputClientMessageReceived(RenderWidget* render_widget,
694 const IPC::Message& message);
695 #endif
696
691 protected: 697 protected:
692 explicit RenderFrameImpl(const CreateParams& params); 698 explicit RenderFrameImpl(const CreateParams& params);
693 699
694 private: 700 private:
695 friend class RenderFrameImplTest; 701 friend class RenderFrameImplTest;
696 friend class RenderFrameObserver; 702 friend class RenderFrameObserver;
697 friend class RenderAccessibilityImplTest; 703 friend class RenderAccessibilityImplTest;
698 friend class TestRenderFrame; 704 friend class TestRenderFrame;
699 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 705 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
700 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 // Whether or not the focus is on a PPAPI plugin 1268 // Whether or not the focus is on a PPAPI plugin
1263 PepperPluginInstanceImpl* focused_pepper_plugin_; 1269 PepperPluginInstanceImpl* focused_pepper_plugin_;
1264 1270
1265 // The plugin instance that received the last mouse event. It is set to NULL 1271 // The plugin instance that received the last mouse event. It is set to NULL
1266 // if the last mouse event went to elements other than Pepper plugins. 1272 // if the last mouse event went to elements other than Pepper plugins.
1267 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on 1273 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
1268 // the RenderFrameImpl to NULL it out when it destructs. 1274 // the RenderFrameImpl to NULL it out when it destructs.
1269 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1275 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1270 #endif 1276 #endif
1271 1277
1278 #if defined(OS_MACOSX)
1279 // TODO(ekaramad): TextInputClientObserver should be in RenderWidget. We can't
1280 // do this now since we need access to WebViewImpl. Remove this once the logic
1281 // is fully moved to RenderWidget.
1282 // The receiver end for TextInputClientMac messages at this local root.
1283 std::unique_ptr<TextInputClientObserver> text_input_client_observer_;
1284 #endif
1285
1272 mojo::Binding<mojom::Frame> frame_binding_; 1286 mojo::Binding<mojom::Frame> frame_binding_;
1273 mojom::FrameHostPtr frame_host_; 1287 mojom::FrameHostPtr frame_host_;
1274 1288
1275 // Indicates whether |didAccessInitialDocument| was called. 1289 // Indicates whether |didAccessInitialDocument| was called.
1276 bool has_accessed_initial_document_; 1290 bool has_accessed_initial_document_;
1277 1291
1278 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1292 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1279 1293
1280 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1294 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1281 }; 1295 };
1282 1296
1283 } // namespace content 1297 } // namespace content
1284 1298
1285 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1299 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698