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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 | 963 |
964 void RenderWidgetHost::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, | 964 void RenderWidgetHost::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, |
965 gfx::Rect* results) { | 965 gfx::Rect* results) { |
966 if (view_) { | 966 if (view_) { |
967 *results = view_->GetRootWindowRect(); | 967 *results = view_->GetRootWindowRect(); |
968 } | 968 } |
969 } | 969 } |
970 | 970 |
971 void RenderWidgetHost::OnAllocateFakePluginWindowHandle( | 971 void RenderWidgetHost::OnAllocateFakePluginWindowHandle( |
972 bool opaque, | 972 bool opaque, |
| 973 bool root, |
973 gfx::PluginWindowHandle* id) { | 974 gfx::PluginWindowHandle* id) { |
974 // TODO(kbr): similar potential issue here as in OnMsgCreatePluginContainer. | 975 // TODO(kbr): similar potential issue here as in OnMsgCreatePluginContainer. |
975 // Possibly less of an issue because this is only used for the GPU plugin. | 976 // Possibly less of an issue because this is only used for the GPU plugin. |
976 if (view_) { | 977 if (view_) { |
977 *id = view_->AllocateFakePluginWindowHandle(opaque); | 978 *id = view_->AllocateFakePluginWindowHandle(opaque, root); |
978 } else { | 979 } else { |
979 NOTIMPLEMENTED(); | 980 NOTIMPLEMENTED(); |
980 } | 981 } |
981 } | 982 } |
982 | 983 |
983 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( | 984 void RenderWidgetHost::OnDestroyFakePluginWindowHandle( |
984 gfx::PluginWindowHandle id) { | 985 gfx::PluginWindowHandle id) { |
985 if (view_) { | 986 if (view_) { |
986 view_->DestroyFakePluginWindowHandle(id); | 987 view_->DestroyFakePluginWindowHandle(id); |
987 } else { | 988 } else { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 // of this key event. | 1167 // of this key event. |
1167 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { | 1168 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { |
1168 UnhandledKeyboardEvent(front_item); | 1169 UnhandledKeyboardEvent(front_item); |
1169 | 1170 |
1170 // WARNING: This RenderWidgetHost can be deallocated at this point | 1171 // WARNING: This RenderWidgetHost can be deallocated at this point |
1171 // (i.e. in the case of Ctrl+W, where the call to | 1172 // (i.e. in the case of Ctrl+W, where the call to |
1172 // UnhandledKeyboardEvent destroys this RenderWidgetHost). | 1173 // UnhandledKeyboardEvent destroys this RenderWidgetHost). |
1173 } | 1174 } |
1174 } | 1175 } |
1175 } | 1176 } |
OLD | NEW |