| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "Document.h" | 7 #include "Document.h" |
| 8 #include "DocumentLoader.h" | 8 #include "DocumentLoader.h" |
| 9 #include "Event.h" | 9 #include "Event.h" |
| 10 #include "EventNames.h" | 10 #include "EventNames.h" |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 // it needs to adjust the plugin, so that all the HWNDs can be moved | 733 // it needs to adjust the plugin, so that all the HWNDs can be moved |
| 734 // at the same time. | 734 // at the same time. |
| 735 WebPluginGeometry move; | 735 WebPluginGeometry move; |
| 736 move.window = window_; | 736 move.window = window_; |
| 737 move.window_rect = webkit_glue::FromIntRect(window_rect); | 737 move.window_rect = webkit_glue::FromIntRect(window_rect); |
| 738 move.clip_rect = webkit_glue::FromIntRect(clip_rect); | 738 move.clip_rect = webkit_glue::FromIntRect(clip_rect); |
| 739 move.cutout_rects = cutout_rects; | 739 move.cutout_rects = cutout_rects; |
| 740 move.rects_valid = true; | 740 move.rects_valid = true; |
| 741 move.visible = widget_->isVisible(); | 741 move.visible = widget_->isVisible(); |
| 742 | 742 |
| 743 webview->delegate()->DidMove(webview, move); | 743 webview->delegate()->DidMovePlugin(move); |
| 744 } | 744 } |
| 745 | 745 |
| 746 // Notify the plugin that its parameters have changed. | 746 // Notify the plugin that its parameters have changed. |
| 747 delegate_->UpdateGeometry(webkit_glue::FromIntRect(window_rect), | 747 delegate_->UpdateGeometry(webkit_glue::FromIntRect(window_rect), |
| 748 webkit_glue::FromIntRect(clip_rect)); | 748 webkit_glue::FromIntRect(clip_rect)); |
| 749 | 749 |
| 750 // Initiate a download on the plugin url. This should be done for the | 750 // Initiate a download on the plugin url. This should be done for the |
| 751 // first update geometry sequence. We need to ensure that the plugin | 751 // first update geometry sequence. We need to ensure that the plugin |
| 752 // receives the geometry update before it starts receiving data. | 752 // receives the geometry update before it starts receiving data. |
| 753 if (first_geometry_update_) { | 753 if (first_geometry_update_) { |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 if (!webview->delegate()) | 1428 if (!webview->delegate()) |
| 1429 return; | 1429 return; |
| 1430 | 1430 |
| 1431 WebPluginGeometry move; | 1431 WebPluginGeometry move; |
| 1432 move.window = window_; | 1432 move.window = window_; |
| 1433 move.window_rect = gfx::Rect(); | 1433 move.window_rect = gfx::Rect(); |
| 1434 move.clip_rect = gfx::Rect(); | 1434 move.clip_rect = gfx::Rect(); |
| 1435 move.rects_valid = false; | 1435 move.rects_valid = false; |
| 1436 move.visible = widget_->isVisible(); | 1436 move.visible = widget_->isVisible(); |
| 1437 | 1437 |
| 1438 webview->delegate()->DidMove(webview, move); | 1438 webview->delegate()->DidMovePlugin(move); |
| 1439 } | 1439 } |
| OLD | NEW |