OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/gfx/point.h" | 7 #include "base/gfx/point.h" |
8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 using WebKit::WebRect; | 39 using WebKit::WebRect; |
40 using WebKit::WebScreenInfo; | 40 using WebKit::WebScreenInfo; |
41 using WebKit::WebSize; | 41 using WebKit::WebSize; |
42 using WebKit::WebTextDirection; | 42 using WebKit::WebTextDirection; |
43 | 43 |
44 RenderWidget::RenderWidget(RenderThreadBase* render_thread, bool activatable) | 44 RenderWidget::RenderWidget(RenderThreadBase* render_thread, bool activatable) |
45 : routing_id_(MSG_ROUTING_NONE), | 45 : routing_id_(MSG_ROUTING_NONE), |
46 webwidget_(NULL), | 46 webwidget_(NULL), |
47 opener_id_(MSG_ROUTING_NONE), | 47 opener_id_(MSG_ROUTING_NONE), |
48 render_thread_(render_thread), | 48 render_thread_(render_thread), |
49 host_window_(NULL), | 49 host_window_(0), |
50 current_paint_buf_(NULL), | 50 current_paint_buf_(NULL), |
51 current_scroll_buf_(NULL), | 51 current_scroll_buf_(NULL), |
52 next_paint_flags_(0), | 52 next_paint_flags_(0), |
53 paint_reply_pending_(false), | 53 paint_reply_pending_(false), |
54 did_show_(false), | 54 did_show_(false), |
55 is_hidden_(false), | 55 is_hidden_(false), |
56 needs_repainting_on_restore_(false), | 56 needs_repainting_on_restore_(false), |
57 has_focus_(false), | 57 has_focus_(false), |
58 handling_input_event_(false), | 58 handling_input_event_(false), |
59 closing_(false), | 59 closing_(false), |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 | 910 |
911 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { | 911 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { |
912 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); | 912 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); |
913 i != plugin_window_moves_.end(); ++i) { | 913 i != plugin_window_moves_.end(); ++i) { |
914 if (i->window == window) { | 914 if (i->window == window) { |
915 plugin_window_moves_.erase(i); | 915 plugin_window_moves_.erase(i); |
916 break; | 916 break; |
917 } | 917 } |
918 } | 918 } |
919 } | 919 } |
OLD | NEW |