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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 183923030: Almost finish moving context_menu_node_ from RenderViewImpl to RenderFrameImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 RenderViewHostDelegate* delegate, 149 RenderViewHostDelegate* delegate,
150 RenderWidgetHostDelegate* widget_delegate, 150 RenderWidgetHostDelegate* widget_delegate,
151 int routing_id, 151 int routing_id,
152 int main_frame_routing_id, 152 int main_frame_routing_id,
153 bool swapped_out, 153 bool swapped_out,
154 bool hidden); 154 bool hidden);
155 virtual ~RenderViewHostImpl(); 155 virtual ~RenderViewHostImpl();
156 156
157 // RenderViewHost implementation. 157 // RenderViewHost implementation.
158 virtual RenderFrameHost* GetMainFrame() OVERRIDE; 158 virtual RenderFrameHost* GetMainFrame() OVERRIDE;
159 virtual RenderFrameHost* GetFocusedFrame() OVERRIDE;
159 virtual void AllowBindings(int binding_flags) OVERRIDE; 160 virtual void AllowBindings(int binding_flags) OVERRIDE;
160 virtual void ClearFocusedElement() OVERRIDE; 161 virtual void ClearFocusedElement() OVERRIDE;
161 virtual void ClosePage() OVERRIDE; 162 virtual void ClosePage() OVERRIDE;
162 virtual void CopyImageAt(int x, int y) OVERRIDE; 163 virtual void CopyImageAt(int x, int y) OVERRIDE;
163 virtual void DesktopNotificationPermissionRequestDone( 164 virtual void DesktopNotificationPermissionRequestDone(
164 int callback_context) OVERRIDE; 165 int callback_context) OVERRIDE;
165 virtual void DesktopNotificationPostDisplay(int callback_context) OVERRIDE; 166 virtual void DesktopNotificationPostDisplay(int callback_context) OVERRIDE;
166 virtual void DesktopNotificationPostError( 167 virtual void DesktopNotificationPostError(
167 int notification_id, 168 int notification_id,
168 const base::string16& message) OVERRIDE; 169 const base::string16& message) OVERRIDE;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 IPC::Message* reply_msg); 575 IPC::Message* reply_msg);
575 void OnStartDragging(const DropData& drop_data, 576 void OnStartDragging(const DropData& drop_data,
576 blink::WebDragOperationsMask operations_allowed, 577 blink::WebDragOperationsMask operations_allowed,
577 const SkBitmap& bitmap, 578 const SkBitmap& bitmap,
578 const gfx::Vector2d& bitmap_offset_in_dip, 579 const gfx::Vector2d& bitmap_offset_in_dip,
579 const DragEventSourceInfo& event_info); 580 const DragEventSourceInfo& event_info);
580 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); 581 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
581 void OnTargetDropACK(); 582 void OnTargetDropACK();
582 void OnTakeFocus(bool reverse); 583 void OnTakeFocus(bool reverse);
583 void OnFocusedNodeChanged(bool is_editable_node); 584 void OnFocusedNodeChanged(bool is_editable_node);
585 void OnFocusedFrameChanged(int focused_frame_routing_id);
584 void OnAddMessageToConsole(int32 level, 586 void OnAddMessageToConsole(int32 level,
585 const base::string16& message, 587 const base::string16& message,
586 int32 line_no, 588 int32 line_no,
587 const base::string16& source_id); 589 const base::string16& source_id);
588 void OnUpdateInspectorSetting(const std::string& key, 590 void OnUpdateInspectorSetting(const std::string& key,
589 const std::string& value); 591 const std::string& value);
590 void OnShouldCloseACK( 592 void OnShouldCloseACK(
591 bool proceed, 593 bool proceed,
592 const base::TimeTicks& renderer_before_unload_start_time, 594 const base::TimeTicks& renderer_before_unload_start_time,
593 const base::TimeTicks& renderer_before_unload_end_time); 595 const base::TimeTicks& renderer_before_unload_end_time);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 // first commit. 668 // first commit.
667 bool has_accessed_initial_document_; 669 bool has_accessed_initial_document_;
668 670
669 // The current state of this RVH. 671 // The current state of this RVH.
670 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. 672 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state.
671 RenderViewHostImplState rvh_state_; 673 RenderViewHostImplState rvh_state_;
672 674
673 // Routing ID for the main frame's RenderFrameHost. 675 // Routing ID for the main frame's RenderFrameHost.
674 int main_frame_routing_id_; 676 int main_frame_routing_id_;
675 677
678 // Routing ID for the focused frame's RenderFrameHost.
679 int focused_frame_routing_id_;
680
676 // Set to true when there is a pending ViewMsg_ShouldClose message. This 681 // Set to true when there is a pending ViewMsg_ShouldClose message. This
677 // ensures we don't spam the renderer with multiple beforeunload requests. 682 // ensures we don't spam the renderer with multiple beforeunload requests.
678 // When either this value or IsWaitingForUnloadACK is true, the value of 683 // When either this value or IsWaitingForUnloadACK is true, the value of
679 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a 684 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a
680 // cross-site transition or a tab close attempt. 685 // cross-site transition or a tab close attempt.
681 // TODO(clamy): Remove this boolean and add one more state to the state 686 // TODO(clamy): Remove this boolean and add one more state to the state
682 // machine. 687 // machine.
683 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. 688 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state.
684 bool is_waiting_for_beforeunload_ack_; 689 bool is_waiting_for_beforeunload_ack_;
685 690
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 742 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
738 }; 743 };
739 744
740 #if defined(COMPILER_MSVC) 745 #if defined(COMPILER_MSVC)
741 #pragma warning(pop) 746 #pragma warning(pop)
742 #endif 747 #endif
743 748
744 } // namespace content 749 } // namespace content
745 750
746 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 751 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698