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

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: rebase and update blimp_engine.gn 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
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
825 #if defined(OS_MACOSX)
826 void OnSelectPopupMenuItem(int selected_index);
827 #else
822 void OnSelectPopupMenuItems(bool canceled, 828 void OnSelectPopupMenuItems(bool canceled,
823 const std::vector<int>& selected_indices); 829 const std::vector<int>& selected_indices);
824 #elif defined(OS_MACOSX) 830 #endif
825 void OnSelectPopupMenuItem(int selected_index); 831 #endif
832
833 #if defined(OS_MACOSX)
826 void OnCopyToFindPboard(); 834 void OnCopyToFindPboard();
827 #endif 835 #endif
828 836
829 // Requests that the browser process navigates to |url|. If 837 // Requests that the browser process navigates to |url|. If
830 // |is_history_navigation_in_new_child| is true, the browser process should 838 // |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 839 // look for a matching FrameNavigationEntry in the last committed entry to use
832 // instead of |url|. 840 // instead of |url|.
833 void OpenURL(const GURL& url, 841 void OpenURL(const GURL& url,
834 const Referrer& referrer, 842 const Referrer& referrer,
835 blink::WebNavigationPolicy policy, 843 blink::WebNavigationPolicy policy,
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 blink::WebEffectiveConnectionType effective_connection_type_; 1215 blink::WebEffectiveConnectionType effective_connection_type_;
1208 1216
1209 // Whether or not this RenderFrame is currently pasting. 1217 // Whether or not this RenderFrame is currently pasting.
1210 bool is_pasting_; 1218 bool is_pasting_;
1211 1219
1212 // Whether we must stop creating nested message loops for modal dialogs. This 1220 // Whether we must stop creating nested message loops for modal dialogs. This
1213 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the 1221 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the
1214 // stack that interferes with swapping out. 1222 // stack that interferes with swapping out.
1215 bool suppress_further_dialogs_; 1223 bool suppress_further_dialogs_;
1216 1224
1217 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1225 #if defined(USE_EXTERNAL_POPUP_MENU)
1218 // The external popup for the currently showing select popup. 1226 // The external popup for the currently showing select popup.
1219 std::unique_ptr<ExternalPopupMenu> external_popup_menu_; 1227 std::unique_ptr<ExternalPopupMenu> external_popup_menu_;
1220 #endif 1228 #endif
1221 1229
1222 FrameBlameContext* blame_context_; // Not owned. 1230 FrameBlameContext* blame_context_; // Not owned.
1223 1231
1224 // Plugins ------------------------------------------------------------------- 1232 // Plugins -------------------------------------------------------------------
1225 #if defined(ENABLE_PLUGINS) 1233 #if defined(ENABLE_PLUGINS)
1226 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet; 1234 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet;
1227 PepperPluginSet active_pepper_instances_; 1235 PepperPluginSet active_pepper_instances_;
1228 1236
1229 // Whether or not the focus is on a PPAPI plugin 1237 // Whether or not the focus is on a PPAPI plugin
1230 PepperPluginInstanceImpl* focused_pepper_plugin_; 1238 PepperPluginInstanceImpl* focused_pepper_plugin_;
1231 1239
1232 // The plugin instance that received the last mouse event. It is set to NULL 1240 // 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. 1241 // 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 1242 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
1235 // the RenderFrameImpl to NULL it out when it destructs. 1243 // the RenderFrameImpl to NULL it out when it destructs.
1236 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1244 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1237 #endif 1245 #endif
1238 1246
1239 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1247 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1240 1248
1241 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1249 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1242 }; 1250 };
1243 1251
1244 } // namespace content 1252 } // namespace content
1245 1253
1246 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1254 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698