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

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

Issue 251823002: Move didAccessInitialDocument to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 : RenderWidgetHostImpl(widget_delegate, 200 : RenderWidgetHostImpl(widget_delegate,
201 instance->GetProcess(), 201 instance->GetProcess(),
202 routing_id, 202 routing_id,
203 hidden), 203 hidden),
204 frames_ref_count_(0), 204 frames_ref_count_(0),
205 delegate_(delegate), 205 delegate_(delegate),
206 instance_(static_cast<SiteInstanceImpl*>(instance)), 206 instance_(static_cast<SiteInstanceImpl*>(instance)),
207 waiting_for_drag_context_response_(false), 207 waiting_for_drag_context_response_(false),
208 enabled_bindings_(0), 208 enabled_bindings_(0),
209 navigations_suspended_(false), 209 navigations_suspended_(false),
210 has_accessed_initial_document_(false),
211 main_frame_routing_id_(main_frame_routing_id), 210 main_frame_routing_id_(main_frame_routing_id),
212 run_modal_reply_msg_(NULL), 211 run_modal_reply_msg_(NULL),
213 run_modal_opener_id_(MSG_ROUTING_NONE), 212 run_modal_opener_id_(MSG_ROUTING_NONE),
214 is_waiting_for_beforeunload_ack_(false), 213 is_waiting_for_beforeunload_ack_(false),
215 unload_ack_is_for_cross_site_transition_(false), 214 unload_ack_is_for_cross_site_transition_(false),
216 sudden_termination_allowed_(false), 215 sudden_termination_allowed_(false),
217 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING), 216 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING),
218 virtual_keyboard_requested_(false), 217 virtual_keyboard_requested_(false),
219 weak_factory_(this) { 218 weak_factory_(this) {
220 DCHECK(instance_.get()); 219 DCHECK(instance_.get());
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 #if defined(OS_ANDROID) 1038 #if defined(OS_ANDROID)
1040 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged, 1039 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged,
1041 OnSelectionRootBoundsChanged) 1040 OnSelectionRootBoundsChanged)
1042 #endif 1041 #endif
1043 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) 1042 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL)
1044 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1043 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1045 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup) 1044 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup)
1046 IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup) 1045 IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup)
1047 #endif 1046 #endif
1048 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser) 1047 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser)
1049 IPC_MESSAGE_HANDLER(ViewHostMsg_DidAccessInitialDocument,
1050 OnDidAccessInitialDocument)
1051 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Events, OnAccessibilityEvents) 1048 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Events, OnAccessibilityEvents)
1052 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_LocationChanges, 1049 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_LocationChanges,
1053 OnAccessibilityLocationChanges) 1050 OnAccessibilityLocationChanges)
1054 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched) 1051 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched)
1055 // Have the super handle all other messages. 1052 // Have the super handle all other messages.
1056 IPC_MESSAGE_UNHANDLED( 1053 IPC_MESSAGE_UNHANDLED(
1057 handled = RenderWidgetHostImpl::OnMessageReceived(msg)) 1054 handled = RenderWidgetHostImpl::OnMessageReceived(msg))
1058 IPC_END_MESSAGE_MAP_EX() 1055 IPC_END_MESSAGE_MAP_EX()
1059 1056
1060 if (!msg_is_ok) { 1057 if (!msg_is_ok) {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 } else { 1676 } else {
1680 host_zoom_map->SetTemporaryZoomLevel( 1677 host_zoom_map->SetTemporaryZoomLevel(
1681 GetProcess()->GetID(), GetRoutingID(), zoom_level); 1678 GetProcess()->GetID(), GetRoutingID(), zoom_level);
1682 } 1679 }
1683 } 1680 }
1684 1681
1685 void RenderViewHostImpl::OnRunFileChooser(const FileChooserParams& params) { 1682 void RenderViewHostImpl::OnRunFileChooser(const FileChooserParams& params) {
1686 delegate_->RunFileChooser(this, params); 1683 delegate_->RunFileChooser(this, params);
1687 } 1684 }
1688 1685
1689 void RenderViewHostImpl::OnDidAccessInitialDocument() {
1690 has_accessed_initial_document_ = true;
1691 delegate_->DidAccessInitialDocument();
1692 }
1693
1694 void RenderViewHostImpl::OnFocusedNodeTouched(bool editable) { 1686 void RenderViewHostImpl::OnFocusedNodeTouched(bool editable) {
1695 #if defined(OS_WIN) 1687 #if defined(OS_WIN)
1696 if (editable) { 1688 if (editable) {
1697 virtual_keyboard_requested_ = base::win::DisplayVirtualKeyboard(); 1689 virtual_keyboard_requested_ = base::win::DisplayVirtualKeyboard();
1698 } else { 1690 } else {
1699 virtual_keyboard_requested_ = false; 1691 virtual_keyboard_requested_ = false;
1700 base::win::DismissVirtualKeyboard(); 1692 base::win::DismissVirtualKeyboard();
1701 } 1693 }
1702 #endif 1694 #endif
1703 } 1695 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 return true; 1751 return true;
1760 } 1752 }
1761 1753
1762 void RenderViewHostImpl::AttachToFrameTree() { 1754 void RenderViewHostImpl::AttachToFrameTree() {
1763 FrameTree* frame_tree = delegate_->GetFrameTree(); 1755 FrameTree* frame_tree = delegate_->GetFrameTree();
1764 1756
1765 frame_tree->ResetForMainFrameSwap(); 1757 frame_tree->ResetForMainFrameSwap();
1766 } 1758 }
1767 1759
1768 } // namespace content 1760 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698