| 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 "chrome/browser/renderer_host/render_widget_host_view_views.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" |
| 6 | 6 |
| 7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" | 10 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 | 108 |
| 109 void RenderWidgetHostViewViews::ShowCurrentCursor() { | 109 void RenderWidgetHostViewViews::ShowCurrentCursor() { |
| 110 // The widget may not have a window. If that's the case, abort mission. This | 110 // The widget may not have a window. If that's the case, abort mission. This |
| 111 // is the same issue as that explained above in Paint(). | 111 // is the same issue as that explained above in Paint(). |
| 112 if (!GetInnerNativeView() || !GetInnerNativeView()->window) | 112 if (!GetInnerNativeView() || !GetInnerNativeView()->window) |
| 113 return; | 113 return; |
| 114 | 114 |
| 115 native_cursor_ = current_cursor_.GetNativeCursor(); | 115 native_cursor_ = current_cursor_.GetNativeCursor(); |
| 116 } | 116 } |
| 117 | |
| 118 #if defined(TOUCH_UI) | |
| 119 // static | |
| 120 void RenderWidgetHostView::GetDefaultScreenInfo( | |
| 121 WebKit::WebScreenInfo* results) { | |
| 122 GdkWindow* gdk_window = | |
| 123 gdk_display_get_default_group(gdk_display_get_default()); | |
| 124 GetScreenInfoFromNativeWindow(gdk_window, results); | |
| 125 } | |
| 126 #endif | |
| OLD | NEW |