OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/renderer_host/render_widget_host.h" | 5 #include "chrome/browser/renderer_host/render_widget_host.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
10 #include "base/keyboard_codes.h" | 10 #include "base/keyboard_codes.h" |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 950 |
951 void RenderWidgetHost::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, | 951 void RenderWidgetHost::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, |
952 gfx::Rect* results) { | 952 gfx::Rect* results) { |
953 if (view_) { | 953 if (view_) { |
954 *results = view_->GetRootWindowRect(); | 954 *results = view_->GetRootWindowRect(); |
955 } | 955 } |
956 } | 956 } |
957 | 957 |
958 void RenderWidgetHost::OnAllocateFakePluginWindowHandle( | 958 void RenderWidgetHost::OnAllocateFakePluginWindowHandle( |
959 bool opaque, | 959 bool opaque, |
| 960 bool can_draw_transparent, |
960 bool root, | 961 bool root, |
961 gfx::PluginWindowHandle* id) { | 962 gfx::PluginWindowHandle* id) { |
962 // TODO(kbr): similar potential issue here as in OnMsgCreatePluginContainer. | 963 // TODO(kbr): similar potential issue here as in OnMsgCreatePluginContainer. |
963 // Possibly less of an issue because this is only used for the GPU plugin. | 964 // Possibly less of an issue because this is only used for the GPU plugin. |
964 if (view_) { | 965 if (view_) { |
965 *id = view_->AllocateFakePluginWindowHandle(opaque, root); | 966 *id = view_->AllocateFakePluginWindowHandle( |
| 967 opaque, can_draw_transparent, root); |
966 } else { | 968 } else { |
967 NOTIMPLEMENTED(); | 969 NOTIMPLEMENTED(); |
968 } | 970 } |
969 } | 971 } |
970 | 972 |
971 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( | 973 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( |
972 gfx::PluginWindowHandle id) { | 974 gfx::PluginWindowHandle id) { |
973 if (view_) { | 975 if (view_) { |
974 view_->DestroyFakePluginWindowHandle(id); | 976 view_->DestroyFakePluginWindowHandle(id); |
975 } else { | 977 } else { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 // of this key event. | 1177 // of this key event. |
1176 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { | 1178 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { |
1177 UnhandledKeyboardEvent(front_item); | 1179 UnhandledKeyboardEvent(front_item); |
1178 | 1180 |
1179 // WARNING: This RenderWidgetHost can be deallocated at this point | 1181 // WARNING: This RenderWidgetHost can be deallocated at this point |
1180 // (i.e. in the case of Ctrl+W, where the call to | 1182 // (i.e. in the case of Ctrl+W, where the call to |
1181 // UnhandledKeyboardEvent destroys this RenderWidgetHost). | 1183 // UnhandledKeyboardEvent destroys this RenderWidgetHost). |
1182 } | 1184 } |
1183 } | 1185 } |
1184 } | 1186 } |
OLD | NEW |