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

Side by Side Diff: gpu/demos/framework/window_linux.cc

Issue 9160012: Change PluginWindowHandle to AcceleratedWidget in ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops mac Created 8 years, 10 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
« no previous file with comments | « gpu/demos/framework/window.cc ('k') | gpu/demos/framework/window_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "gpu/demos/framework/window.h" 5 #include "gpu/demos/framework/window.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 "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 gtk_window_set_title(GTK_WINDOW(hwnd), WideToUTF8(title).c_str()); 50 gtk_window_set_title(GTK_WINDOW(hwnd), WideToUTF8(title).c_str());
51 gtk_window_set_default_size(GTK_WINDOW(hwnd), width, height); 51 gtk_window_set_default_size(GTK_WINDOW(hwnd), width, height);
52 gtk_widget_set_double_buffered(hwnd, FALSE); 52 gtk_widget_set_double_buffered(hwnd, FALSE);
53 gtk_widget_set_app_paintable(hwnd, TRUE); 53 gtk_widget_set_app_paintable(hwnd, TRUE);
54 54
55 gtk_widget_show(hwnd); 55 gtk_widget_show(hwnd);
56 return GTK_WINDOW(hwnd); 56 return GTK_WINDOW(hwnd);
57 } 57 }
58 58
59 gfx::PluginWindowHandle Window::PluginWindow(gfx::NativeWindow hwnd) { 59 gfx::AcceleratedWidget Window::PluginWindow(gfx::NativeWindow hwnd) {
60 return GDK_WINDOW_XWINDOW(GTK_WIDGET(hwnd)->window); 60 return GDK_WINDOW_XWINDOW(GTK_WIDGET(hwnd)->window);
61 } 61 }
62 62
63 } // namespace demos 63 } // namespace demos
64 } // namespace gpu 64 } // namespace gpu
65 65
OLDNEW
« no previous file with comments | « gpu/demos/framework/window.cc ('k') | gpu/demos/framework/window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698