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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 return platform_view_->UnlockMouse(); | 405 return platform_view_->UnlockMouse(); |
406 } | 406 } |
407 | 407 |
408 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { | 408 void RenderWidgetHostViewGuest::GetScreenInfo(WebKit::WebScreenInfo* results) { |
409 RenderWidgetHostViewPort* embedder_view = | 409 RenderWidgetHostViewPort* embedder_view = |
410 RenderWidgetHostViewPort::FromRWHV( | 410 RenderWidgetHostViewPort::FromRWHV( |
411 guest_->GetEmbedderRenderWidgetHostView()); | 411 guest_->GetEmbedderRenderWidgetHostView()); |
412 embedder_view->GetScreenInfo(results); | 412 embedder_view->GetScreenInfo(results); |
413 } | 413 } |
414 | 414 |
415 void RenderWidgetHostViewGuest::OnAccessibilityNotifications( | 415 void RenderWidgetHostViewGuest::OnAccessibilityEvents( |
416 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 416 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
417 } | 417 } |
418 | 418 |
419 #if defined(OS_MACOSX) | 419 #if defined(OS_MACOSX) |
420 void RenderWidgetHostViewGuest::SetActive(bool active) { | 420 void RenderWidgetHostViewGuest::SetActive(bool active) { |
421 platform_view_->SetActive(active); | 421 platform_view_->SetActive(active); |
422 } | 422 } |
423 | 423 |
424 void RenderWidgetHostViewGuest::SetTakesFocusOnlyOnMouseDown(bool flag) { | 424 void RenderWidgetHostViewGuest::SetTakesFocusOnlyOnMouseDown(bool flag) { |
425 platform_view_->SetTakesFocusOnlyOnMouseDown(flag); | 425 platform_view_->SetTakesFocusOnlyOnMouseDown(flag); |
426 } | 426 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 return; | 576 return; |
577 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 577 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
578 g_it != gestures->end(); | 578 g_it != gestures->end(); |
579 ++g_it) { | 579 ++g_it) { |
580 ForwardGestureEventToRenderer(*g_it); | 580 ForwardGestureEventToRenderer(*g_it); |
581 } | 581 } |
582 } | 582 } |
583 | 583 |
584 | 584 |
585 } // namespace content | 585 } // namespace content |
OLD | NEW |