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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // as we are returning the WebView and not root window bounds. | 373 // as we are returning the WebView and not root window bounds. |
374 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { | 374 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { |
375 return GetViewBounds(); | 375 return GetViewBounds(); |
376 } | 376 } |
377 | 377 |
378 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( | 378 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( |
379 const WebKit::WebMouseWheelEvent& event) { | 379 const WebKit::WebMouseWheelEvent& event) { |
380 // intentionally empty, like RenderWidgetHostViewViews | 380 // intentionally empty, like RenderWidgetHostViewViews |
381 } | 381 } |
382 | 382 |
383 void RenderWidgetHostViewAndroid::ProcessTouchAck(bool processed) { | 383 void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent( |
| 384 const WebKit::WebTouchEvent& touch_event, |
| 385 bool processed) { |
384 // intentionally empty, like RenderWidgetHostViewViews | 386 // intentionally empty, like RenderWidgetHostViewViews |
385 } | 387 } |
386 | 388 |
387 void RenderWidgetHostViewAndroid::SetHasHorizontalScrollbar( | 389 void RenderWidgetHostViewAndroid::SetHasHorizontalScrollbar( |
388 bool has_horizontal_scrollbar) { | 390 bool has_horizontal_scrollbar) { |
389 // intentionally empty, like RenderWidgetHostViewViews | 391 // intentionally empty, like RenderWidgetHostViewViews |
390 } | 392 } |
391 | 393 |
392 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( | 394 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( |
393 bool is_pinned_to_left, bool is_pinned_to_right) { | 395 bool is_pinned_to_left, bool is_pinned_to_right) { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 // RenderWidgetHostView, public: | 509 // RenderWidgetHostView, public: |
508 | 510 |
509 // static | 511 // static |
510 RenderWidgetHostView* | 512 RenderWidgetHostView* |
511 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 513 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
512 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 514 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
513 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 515 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
514 } | 516 } |
515 | 517 |
516 } // namespace content | 518 } // namespace content |
OLD | NEW |