| 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_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1439 #if DCHECK_IS_ON() | 1439 #if DCHECK_IS_ON() |
| 1440 drop_data->view_id = GetRoutingID(); | 1440 drop_data->view_id = GetRoutingID(); |
| 1441 #endif // DCHECK_IS_ON() | 1441 #endif // DCHECK_IS_ON() |
| 1442 | 1442 |
| 1443 GetProcess()->FilterURL(true, &drop_data->url); | 1443 GetProcess()->FilterURL(true, &drop_data->url); |
| 1444 if (drop_data->did_originate_from_renderer) { | 1444 if (drop_data->did_originate_from_renderer) { |
| 1445 drop_data->filenames.clear(); | 1445 drop_data->filenames.clear(); |
| 1446 } | 1446 } |
| 1447 } | 1447 } |
| 1448 | 1448 |
| 1449 void RenderWidgetHostImpl::SetCursor(const CursorInfo& cursor_info) { |
| 1450 WebCursor cursor; |
| 1451 cursor.InitFromCursorInfo(cursor_info); |
| 1452 SetCursor(cursor); |
| 1453 } |
| 1454 |
| 1449 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { | 1455 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { |
| 1450 if (delegate_) | 1456 if (delegate_) |
| 1451 delegate_->ScreenInfoChanged(); | 1457 delegate_->ScreenInfoChanged(); |
| 1452 | 1458 |
| 1453 // The resize message (which may not happen immediately) will carry with it | 1459 // The resize message (which may not happen immediately) will carry with it |
| 1454 // the screen info as well as the new size (if the screen has changed scale | 1460 // the screen info as well as the new size (if the screen has changed scale |
| 1455 // factor). | 1461 // factor). |
| 1456 WasResized(); | 1462 WasResized(); |
| 1457 | 1463 |
| 1458 if (touch_emulator_) { | 1464 if (touch_emulator_) { |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2716 RenderProcessHost* rph = GetProcess(); | 2722 RenderProcessHost* rph = GetProcess(); |
| 2717 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); | 2723 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); |
| 2718 i != messages.end(); ++i) { | 2724 i != messages.end(); ++i) { |
| 2719 rph->OnMessageReceived(*i); | 2725 rph->OnMessageReceived(*i); |
| 2720 if (i->dispatch_error()) | 2726 if (i->dispatch_error()) |
| 2721 rph->OnBadMessageReceived(*i); | 2727 rph->OnBadMessageReceived(*i); |
| 2722 } | 2728 } |
| 2723 } | 2729 } |
| 2724 | 2730 |
| 2725 } // namespace content | 2731 } // namespace content |
| OLD | NEW |