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

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

Issue 1815563006: Remove [SG]etParentNativeViewAccessible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_plugin_quirks
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 outer_web_contents_->node_->inner_web_contents_tree_nodes_.insert(this); 310 outer_web_contents_->node_->inner_web_contents_tree_nodes_.insert(this);
311 } 311 }
312 312
313 // WebContentsImpl ------------------------------------------------------------- 313 // WebContentsImpl -------------------------------------------------------------
314 314
315 WebContentsImpl::WebContentsImpl(BrowserContext* browser_context) 315 WebContentsImpl::WebContentsImpl(BrowserContext* browser_context)
316 : delegate_(NULL), 316 : delegate_(NULL),
317 controller_(this, browser_context), 317 controller_(this, browser_context),
318 render_view_host_delegate_view_(NULL), 318 render_view_host_delegate_view_(NULL),
319 created_with_opener_(false), 319 created_with_opener_(false),
320 #if defined(OS_WIN)
321 accessible_parent_(NULL),
322 #endif
323 frame_tree_(new NavigatorImpl(&controller_, this), 320 frame_tree_(new NavigatorImpl(&controller_, this),
324 this, 321 this,
325 this, 322 this,
326 this, 323 this,
327 this), 324 this),
328 is_load_to_different_document_(false), 325 is_load_to_different_document_(false),
329 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), 326 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING),
330 crashed_error_code_(0), 327 crashed_error_code_(0),
331 waiting_for_response_(false), 328 waiting_for_response_(false),
332 load_state_(net::LOAD_STATE_IDLE, base::string16()), 329 load_state_(net::LOAD_STATE_IDLE, base::string16()),
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 } 909 }
913 910
914 bool WebContentsImpl::IsTreeOnlyAccessibilityModeForTesting() const { 911 bool WebContentsImpl::IsTreeOnlyAccessibilityModeForTesting() const {
915 return accessibility_mode_ == AccessibilityModeTreeOnly; 912 return accessibility_mode_ == AccessibilityModeTreeOnly;
916 } 913 }
917 914
918 bool WebContentsImpl::IsFullAccessibilityModeForTesting() const { 915 bool WebContentsImpl::IsFullAccessibilityModeForTesting() const {
919 return accessibility_mode_ == AccessibilityModeComplete; 916 return accessibility_mode_ == AccessibilityModeComplete;
920 } 917 }
921 918
922 #if defined(OS_WIN)
923 void WebContentsImpl::SetParentNativeViewAccessible(
924 gfx::NativeViewAccessible accessible_parent) {
925 accessible_parent_ = accessible_parent;
926 RenderFrameHostImpl* rfh = GetMainFrame();
927 if (rfh)
928 rfh->SetParentNativeViewAccessible(accessible_parent);
929 }
930 #endif
931
932 const PageImportanceSignals& WebContentsImpl::GetPageImportanceSignals() const { 919 const PageImportanceSignals& WebContentsImpl::GetPageImportanceSignals() const {
933 return page_importance_signals_; 920 return page_importance_signals_;
934 } 921 }
935 922
936 const base::string16& WebContentsImpl::GetTitle() const { 923 const base::string16& WebContentsImpl::GetTitle() const {
937 // Transient entries take precedence. They are used for interstitial pages 924 // Transient entries take precedence. They are used for interstitial pages
938 // that are shown on top of existing pages. 925 // that are shown on top of existing pages.
939 NavigationEntry* entry = controller_.GetTransientEntry(); 926 NavigationEntry* entry = controller_.GetTransientEntry();
940 std::string accept_languages = 927 std::string accept_languages =
941 GetContentClient()->browser()->GetAcceptLangs( 928 GetContentClient()->browser()->GetAcceptLangs(
(...skipping 2968 matching lines...) Expand 10 before | Expand all | Expand 10 after
3910 WebContents* WebContentsImpl::GetAsWebContents() { 3897 WebContents* WebContentsImpl::GetAsWebContents() {
3911 return this; 3898 return this;
3912 } 3899 }
3913 3900
3914 bool WebContentsImpl::IsNeverVisible() { 3901 bool WebContentsImpl::IsNeverVisible() {
3915 if (!delegate_) 3902 if (!delegate_)
3916 return false; 3903 return false;
3917 return delegate_->IsNeverVisible(this); 3904 return delegate_->IsNeverVisible(this);
3918 } 3905 }
3919 3906
3920 #if defined(OS_WIN)
3921 gfx::NativeViewAccessible WebContentsImpl::GetParentNativeViewAccessible() {
3922 return accessible_parent_;
3923 }
3924 #endif
3925
3926 RenderViewHostDelegateView* WebContentsImpl::GetDelegateView() { 3907 RenderViewHostDelegateView* WebContentsImpl::GetDelegateView() {
3927 return render_view_host_delegate_view_; 3908 return render_view_host_delegate_view_;
3928 } 3909 }
3929 3910
3930 RendererPreferences WebContentsImpl::GetRendererPrefs( 3911 RendererPreferences WebContentsImpl::GetRendererPrefs(
3931 BrowserContext* browser_context) const { 3912 BrowserContext* browser_context) const {
3932 return renderer_preferences_; 3913 return renderer_preferences_;
3933 } 3914 }
3934 3915
3935 gfx::Rect WebContentsImpl::GetRootWindowResizerRect( 3916 gfx::Rect WebContentsImpl::GetRootWindowResizerRect(
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
4841 else 4822 else
4842 WasHidden(); 4823 WasHidden();
4843 } 4824 }
4844 4825
4845 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 4826 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
4846 JavaScriptDialogManager* dialog_manager) { 4827 JavaScriptDialogManager* dialog_manager) {
4847 dialog_manager_ = dialog_manager; 4828 dialog_manager_ = dialog_manager;
4848 } 4829 }
4849 4830
4850 } // namespace content 4831 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698