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

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: Created 6 years, 8 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 #if defined(OS_ANDROID) 1039 #if defined(OS_ANDROID)
1041 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged, 1040 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged,
1042 OnSelectionRootBoundsChanged) 1041 OnSelectionRootBoundsChanged)
1043 #endif 1042 #endif
1044 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) 1043 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL)
1045 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1044 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1046 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup) 1045 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup)
1047 IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup) 1046 IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup)
1048 #endif 1047 #endif
1049 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser) 1048 IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser)
1050 IPC_MESSAGE_HANDLER(ViewHostMsg_DidAccessInitialDocument,
1051 OnDidAccessInitialDocument)
1052 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Events, OnAccessibilityEvents) 1049 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Events, OnAccessibilityEvents)
1053 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_LocationChanges, 1050 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_LocationChanges,
1054 OnAccessibilityLocationChanges) 1051 OnAccessibilityLocationChanges)
1055 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched) 1052 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched)
1056 // Have the super handle all other messages. 1053 // Have the super handle all other messages.
1057 IPC_MESSAGE_UNHANDLED( 1054 IPC_MESSAGE_UNHANDLED(
1058 handled = RenderWidgetHostImpl::OnMessageReceived(msg)) 1055 handled = RenderWidgetHostImpl::OnMessageReceived(msg))
1059 IPC_END_MESSAGE_MAP_EX() 1056 IPC_END_MESSAGE_MAP_EX()
1060 1057
1061 if (!msg_is_ok) { 1058 if (!msg_is_ok) {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 } else { 1677 } else {
1681 host_zoom_map->SetTemporaryZoomLevel( 1678 host_zoom_map->SetTemporaryZoomLevel(
1682 GetProcess()->GetID(), GetRoutingID(), zoom_level); 1679 GetProcess()->GetID(), GetRoutingID(), zoom_level);
1683 } 1680 }
1684 } 1681 }
1685 1682
1686 void RenderViewHostImpl::OnRunFileChooser(const FileChooserParams& params) { 1683 void RenderViewHostImpl::OnRunFileChooser(const FileChooserParams& params) {
1687 delegate_->RunFileChooser(this, params); 1684 delegate_->RunFileChooser(this, params);
1688 } 1685 }
1689 1686
1690 void RenderViewHostImpl::OnDidAccessInitialDocument() {
1691 has_accessed_initial_document_ = true;
1692 delegate_->DidAccessInitialDocument();
1693 }
1694
1695 void RenderViewHostImpl::OnFocusedNodeTouched(bool editable) { 1687 void RenderViewHostImpl::OnFocusedNodeTouched(bool editable) {
1696 #if defined(OS_WIN) 1688 #if defined(OS_WIN)
1697 if (editable) { 1689 if (editable) {
1698 virtual_keyboard_requested_ = base::win::DisplayVirtualKeyboard(); 1690 virtual_keyboard_requested_ = base::win::DisplayVirtualKeyboard();
1699 } else { 1691 } else {
1700 virtual_keyboard_requested_ = false; 1692 virtual_keyboard_requested_ = false;
1701 base::win::DismissVirtualKeyboard(); 1693 base::win::DismissVirtualKeyboard();
1702 } 1694 }
1703 #endif 1695 #endif
1704 } 1696 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 return true; 1752 return true;
1761 } 1753 }
1762 1754
1763 void RenderViewHostImpl::AttachToFrameTree() { 1755 void RenderViewHostImpl::AttachToFrameTree() {
1764 FrameTree* frame_tree = delegate_->GetFrameTree(); 1756 FrameTree* frame_tree = delegate_->GetFrameTree();
1765 1757
1766 frame_tree->ResetForMainFrameSwap(); 1758 frame_tree->ResetForMainFrameSwap();
1767 } 1759 }
1768 1760
1769 } // namespace content 1761 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698