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

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: Rebase and fix style issue Created 6 years, 4 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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 FROM_HERE, 1163 FROM_HERE,
1146 base::Bind( 1164 base::Bind(
1147 &TransitionRequestManager::SetHasPendingTransitionRequest, 1165 &TransitionRequestManager::SetHasPendingTransitionRequest,
1148 base::Unretained(TransitionRequestManager::GetInstance()), 1166 base::Unretained(TransitionRequestManager::GetInstance()),
1149 GetProcess()->GetID(), 1167 GetProcess()->GetID(),
1150 routing_id_, 1168 routing_id_,
1151 has_pending_request)); 1169 has_pending_request));
1152 } 1170 }
1153 1171
1154 } // namespace content 1172 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/renderer_host/legacy_render_widget_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698