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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 415633002: Simplify access to LegacyRenderWidgetHostHWND. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_ax_4
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 void RenderFrameHostImpl::AccessibilityHitTest(const gfx::Point& point) { 422 void RenderFrameHostImpl::AccessibilityHitTest(const gfx::Point& point) {
423 Send(new AccessibilityMsg_HitTest(routing_id_, point)); 423 Send(new AccessibilityMsg_HitTest(routing_id_, point));
424 } 424 }
425 425
426 void RenderFrameHostImpl::AccessibilityFatalError() { 426 void RenderFrameHostImpl::AccessibilityFatalError() {
427 Send(new AccessibilityMsg_FatalError(routing_id_)); 427 Send(new AccessibilityMsg_FatalError(routing_id_));
428 browser_accessibility_manager_.reset(NULL); 428 browser_accessibility_manager_.reset(NULL);
429 } 429 }
430 430
431 gfx::AcceleratedWidget
432 RenderFrameHostImpl::AccessibilityGetAcceleratedWidget() {
433 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>(
434 render_view_host_->GetView());
435 if (view)
436 return view->AccessibilityGetAcceleratedWidget();
437 return gfx::kNullAcceleratedWidget;
438 }
439
440 gfx::NativeViewAccessible
441 RenderFrameHostImpl::AccessibilityGetNativeViewAccessible() {
442 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>(
443 render_view_host_->GetView());
444 if (view)
445 return view->AccessibilityGetNativeViewAccessible();
446 return NULL;
447 }
448
431 void RenderFrameHostImpl::Init() { 449 void RenderFrameHostImpl::Init() {
432 GetProcess()->ResumeRequestsForView(routing_id_); 450 GetProcess()->ResumeRequestsForView(routing_id_);
433 } 451 }
434 452
435 void RenderFrameHostImpl::OnAddMessageToConsole( 453 void RenderFrameHostImpl::OnAddMessageToConsole(
436 int32 level, 454 int32 level,
437 const base::string16& message, 455 const base::string16& message,
438 int32 line_no, 456 int32 line_no,
439 const base::string16& source_id) { 457 const base::string16& source_id) {
440 if (delegate_->AddMessageToConsole(level, message, line_no, source_id)) 458 if (delegate_->AddMessageToConsole(level, message, line_no, source_id))
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 FROM_HERE, 1161 FROM_HERE,
1144 base::Bind( 1162 base::Bind(
1145 &TransitionRequestManager::SetHasPendingTransitionRequest, 1163 &TransitionRequestManager::SetHasPendingTransitionRequest,
1146 base::Unretained(TransitionRequestManager::GetInstance()), 1164 base::Unretained(TransitionRequestManager::GetInstance()),
1147 GetProcess()->GetID(), 1165 GetProcess()->GetID(),
1148 routing_id_, 1166 routing_id_,
1149 has_pending_request)); 1167 has_pending_request));
1150 } 1168 }
1151 1169
1152 } // namespace content 1170 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698