Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views_gtk.cc

Issue 7753013: content: Make ifdefs match with where this is used (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Possible fix Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698