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

Side by Side Diff: content/browser/renderer_host/render_view_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: rebase 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
23 #include "net/base/load_states.h" 23 #include "net/base/load_states.h"
24 #include "third_party/WebKit/public/web/WebAXEnums.h" 24 #include "third_party/WebKit/public/web/WebAXEnums.h"
25 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 25 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
26 #include "third_party/WebKit/public/web/WebPopupType.h" 26 #include "third_party/WebKit/public/web/WebPopupType.h"
27 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/skia/include/core/SkColor.h"
28 #include "ui/base/window_open_disposition.h" 28 #include "ui/base/window_open_disposition.h"
29 29
30 class SkBitmap; 30 class SkBitmap;
31 class FrameMsg_Navigate; 31 class FrameMsg_Navigate;
32 struct FrameMsg_Navigate_Params;
32 struct MediaPlayerAction; 33 struct MediaPlayerAction;
33 struct ViewHostMsg_CreateWindow_Params; 34 struct ViewHostMsg_CreateWindow_Params;
34 struct ViewHostMsg_ShowPopup_Params;
35 struct FrameMsg_Navigate_Params;
36 struct ViewMsg_PostMessage_Params; 35 struct ViewMsg_PostMessage_Params;
37 36
38 namespace base { 37 namespace base {
39 class ListValue; 38 class ListValue;
40 } 39 }
41 40
42 namespace gfx { 41 namespace gfx {
43 class Range; 42 class Range;
44 } 43 }
45 44
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 const ViewHostMsg_CreateWindow_Params& params, 328 const ViewHostMsg_CreateWindow_Params& params,
330 SessionStorageNamespace* session_storage_namespace); 329 SessionStorageNamespace* session_storage_namespace);
331 330
332 // Creates a new RenderWidget with the given route id. |popup_type| indicates 331 // Creates a new RenderWidget with the given route id. |popup_type| indicates
333 // if this widget is a popup and what kind of popup it is (select, autofill). 332 // if this widget is a popup and what kind of popup it is (select, autofill).
334 void CreateNewWidget(int route_id, blink::WebPopupType popup_type); 333 void CreateNewWidget(int route_id, blink::WebPopupType popup_type);
335 334
336 // Creates a full screen RenderWidget. 335 // Creates a full screen RenderWidget.
337 void CreateNewFullscreenWidget(int route_id); 336 void CreateNewFullscreenWidget(int route_id);
338 337
339 #if defined(OS_MACOSX)
340 // Select popup menu related methods (for external popup menus).
341 void DidSelectPopupMenuItem(int selected_index);
342 void DidCancelPopupMenu();
343 #endif
344
345 #if defined(ENABLE_BROWSER_CDMS) 338 #if defined(ENABLE_BROWSER_CDMS)
346 MediaWebContentsObserver* media_web_contents_observer() { 339 MediaWebContentsObserver* media_web_contents_observer() {
347 return media_web_contents_observer_.get(); 340 return media_web_contents_observer_.get();
348 } 341 }
349 #endif 342 #endif
350 343
351 #if defined(OS_ANDROID)
352 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
353 void DidCancelPopupMenu();
354 #endif
355
356 int main_frame_routing_id() const { 344 int main_frame_routing_id() const {
357 return main_frame_routing_id_; 345 return main_frame_routing_id_;
358 } 346 }
359 347
360 bool is_waiting_for_beforeunload_ack() { 348 bool is_waiting_for_beforeunload_ack() {
361 return is_waiting_for_beforeunload_ack_; 349 return is_waiting_for_beforeunload_ack_;
362 } 350 }
363 351
364 // Whether the RVH is waiting for the unload ack from the renderer. 352 // Whether the RVH is waiting for the unload ack from the renderer.
365 bool IsWaitingForUnloadACK() const; 353 bool IsWaitingForUnloadACK() const;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 const DragEventSourceInfo& event_info); 419 const DragEventSourceInfo& event_info);
432 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); 420 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
433 void OnTargetDropACK(); 421 void OnTargetDropACK();
434 void OnTakeFocus(bool reverse); 422 void OnTakeFocus(bool reverse);
435 void OnFocusedNodeChanged(bool is_editable_node); 423 void OnFocusedNodeChanged(bool is_editable_node);
436 void OnClosePageACK(); 424 void OnClosePageACK();
437 void OnDidZoomURL(double zoom_level, const GURL& url); 425 void OnDidZoomURL(double zoom_level, const GURL& url);
438 void OnRunFileChooser(const FileChooserParams& params); 426 void OnRunFileChooser(const FileChooserParams& params);
439 void OnFocusedNodeTouched(bool editable); 427 void OnFocusedNodeTouched(bool editable);
440 428
441 #if defined(OS_MACOSX) || defined(OS_ANDROID)
442 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
443 void OnHidePopup();
444 #endif
445
446 private: 429 private:
447 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate 430 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate
448 // utility functions and state needed in both classes, while we move frame 431 // utility functions and state needed in both classes, while we move frame
449 // specific code away from this class. 432 // specific code away from this class.
450 friend class RenderFrameHostImpl; 433 friend class RenderFrameHostImpl;
451 friend class TestRenderViewHost; 434 friend class TestRenderViewHost;
452 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost); 435 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost);
453 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane); 436 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane);
454 437
455 // TODO(creis): Move to a private namespace on RenderFrameHostImpl. 438 // TODO(creis): Move to a private namespace on RenderFrameHostImpl.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 536 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
554 }; 537 };
555 538
556 #if defined(COMPILER_MSVC) 539 #if defined(COMPILER_MSVC)
557 #pragma warning(pop) 540 #pragma warning(pop)
558 #endif 541 #endif
559 542
560 } // namespace content 543 } // namespace content
561 544
562 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 545 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate_view.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698