| 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.h" | 8 #include "base/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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 const SkBitmap& zoomed_bitmap) { | 349 const SkBitmap& zoomed_bitmap) { |
| 350 } | 350 } |
| 351 | 351 |
| 352 void RenderWidgetHostViewGuest::UpdateFrameInfo( | 352 void RenderWidgetHostViewGuest::UpdateFrameInfo( |
| 353 const gfx::Vector2dF& scroll_offset, | 353 const gfx::Vector2dF& scroll_offset, |
| 354 float page_scale_factor, | 354 float page_scale_factor, |
| 355 const gfx::Vector2dF& page_scale_factor_limits, | 355 const gfx::Vector2dF& page_scale_factor_limits, |
| 356 const gfx::SizeF& content_size, | 356 const gfx::SizeF& content_size, |
| 357 const gfx::SizeF& viewport_size, | 357 const gfx::SizeF& viewport_size, |
| 358 const gfx::Vector2dF& controls_offset, | 358 const gfx::Vector2dF& controls_offset, |
| 359 const gfx::Vector2dF& content_offset) { | 359 const gfx::Vector2dF& content_offset, |
| 360 float overdraw_bottom_height) { |
| 360 } | 361 } |
| 361 | 362 |
| 362 void RenderWidgetHostViewGuest::HasTouchEventHandlers(bool need_touch_events) { | 363 void RenderWidgetHostViewGuest::HasTouchEventHandlers(bool need_touch_events) { |
| 363 } | 364 } |
| 364 #endif // defined(OS_ANDROID) | 365 #endif // defined(OS_ANDROID) |
| 365 | 366 |
| 366 #if defined(TOOLKIT_GTK) | 367 #if defined(TOOLKIT_GTK) |
| 367 GdkEventButton* RenderWidgetHostViewGuest::GetLastMouseDown() { | 368 GdkEventButton* RenderWidgetHostViewGuest::GetLastMouseDown() { |
| 368 return NULL; | 369 return NULL; |
| 369 } | 370 } |
| 370 | 371 |
| 371 gfx::NativeView RenderWidgetHostViewGuest::BuildInputMethodsGtkMenu() { | 372 gfx::NativeView RenderWidgetHostViewGuest::BuildInputMethodsGtkMenu() { |
| 372 return gfx::NativeView(); | 373 return gfx::NativeView(); |
| 373 } | 374 } |
| 374 #endif // defined(TOOLKIT_GTK) | 375 #endif // defined(TOOLKIT_GTK) |
| 375 | 376 |
| 376 #if defined(OS_WIN) && !defined(USE_AURA) | 377 #if defined(OS_WIN) && !defined(USE_AURA) |
| 377 void RenderWidgetHostViewGuest::WillWmDestroy() { | 378 void RenderWidgetHostViewGuest::WillWmDestroy() { |
| 378 } | 379 } |
| 379 #endif | 380 #endif |
| 380 | 381 |
| 381 void RenderWidgetHostViewGuest::DestroyGuestView() { | 382 void RenderWidgetHostViewGuest::DestroyGuestView() { |
| 382 host_ = NULL; | 383 host_ = NULL; |
| 383 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 384 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 384 } | 385 } |
| 385 | 386 |
| 386 } // namespace content | 387 } // namespace content |
| OLD | NEW |