| 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/renderer/render_widget.h" | 5 #include "chrome/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/gfx/platform_canvas_win.h" | |
| 14 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 15 #include "chrome/renderer/render_process.h" | 14 #include "chrome/renderer/render_process.h" |
| 15 #include "skia/ext/platform_canvas_win.h" |
| 16 | 16 |
| 17 #include "webkit/glue/webinputevent.h" | 17 #include "webkit/glue/webinputevent.h" |
| 18 #include "webkit/glue/webwidget.h" | 18 #include "webkit/glue/webwidget.h" |
| 19 | 19 |
| 20 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // This class is used to defer calling RenderWidget::Close() while the current | 24 // This class is used to defer calling RenderWidget::Close() while the current |
| 25 // thread is inside RenderThread::Send(), which in some cases can result in a | 25 // thread is inside RenderThread::Send(), which in some cases can result in a |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 for (; i < plugin_window_moves_.size(); ++i) { | 770 for (; i < plugin_window_moves_.size(); ++i) { |
| 771 if (plugin_window_moves_[i].window == move.window) { | 771 if (plugin_window_moves_[i].window == move.window) { |
| 772 plugin_window_moves_[i] = move; | 772 plugin_window_moves_[i] = move; |
| 773 break; | 773 break; |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 if (i == plugin_window_moves_.size()) | 777 if (i == plugin_window_moves_.size()) |
| 778 plugin_window_moves_.push_back(move); | 778 plugin_window_moves_.push_back(move); |
| 779 } | 779 } |
| OLD | NEW |