Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/plugin/webplugin_proxy.cc

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/mock_printer_driver_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/mock_printer_driver_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698