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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 501583003: Move external popup menus from WebViewClient to WebFrameClient, part 3/3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nicer ipc Created 6 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 | Annotate | Revision Log
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "third_party/WebKit/public/web/WebTextDirection.h" 25 #include "third_party/WebKit/public/web/WebTextDirection.h"
26 #include "ui/accessibility/ax_node_data.h" 26 #include "ui/accessibility/ax_node_data.h"
27 27
28 class GURL; 28 class GURL;
29 struct AccessibilityHostMsg_EventParams; 29 struct AccessibilityHostMsg_EventParams;
30 struct AccessibilityHostMsg_LocationChangeParams; 30 struct AccessibilityHostMsg_LocationChangeParams;
31 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 31 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
32 struct FrameHostMsg_OpenURL_Params; 32 struct FrameHostMsg_OpenURL_Params;
33 struct FrameHostMsg_BeginNavigation_Params; 33 struct FrameHostMsg_BeginNavigation_Params;
34 struct FrameMsg_Navigate_Params; 34 struct FrameMsg_Navigate_Params;
35 #if defined(OS_MACOSX) || defined(OS_ANDROID)
36 struct FrameHostMsg_ShowPopup_Params;
37 #endif
35 38
36 namespace base { 39 namespace base {
37 class FilePath; 40 class FilePath;
38 class ListValue; 41 class ListValue;
39 } 42 }
40 43
41 namespace content { 44 namespace content {
42 45
43 class CrossProcessFrameConnector; 46 class CrossProcessFrameConnector;
44 class CrossSiteTransferringRequest; 47 class CrossSiteTransferringRequest;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // this frame, or create one if it doesn't exist yet, otherwise return 266 // this frame, or create one if it doesn't exist yet, otherwise return
264 // NULL. 267 // NULL.
265 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 268 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
266 269
267 #if defined(OS_WIN) 270 #if defined(OS_WIN)
268 void SetParentNativeViewAccessible( 271 void SetParentNativeViewAccessible(
269 gfx::NativeViewAccessible accessible_parent); 272 gfx::NativeViewAccessible accessible_parent);
270 gfx::NativeViewAccessible GetParentNativeViewAccessible() const; 273 gfx::NativeViewAccessible GetParentNativeViewAccessible() const;
271 #endif 274 #endif
272 275
276 #if defined(OS_MACOSX)
277 // Select popup menu related methods (for external popup menus).
278 void DidSelectPopupMenuItem(int selected_index);
279 void DidCancelPopupMenu();
280 #endif
281
282 #if defined(OS_ANDROID)
283 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
284 void DidCancelPopupMenu();
285 #endif
286
273 protected: 287 protected:
274 friend class RenderFrameHostFactory; 288 friend class RenderFrameHostFactory;
275 289
276 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost 290 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost
277 // should be the abstraction needed here, but we need RenderViewHost to pass 291 // should be the abstraction needed here, but we need RenderViewHost to pass
278 // into WebContentsObserver::FrameDetached for now. 292 // into WebContentsObserver::FrameDetached for now.
279 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, 293 RenderFrameHostImpl(RenderViewHostImpl* render_view_host,
280 RenderFrameHostDelegate* delegate, 294 RenderFrameHostDelegate* delegate,
281 FrameTree* frame_tree, 295 FrameTree* frame_tree,
282 FrameTreeNode* frame_tree_node, 296 FrameTreeNode* frame_tree_node,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 const base::string16& title, 353 const base::string16& title,
340 blink::WebTextDirection title_direction); 354 blink::WebTextDirection title_direction);
341 void OnUpdateEncoding(const std::string& encoding); 355 void OnUpdateEncoding(const std::string& encoding);
342 void OnBeginNavigation( 356 void OnBeginNavigation(
343 const FrameHostMsg_BeginNavigation_Params& params); 357 const FrameHostMsg_BeginNavigation_Params& params);
344 void OnAccessibilityEvents( 358 void OnAccessibilityEvents(
345 const std::vector<AccessibilityHostMsg_EventParams>& params); 359 const std::vector<AccessibilityHostMsg_EventParams>& params);
346 void OnAccessibilityLocationChanges( 360 void OnAccessibilityLocationChanges(
347 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 361 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
348 362
363 #if defined(OS_MACOSX) || defined(OS_ANDROID)
364 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
365 void OnHidePopup();
366 #endif
367
349 // Returns whether the given URL is allowed to commit in the current process. 368 // Returns whether the given URL is allowed to commit in the current process.
350 // This is a more conservative check than RenderProcessHost::FilterURL, since 369 // This is a more conservative check than RenderProcessHost::FilterURL, since
351 // it will be used to kill processes that commit unauthorized URLs. 370 // it will be used to kill processes that commit unauthorized URLs.
352 bool CanCommitURL(const GURL& url); 371 bool CanCommitURL(const GURL& url);
353 372
354 void PlatformNotificationPermissionRequestDone( 373 void PlatformNotificationPermissionRequestDone(
355 int request_id, blink::WebNotificationPermission permission); 374 int request_id, blink::WebNotificationPermission permission);
356 375
357 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 376 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
358 // refcount that calls Shutdown when it reaches zero. This allows each 377 // refcount that calls Shutdown when it reaches zero. This allows each
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; 446 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_;
428 // The most recently received accessibility tree - for testing only. 447 // The most recently received accessibility tree - for testing only.
429 scoped_ptr<ui::AXTree> ax_tree_for_testing_; 448 scoped_ptr<ui::AXTree> ax_tree_for_testing_;
430 449
431 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 450 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
432 }; 451 };
433 452
434 } // namespace content 453 } // namespace content
435 454
436 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 455 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698