| 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 "chrome/plugin/webplugin_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas.h" | 7 #include "app/gfx/canvas.h" |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include "app/win_util.h" | 9 #include "app/win_util.h" |
| 10 #endif | 10 #endif |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 NOTREACHED(); | 469 NOTREACHED(); |
| 470 return; | 470 return; |
| 471 } | 471 } |
| 472 | 472 |
| 473 hdc->Set(CreateCompatibleDC(NULL)); | 473 hdc->Set(CreateCompatibleDC(NULL)); |
| 474 if (hdc->Get() == NULL) { | 474 if (hdc->Get() == NULL) { |
| 475 NOTREACHED(); | 475 NOTREACHED(); |
| 476 return; | 476 return; |
| 477 } | 477 } |
| 478 | 478 |
| 479 skia::PlatformDeviceWin::InitializeDC(hdc->Get()); | 479 skia::PlatformDevice::InitializeDC(hdc->Get()); |
| 480 SelectObject(hdc->Get(), bitmap->Get()); | 480 SelectObject(hdc->Get(), bitmap->Get()); |
| 481 } | 481 } |
| 482 | 482 |
| 483 void WebPluginProxy::UpdateTransform() { | 483 void WebPluginProxy::UpdateTransform() { |
| 484 if (!windowless_hdc_) | 484 if (!windowless_hdc_) |
| 485 return; | 485 return; |
| 486 | 486 |
| 487 XFORM xf; | 487 XFORM xf; |
| 488 xf.eDx = static_cast<FLOAT>(-delegate_->GetRect().x()); | 488 xf.eDx = static_cast<FLOAT>(-delegate_->GetRect().x()); |
| 489 xf.eDy = static_cast<FLOAT>(-delegate_->GetRect().y()); | 489 xf.eDy = static_cast<FLOAT>(-delegate_->GetRect().y()); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 while (index != resource_clients_.end()) { | 525 while (index != resource_clients_.end()) { |
| 526 WebPluginResourceClient* client = (*index).second; | 526 WebPluginResourceClient* client = (*index).second; |
| 527 | 527 |
| 528 if (client == resource_client) { | 528 if (client == resource_client) { |
| 529 resource_clients_.erase(index++); | 529 resource_clients_.erase(index++); |
| 530 } else { | 530 } else { |
| 531 index++; | 531 index++; |
| 532 } | 532 } |
| 533 } | 533 } |
| 534 } | 534 } |
| OLD | NEW |