| 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 "gpu/demos/framework/demo.h" | 5 #include "gpu/demos/framework/demo.h" |
| 6 #include "gpu/demos/framework/window.h" | 6 #include "gpu/demos/framework/window.h" |
| 7 | 7 |
| 8 namespace { | 8 namespace { |
| 9 LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, | 9 LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, |
| 10 WPARAM w_param, LPARAM l_param) { | 10 WPARAM w_param, LPARAM l_param) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 NULL, | 89 NULL, |
| 90 NULL, | 90 NULL, |
| 91 instance, | 91 instance, |
| 92 NULL); | 92 NULL); |
| 93 if (hwnd == NULL) return NULL; | 93 if (hwnd == NULL) return NULL; |
| 94 | 94 |
| 95 ShowWindow(hwnd, SW_SHOWNORMAL); | 95 ShowWindow(hwnd, SW_SHOWNORMAL); |
| 96 return hwnd; | 96 return hwnd; |
| 97 } | 97 } |
| 98 | 98 |
| 99 gfx::PluginWindowHandle Window::PluginWindow(gfx::NativeWindow hwnd) { | 99 gfx::AcceleratedWidget Window::PluginWindow(gfx::NativeWindow hwnd) { |
| 100 return hwnd; | 100 return hwnd; |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace demos | 103 } // namespace demos |
| 104 } // namespace gpu | 104 } // namespace gpu |
| 105 | 105 |
| OLD | NEW |