| 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 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 void RenderViewImpl::TransferActiveWheelFlingAnimation( | 1327 void RenderViewImpl::TransferActiveWheelFlingAnimation( |
| 1328 const blink::WebActiveWheelFlingParameters& params) { | 1328 const blink::WebActiveWheelFlingParameters& params) { |
| 1329 if (webview()) | 1329 if (webview()) |
| 1330 webview()->transferActiveWheelFlingAnimation(params); | 1330 webview()->transferActiveWheelFlingAnimation(params); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 bool RenderViewImpl::HasIMETextFocus() { | 1333 bool RenderViewImpl::HasIMETextFocus() { |
| 1334 return GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE; | 1334 return GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE; |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 void RenderViewImpl::WebUIMojoMainRan() { |
| 1338 Send(new ViewHostMsg_WebUIMojoMainRan(routing_id())); |
| 1339 } |
| 1340 |
| 1337 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { | 1341 bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { |
| 1338 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL; | 1342 WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL; |
| 1339 if (main_frame) | 1343 if (main_frame) |
| 1340 GetContentClient()->SetActiveURL(main_frame->document().url()); | 1344 GetContentClient()->SetActiveURL(main_frame->document().url()); |
| 1341 | 1345 |
| 1342 ObserverListBase<RenderViewObserver>::Iterator it(observers_); | 1346 ObserverListBase<RenderViewObserver>::Iterator it(observers_); |
| 1343 RenderViewObserver* observer; | 1347 RenderViewObserver* observer; |
| 1344 while ((observer = it.GetNext()) != NULL) | 1348 while ((observer = it.GetNext()) != NULL) |
| 1345 if (observer->OnMessageReceived(message)) | 1349 if (observer->OnMessageReceived(message)) |
| 1346 return true; | 1350 return true; |
| (...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4299 std::vector<gfx::Size> sizes; | 4303 std::vector<gfx::Size> sizes; |
| 4300 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4304 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4301 if (!url.isEmpty()) | 4305 if (!url.isEmpty()) |
| 4302 urls.push_back( | 4306 urls.push_back( |
| 4303 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4307 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4304 } | 4308 } |
| 4305 SendUpdateFaviconURL(urls); | 4309 SendUpdateFaviconURL(urls); |
| 4306 } | 4310 } |
| 4307 | 4311 |
| 4308 } // namespace content | 4312 } // namespace content |
| OLD | NEW |