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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3068 ui::DragDropTypes::DRAG_EVENT_SOURCE_TOUCH; | 3068 ui::DragDropTypes::DRAG_EVENT_SOURCE_TOUCH; |
3069 possible_drag_event_info_.event_location = | 3069 possible_drag_event_info_.event_location = |
3070 gfx::Point(event.globalX, event.globalY); | 3070 gfx::Point(event.globalX, event.globalY); |
3071 return false; | 3071 return false; |
3072 } | 3072 } |
3073 | 3073 |
3074 void RenderViewImpl::DidHandleMouseEvent(const WebMouseEvent& event) { | 3074 void RenderViewImpl::DidHandleMouseEvent(const WebMouseEvent& event) { |
3075 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidHandleMouseEvent(event)); | 3075 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidHandleMouseEvent(event)); |
3076 } | 3076 } |
3077 | 3077 |
3078 void RenderViewImpl::DidHandleTouchEvent(const WebTouchEvent& event) { | |
3079 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidHandleTouchEvent(event)); | |
3080 } | |
3081 | |
3082 bool RenderViewImpl::HasTouchEventHandlersAt(const gfx::Point& point) const { | 3078 bool RenderViewImpl::HasTouchEventHandlersAt(const gfx::Point& point) const { |
3083 if (!webview()) | 3079 if (!webview()) |
3084 return false; | 3080 return false; |
3085 return webview()->hasTouchEventHandlersAt(point); | 3081 return webview()->hasTouchEventHandlersAt(point); |
3086 } | 3082 } |
3087 | 3083 |
3088 void RenderViewImpl::OnWasHidden() { | 3084 void RenderViewImpl::OnWasHidden() { |
3089 RenderWidget::OnWasHidden(); | 3085 RenderWidget::OnWasHidden(); |
3090 | 3086 |
3091 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) | 3087 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3770 std::vector<gfx::Size> sizes; | 3766 std::vector<gfx::Size> sizes; |
3771 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 3767 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
3772 if (!url.isEmpty()) | 3768 if (!url.isEmpty()) |
3773 urls.push_back( | 3769 urls.push_back( |
3774 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 3770 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
3775 } | 3771 } |
3776 SendUpdateFaviconURL(urls); | 3772 SendUpdateFaviconURL(urls); |
3777 } | 3773 } |
3778 | 3774 |
3779 } // namespace content | 3775 } // namespace content |
OLD | NEW |