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" |
11 #include "content/browser/renderer_host/render_widget_host_view_guest.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_guest.h" |
12 #include "content/common/browser_plugin/browser_plugin_messages.h" | 12 #include "content/common/browser_plugin/browser_plugin_messages.h" |
13 #include "content/common/gpu/gpu_messages.h" | 13 #include "content/common/gpu/gpu_messages.h" |
14 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
| 15 #include "content/common/webplugin_geometry.h" |
15 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
16 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
17 #include "third_party/WebKit/public/web/WebScreenInfo.h" | 18 #include "third_party/WebKit/public/web/WebScreenInfo.h" |
18 #include "webkit/plugins/npapi/webplugin.h" | |
19 | 19 |
20 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
21 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" | 21 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" |
22 #endif | 22 #endif |
23 | 23 |
24 #if defined(OS_WIN) || defined(USE_AURA) | 24 #if defined(OS_WIN) || defined(USE_AURA) |
25 #include "content/browser/renderer_host/ui_events_helper.h" | 25 #include "content/browser/renderer_host/ui_events_helper.h" |
26 #endif | 26 #endif |
27 | 27 |
28 namespace content { | 28 namespace content { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 gfx::NativeViewId RenderWidgetHostViewGuest::GetNativeViewId() const { | 242 gfx::NativeViewId RenderWidgetHostViewGuest::GetNativeViewId() const { |
243 return guest_->GetEmbedderRenderWidgetHostView()->GetNativeViewId(); | 243 return guest_->GetEmbedderRenderWidgetHostView()->GetNativeViewId(); |
244 } | 244 } |
245 | 245 |
246 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { | 246 gfx::NativeViewAccessible RenderWidgetHostViewGuest::GetNativeViewAccessible() { |
247 return guest_->GetEmbedderRenderWidgetHostView()->GetNativeViewAccessible(); | 247 return guest_->GetEmbedderRenderWidgetHostView()->GetNativeViewAccessible(); |
248 } | 248 } |
249 | 249 |
250 void RenderWidgetHostViewGuest::MovePluginWindows( | 250 void RenderWidgetHostViewGuest::MovePluginWindows( |
251 const gfx::Vector2d& scroll_offset, | 251 const gfx::Vector2d& scroll_offset, |
252 const std::vector<webkit::npapi::WebPluginGeometry>& moves) { | 252 const std::vector<WebPluginGeometry>& moves) { |
253 platform_view_->MovePluginWindows(scroll_offset, moves); | 253 platform_view_->MovePluginWindows(scroll_offset, moves); |
254 } | 254 } |
255 | 255 |
256 void RenderWidgetHostViewGuest::Focus() { | 256 void RenderWidgetHostViewGuest::Focus() { |
257 } | 257 } |
258 | 258 |
259 void RenderWidgetHostViewGuest::Blur() { | 259 void RenderWidgetHostViewGuest::Blur() { |
260 } | 260 } |
261 | 261 |
262 bool RenderWidgetHostViewGuest::HasFocus() const { | 262 bool RenderWidgetHostViewGuest::HasFocus() const { |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 return; | 564 return; |
565 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); | 565 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); |
566 g_it != gestures->end(); | 566 g_it != gestures->end(); |
567 ++g_it) { | 567 ++g_it) { |
568 ForwardGestureEventToRenderer(*g_it); | 568 ForwardGestureEventToRenderer(*g_it); |
569 } | 569 } |
570 } | 570 } |
571 | 571 |
572 | 572 |
573 } // namespace content | 573 } // namespace content |
OLD | NEW |