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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 #include "net/base/net_errors.h" | 122 #include "net/base/net_errors.h" |
123 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 123 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
124 #include "net/http/http_util.h" | 124 #include "net/http/http_util.h" |
125 #include "third_party/skia/include/core/SkBitmap.h" | 125 #include "third_party/skia/include/core/SkBitmap.h" |
126 #include "third_party/skia/include/core/SkPicture.h" | 126 #include "third_party/skia/include/core/SkPicture.h" |
127 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 127 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
128 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h" | 128 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h" |
129 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h " | 129 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h " |
130 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h" | 130 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h" |
131 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h" | 131 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h" |
132 #include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" | |
danakj
2013/05/01 19:20:43
What's this for?
| |
132 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann el.h" | 133 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann el.h" |
133 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 134 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" |
134 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 135 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
135 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 136 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
136 #include "third_party/WebKit/Source/Platform/chromium/public/WebSocketStreamHand le.h" | 137 #include "third_party/WebKit/Source/Platform/chromium/public/WebSocketStreamHand le.h" |
137 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 138 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
138 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 139 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
139 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 140 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" |
140 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 141 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" |
141 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 142 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" |
(...skipping 2451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2593 | 2594 |
2594 bool RenderViewImpl::isPointerLocked() { | 2595 bool RenderViewImpl::isPointerLocked() { |
2595 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2596 return mouse_lock_dispatcher_->IsMouseLockedTo( |
2596 webwidget_mouse_lock_target_.get()); | 2597 webwidget_mouse_lock_target_.get()); |
2597 } | 2598 } |
2598 | 2599 |
2599 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) { | 2600 void RenderViewImpl::didActivateCompositor(int input_handler_identifier) { |
2600 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 | 2601 #if !defined(OS_MACOSX) // many events are unhandled - http://crbug.com/138003 |
2601 InputHandlerManager* input_handler_manager = | 2602 InputHandlerManager* input_handler_manager = |
2602 RenderThreadImpl::current()->input_handler_manager(); | 2603 RenderThreadImpl::current()->input_handler_manager(); |
2603 if (input_handler_manager) | 2604 if (input_handler_manager) { |
2604 input_handler_manager->AddInputHandler( | 2605 input_handler_manager->AddInputHandler( |
2605 routing_id_, input_handler_identifier, AsWeakPtr()); | 2606 routing_id_, |
2607 compositor_->GetInputHandler(), | |
2608 AsWeakPtr()); | |
2609 } | |
2606 #endif | 2610 #endif |
2607 | 2611 |
2608 RenderWidget::didActivateCompositor(input_handler_identifier); | 2612 RenderWidget::didActivateCompositor(input_handler_identifier); |
2609 | 2613 |
2610 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 2614 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
2611 DidActivateCompositor(input_handler_identifier)); | 2615 DidActivateCompositor(input_handler_identifier)); |
2612 } | 2616 } |
2613 | 2617 |
2614 void RenderViewImpl::didHandleGestureEvent( | 2618 void RenderViewImpl::didHandleGestureEvent( |
2615 const WebGestureEvent& event, | 2619 const WebGestureEvent& event, |
(...skipping 3906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6522 WebURL url = icon_urls[i].iconURL(); | 6526 WebURL url = icon_urls[i].iconURL(); |
6523 if (!url.isEmpty()) | 6527 if (!url.isEmpty()) |
6524 urls.push_back(FaviconURL(url, | 6528 urls.push_back(FaviconURL(url, |
6525 ToFaviconType(icon_urls[i].iconType()))); | 6529 ToFaviconType(icon_urls[i].iconType()))); |
6526 } | 6530 } |
6527 SendUpdateFaviconURL(urls); | 6531 SendUpdateFaviconURL(urls); |
6528 } | 6532 } |
6529 | 6533 |
6530 | 6534 |
6531 } // namespace content | 6535 } // namespace content |
OLD | NEW |