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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 1 month 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
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/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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 613 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
614 } 614 }
615 } 615 }
616 616
617 RenderProcessHost* WebContentsImpl::GetRenderProcessHost() const { 617 RenderProcessHost* WebContentsImpl::GetRenderProcessHost() const {
618 RenderViewHostImpl* host = GetRenderManager()->current_host(); 618 RenderViewHostImpl* host = GetRenderManager()->current_host();
619 return host ? host->GetProcess() : NULL; 619 return host ? host->GetProcess() : NULL;
620 } 620 }
621 621
622 RenderFrameHost* WebContentsImpl::GetMainFrame() { 622 RenderFrameHost* WebContentsImpl::GetMainFrame() {
623
623 return frame_tree_.root()->current_frame_host(); 624 return frame_tree_.root()->current_frame_host();
624 } 625 }
625 626
626 RenderFrameHost* WebContentsImpl::GetFocusedFrame() { 627 RenderFrameHost* WebContentsImpl::GetFocusedFrame() {
627 if (!frame_tree_.GetFocusedFrame()) 628 if (!frame_tree_.GetFocusedFrame())
628 return NULL; 629 return NULL;
629 return frame_tree_.GetFocusedFrame()->current_frame_host(); 630 return frame_tree_.GetFocusedFrame()->current_frame_host();
630 } 631 }
631 632
632 void WebContentsImpl::ForEachFrame( 633 void WebContentsImpl::ForEachFrame(
(...skipping 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after
4318 node->render_manager()->ResumeResponseDeferredAtStart(); 4319 node->render_manager()->ResumeResponseDeferredAtStart();
4319 } 4320 }
4320 4321
4321 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4322 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4322 force_disable_overscroll_content_ = force_disable; 4323 force_disable_overscroll_content_ = force_disable;
4323 if (view_) 4324 if (view_)
4324 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4325 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4325 } 4326 }
4326 4327
4327 } // namespace content 4328 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698