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

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

Issue 1992393002: Enable external popup menu in Blimp, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 int selection_end); 357 int selection_end);
358 void OnImeConfirmComposition(const base::string16& text, 358 void OnImeConfirmComposition(const base::string16& text,
359 const gfx::Range& replacement_range, 359 const gfx::Range& replacement_range,
360 bool keep_selection); 360 bool keep_selection);
361 #endif // defined(ENABLE_PLUGINS) 361 #endif // defined(ENABLE_PLUGINS)
362 362
363 // May return NULL in some cases, especially if userMediaClient() returns 363 // May return NULL in some cases, especially if userMediaClient() returns
364 // NULL. 364 // NULL.
365 MediaStreamDispatcher* GetMediaStreamDispatcher(); 365 MediaStreamDispatcher* GetMediaStreamDispatcher();
366 366
367 #if defined(OS_MACOSX) || defined(OS_ANDROID) 367 #if defined(USE_EXTERNAL_POPUP_MENU)
368 void DidHideExternalPopupMenu(); 368 void DidHideExternalPopupMenu();
369 #endif 369 #endif
370 370
371 // IPC::Sender 371 // IPC::Sender
372 bool Send(IPC::Message* msg) override; 372 bool Send(IPC::Message* msg) override;
373 373
374 // IPC::Listener 374 // IPC::Listener
375 bool OnMessageReceived(const IPC::Message& msg) override; 375 bool OnMessageReceived(const IPC::Message& msg) override;
376 376
377 // RenderFrame implementation: 377 // RenderFrame implementation:
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); 812 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params);
813 void OnFind(int request_id, 813 void OnFind(int request_id,
814 const base::string16& search_text, 814 const base::string16& search_text,
815 const blink::WebFindOptions& options); 815 const blink::WebFindOptions& options);
816 void OnStopFinding(StopFindAction action); 816 void OnStopFinding(StopFindAction action);
817 void OnEnableViewSourceMode(); 817 void OnEnableViewSourceMode();
818 void OnSuppressFurtherDialogs(); 818 void OnSuppressFurtherDialogs();
819 #if defined(OS_ANDROID) 819 #if defined(OS_ANDROID)
820 void OnActivateNearestFindResult(int request_id, float x, float y); 820 void OnActivateNearestFindResult(int request_id, float x, float y);
821 void OnFindMatchRects(int current_version); 821 void OnFindMatchRects(int current_version);
822 #endif
823
824 #if defined(USE_EXTERNAL_POPUP_MENU) && !defined(OS_MACOSX)
Wez 2016/05/27 02:24:51 nit: This might read more clearly as a nested #if,
haibinlu 2016/05/28 01:37:59 Done.
822 void OnSelectPopupMenuItems(bool canceled, 825 void OnSelectPopupMenuItems(bool canceled,
823 const std::vector<int>& selected_indices); 826 const std::vector<int>& selected_indices);
824 #elif defined(OS_MACOSX) 827 #elif defined(OS_MACOSX)
825 void OnSelectPopupMenuItem(int selected_index); 828 void OnSelectPopupMenuItem(int selected_index);
826 void OnCopyToFindPboard(); 829 void OnCopyToFindPboard();
827 #endif 830 #endif
828 831
829 // Requests that the browser process navigates to |url|. If 832 // Requests that the browser process navigates to |url|. If
830 // |is_history_navigation_in_new_child| is true, the browser process should 833 // |is_history_navigation_in_new_child| is true, the browser process should
831 // look for a matching FrameNavigationEntry in the last committed entry to use 834 // look for a matching FrameNavigationEntry in the last committed entry to use
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 blink::WebEffectiveConnectionType effective_connection_type_; 1210 blink::WebEffectiveConnectionType effective_connection_type_;
1208 1211
1209 // Whether or not this RenderFrame is currently pasting. 1212 // Whether or not this RenderFrame is currently pasting.
1210 bool is_pasting_; 1213 bool is_pasting_;
1211 1214
1212 // Whether we must stop creating nested message loops for modal dialogs. This 1215 // Whether we must stop creating nested message loops for modal dialogs. This
1213 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the 1216 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the
1214 // stack that interferes with swapping out. 1217 // stack that interferes with swapping out.
1215 bool suppress_further_dialogs_; 1218 bool suppress_further_dialogs_;
1216 1219
1217 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1220 #if defined(USE_EXTERNAL_POPUP_MENU)
1218 // The external popup for the currently showing select popup. 1221 // The external popup for the currently showing select popup.
1219 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; 1222 std::unique_ptr<ExternalPopupMenu> external_popup_menu_;
1220 #endif 1223 #endif
1221 1224
1222 FrameBlameContext* blame_context_; // Not owned. 1225 FrameBlameContext* blame_context_; // Not owned.
1223 1226
1224 // Plugins ------------------------------------------------------------------- 1227 // Plugins -------------------------------------------------------------------
1225 #if defined(ENABLE_PLUGINS) 1228 #if defined(ENABLE_PLUGINS)
1226 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet; 1229 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet;
1227 PepperPluginSet active_pepper_instances_; 1230 PepperPluginSet active_pepper_instances_;
1228 1231
1229 // Whether or not the focus is on a PPAPI plugin 1232 // Whether or not the focus is on a PPAPI plugin
1230 PepperPluginInstanceImpl* focused_pepper_plugin_; 1233 PepperPluginInstanceImpl* focused_pepper_plugin_;
1231 1234
1232 // The plugin instance that received the last mouse event. It is set to NULL 1235 // The plugin instance that received the last mouse event. It is set to NULL
1233 // if the last mouse event went to elements other than Pepper plugins. 1236 // if the last mouse event went to elements other than Pepper plugins.
1234 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on 1237 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
1235 // the RenderFrameImpl to NULL it out when it destructs. 1238 // the RenderFrameImpl to NULL it out when it destructs.
1236 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1239 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1237 #endif 1240 #endif
1238 1241
1239 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1242 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1240 1243
1241 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1244 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1242 }; 1245 };
1243 1246
1244 } // namespace content 1247 } // namespace content
1245 1248
1246 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1249 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698