| 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 #endif | 347 #endif |
| 348 frame_tree_(new NavigatorImpl(&controller_, this), | 348 frame_tree_(new NavigatorImpl(&controller_, this), |
| 349 this, this, this, this), | 349 this, this, this, this), |
| 350 is_loading_(false), | 350 is_loading_(false), |
| 351 is_load_to_different_document_(false), | 351 is_load_to_different_document_(false), |
| 352 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), | 352 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), |
| 353 crashed_error_code_(0), | 353 crashed_error_code_(0), |
| 354 waiting_for_response_(false), | 354 waiting_for_response_(false), |
| 355 load_state_(net::LOAD_STATE_IDLE, base::string16()), | 355 load_state_(net::LOAD_STATE_IDLE, base::string16()), |
| 356 loading_total_progress_(0.0), | 356 loading_total_progress_(0.0), |
| 357 loading_weak_factory_(this), | |
| 358 loading_frames_in_progress_(0), | 357 loading_frames_in_progress_(0), |
| 359 upload_size_(0), | 358 upload_size_(0), |
| 360 upload_position_(0), | 359 upload_position_(0), |
| 361 displayed_insecure_content_(false), | 360 displayed_insecure_content_(false), |
| 362 has_accessed_initial_document_(false), | 361 has_accessed_initial_document_(false), |
| 363 capturer_count_(0), | 362 capturer_count_(0), |
| 364 should_normally_be_visible_(true), | 363 should_normally_be_visible_(true), |
| 365 is_being_destroyed_(false), | 364 is_being_destroyed_(false), |
| 366 notify_disconnection_(false), | 365 notify_disconnection_(false), |
| 367 dialog_manager_(NULL), | 366 dialog_manager_(NULL), |
| 368 is_showing_before_unload_dialog_(false), | 367 is_showing_before_unload_dialog_(false), |
| 369 last_active_time_(base::TimeTicks::Now()), | 368 last_active_time_(base::TimeTicks::Now()), |
| 370 closed_by_user_gesture_(false), | 369 closed_by_user_gesture_(false), |
| 371 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)), | 370 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)), |
| 372 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), | 371 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), |
| 373 totalPinchGestureAmount_(0), | 372 totalPinchGestureAmount_(0), |
| 374 currentPinchZoomStepDelta_(0), | 373 currentPinchZoomStepDelta_(0), |
| 375 render_view_message_source_(NULL), | 374 render_view_message_source_(NULL), |
| 376 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), | 375 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), |
| 377 fullscreen_widget_had_focus_at_shutdown_(false), | 376 fullscreen_widget_had_focus_at_shutdown_(false), |
| 378 is_subframe_(false), | 377 is_subframe_(false), |
| 379 force_disable_overscroll_content_(false), | 378 force_disable_overscroll_content_(false), |
| 380 last_dialog_suppressed_(false), | 379 last_dialog_suppressed_(false), |
| 381 accessibility_mode_( | 380 accessibility_mode_( |
| 382 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), | 381 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), |
| 383 audio_stream_monitor_(this) { | 382 audio_stream_monitor_(this), |
| 383 loading_weak_factory_(this) { |
| 384 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) | 384 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) |
| 385 g_created_callbacks.Get().at(i).Run(this); | 385 g_created_callbacks.Get().at(i).Run(this); |
| 386 frame_tree_.SetFrameRemoveListener( | 386 frame_tree_.SetFrameRemoveListener( |
| 387 base::Bind(&WebContentsImpl::OnFrameRemoved, | 387 base::Bind(&WebContentsImpl::OnFrameRemoved, |
| 388 base::Unretained(this))); | 388 base::Unretained(this))); |
| 389 } | 389 } |
| 390 | 390 |
| 391 WebContentsImpl::~WebContentsImpl() { | 391 WebContentsImpl::~WebContentsImpl() { |
| 392 is_being_destroyed_ = true; | 392 is_being_destroyed_ = true; |
| 393 | 393 |
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4352 node->render_manager()->ResumeResponseDeferredAtStart(); | 4352 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4353 } | 4353 } |
| 4354 | 4354 |
| 4355 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4355 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4356 force_disable_overscroll_content_ = force_disable; | 4356 force_disable_overscroll_content_ = force_disable; |
| 4357 if (view_) | 4357 if (view_) |
| 4358 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4358 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4359 } | 4359 } |
| 4360 | 4360 |
| 4361 } // namespace content | 4361 } // namespace content |
| OLD | NEW |