| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #include <windows.h> | 7 |
| 8 #include "SkTypes.h" |
| 9 |
| 8 #include <tchar.h> | 10 #include <tchar.h> |
| 9 | 11 |
| 10 #include "SkTypes.h" | |
| 11 #include "SkApplication.h" | 12 #include "SkApplication.h" |
| 12 #include "SkOSWindow_Win.h" | 13 #include "SkOSWindow_Win.h" |
| 13 | 14 |
| 14 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); | 15 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); |
| 15 | 16 |
| 16 // Returns the main window Win32 class name. | 17 // Returns the main window Win32 class name. |
| 17 static const TCHAR* register_class(HINSTANCE hInstance) { | 18 static const TCHAR* register_class(HINSTANCE hInstance) { |
| 18 WNDCLASSEX wcex; | 19 WNDCLASSEX wcex; |
| 19 // The main window class name | 20 // The main window class name |
| 20 static const TCHAR gSZWindowClass[] = _T("SkiaApp"); | 21 static const TCHAR gSZWindowClass[] = _T("SkiaApp"); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 SkOSWindow* window = SkOSWindow::GetOSWindowForHWND(hWnd); | 124 SkOSWindow* window = SkOSWindow::GetOSWindowForHWND(hWnd); |
| 124 if (window && window->wndProc(hWnd, message, wParam, lParam)) { | 125 if (window && window->wndProc(hWnd, message, wParam, lParam)) { |
| 125 return 0; | 126 return 0; |
| 126 } else { | 127 } else { |
| 127 return DefWindowProc(hWnd, message, wParam, lParam); | 128 return DefWindowProc(hWnd, message, wParam, lParam); |
| 128 } | 129 } |
| 129 } | 130 } |
| 130 } | 131 } |
| 131 return 0; | 132 return 0; |
| 132 } | 133 } |
| OLD | NEW |