OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_widget_host_view_gtk.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
6 | 6 |
7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
9 // badly with net::URLRequestStatus::Status. | 9 // badly with net::URLRequestStatus::Status. |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 GtkNativeViewManager* manager = GtkNativeViewManager::GetInstance(); | 1176 GtkNativeViewManager* manager = GtkNativeViewManager::GetInstance(); |
1177 gfx::NativeViewId view_id = GetNativeViewId(); | 1177 gfx::NativeViewId view_id = GetNativeViewId(); |
1178 | 1178 |
1179 if (!manager->GetPermanentXIDForId(&compositing_surface_, view_id)) { | 1179 if (!manager->GetPermanentXIDForId(&compositing_surface_, view_id)) { |
1180 DLOG(ERROR) << "Can't find XID for view id " << view_id; | 1180 DLOG(ERROR) << "Can't find XID for view id " << view_id; |
1181 } | 1181 } |
1182 } | 1182 } |
1183 return compositing_surface_; | 1183 return compositing_surface_; |
1184 } | 1184 } |
1185 | 1185 |
| 1186 bool RenderWidgetHostViewGtk::LockMouse() { |
| 1187 NOTIMPLEMENTED(); |
| 1188 return false; |
| 1189 } |
| 1190 |
| 1191 void RenderWidgetHostViewGtk::UnlockMouse() { |
| 1192 NOTIMPLEMENTED(); |
| 1193 } |
| 1194 |
1186 void RenderWidgetHostViewGtk::ForwardKeyboardEvent( | 1195 void RenderWidgetHostViewGtk::ForwardKeyboardEvent( |
1187 const NativeWebKeyboardEvent& event) { | 1196 const NativeWebKeyboardEvent& event) { |
1188 if (!host_) | 1197 if (!host_) |
1189 return; | 1198 return; |
1190 | 1199 |
1191 #if !defined(OS_CHROMEOS) | 1200 #if !defined(OS_CHROMEOS) |
1192 EditCommands edit_commands; | 1201 EditCommands edit_commands; |
1193 if (!event.skip_in_browser && | 1202 if (!event.skip_in_browser && |
1194 key_bindings_handler_->Match(event, &edit_commands)) { | 1203 key_bindings_handler_->Match(event, &edit_commands)) { |
1195 host_->Send(new ViewMsg_SetEditCommandsForNextKeyEvent( | 1204 host_->Send(new ViewMsg_SetEditCommandsForNextKeyEvent( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 last_mouse_down_ = temp; | 1240 last_mouse_down_ = temp; |
1232 } | 1241 } |
1233 | 1242 |
1234 // static | 1243 // static |
1235 void RenderWidgetHostView::GetDefaultScreenInfo( | 1244 void RenderWidgetHostView::GetDefaultScreenInfo( |
1236 WebKit::WebScreenInfo* results) { | 1245 WebKit::WebScreenInfo* results) { |
1237 GdkWindow* gdk_window = | 1246 GdkWindow* gdk_window = |
1238 gdk_display_get_default_group(gdk_display_get_default()); | 1247 gdk_display_get_default_group(gdk_display_get_default()); |
1239 content::GetScreenInfoFromNativeWindow(gdk_window, results); | 1248 content::GetScreenInfoFromNativeWindow(gdk_window, results); |
1240 } | 1249 } |
OLD | NEW |