OLD | NEW |
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 enabled_bindings_(0), | 186 enabled_bindings_(0), |
187 page_id_(-1), | 187 page_id_(-1), |
188 main_frame_routing_id_(main_frame_routing_id), | 188 main_frame_routing_id_(main_frame_routing_id), |
189 run_modal_reply_msg_(NULL), | 189 run_modal_reply_msg_(NULL), |
190 run_modal_opener_id_(MSG_ROUTING_NONE), | 190 run_modal_opener_id_(MSG_ROUTING_NONE), |
191 is_waiting_for_beforeunload_ack_(false), | 191 is_waiting_for_beforeunload_ack_(false), |
192 unload_ack_is_for_cross_site_transition_(false), | 192 unload_ack_is_for_cross_site_transition_(false), |
193 sudden_termination_allowed_(false), | 193 sudden_termination_allowed_(false), |
194 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING), | 194 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING), |
195 virtual_keyboard_requested_(false), | 195 virtual_keyboard_requested_(false), |
196 weak_factory_(this), | |
197 is_focused_element_editable_(false), | 196 is_focused_element_editable_(false), |
198 updating_web_preferences_(false) { | 197 updating_web_preferences_(false), |
| 198 weak_factory_(this) { |
199 DCHECK(instance_.get()); | 199 DCHECK(instance_.get()); |
200 CHECK(delegate_); // http://crbug.com/82827 | 200 CHECK(delegate_); // http://crbug.com/82827 |
201 | 201 |
202 GetProcess()->EnableSendQueue(); | 202 GetProcess()->EnableSendQueue(); |
203 | 203 |
204 if (swapped_out) { | 204 if (swapped_out) { |
205 rvh_state_ = STATE_SWAPPED_OUT; | 205 rvh_state_ = STATE_SWAPPED_OUT; |
206 } else { | 206 } else { |
207 rvh_state_ = STATE_DEFAULT; | 207 rvh_state_ = STATE_DEFAULT; |
208 instance_->increment_active_view_count(); | 208 instance_->increment_active_view_count(); |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1512 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1513 | 1513 |
1514 frame_tree->ResetForMainFrameSwap(); | 1514 frame_tree->ResetForMainFrameSwap(); |
1515 } | 1515 } |
1516 | 1516 |
1517 void RenderViewHostImpl::SelectWordAroundCaret() { | 1517 void RenderViewHostImpl::SelectWordAroundCaret() { |
1518 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1518 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1519 } | 1519 } |
1520 | 1520 |
1521 } // namespace content | 1521 } // namespace content |
OLD | NEW |