| 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 "content/browser/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // as we are returning the WebView and not root window bounds. | 337 // as we are returning the WebView and not root window bounds. |
| 338 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { | 338 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { |
| 339 return GetViewBounds(); | 339 return GetViewBounds(); |
| 340 } | 340 } |
| 341 | 341 |
| 342 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( | 342 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( |
| 343 const WebKit::WebMouseWheelEvent& event) { | 343 const WebKit::WebMouseWheelEvent& event) { |
| 344 // intentionally empty, like RenderWidgetHostViewViews | 344 // intentionally empty, like RenderWidgetHostViewViews |
| 345 } | 345 } |
| 346 | 346 |
| 347 void RenderWidgetHostViewAndroid::ProcessTouchAck( | 347 void RenderWidgetHostViewAndroid::ProcessTouchAck(bool processed) { |
| 348 WebKit::WebInputEvent::Type type, bool processed) { | |
| 349 // intentionally empty, like RenderWidgetHostViewViews | 348 // intentionally empty, like RenderWidgetHostViewViews |
| 350 } | 349 } |
| 351 | 350 |
| 352 void RenderWidgetHostViewAndroid::SetHasHorizontalScrollbar( | 351 void RenderWidgetHostViewAndroid::SetHasHorizontalScrollbar( |
| 353 bool has_horizontal_scrollbar) { | 352 bool has_horizontal_scrollbar) { |
| 354 // intentionally empty, like RenderWidgetHostViewViews | 353 // intentionally empty, like RenderWidgetHostViewViews |
| 355 } | 354 } |
| 356 | 355 |
| 357 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( | 356 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( |
| 358 bool is_pinned_to_left, bool is_pinned_to_right) { | 357 bool is_pinned_to_left, bool is_pinned_to_right) { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 // RenderWidgetHostView, public: | 471 // RenderWidgetHostView, public: |
| 473 | 472 |
| 474 // static | 473 // static |
| 475 RenderWidgetHostView* | 474 RenderWidgetHostView* |
| 476 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 475 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 477 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 476 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 478 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 477 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 479 } | 478 } |
| 480 | 479 |
| 481 } // namespace content | 480 } // namespace content |
| OLD | NEW |