| OLD | NEW | 
|---|
| 1 | 1 | 
| 2 /* | 2 /* | 
| 3  * Copyright 2011 Google Inc. | 3  * Copyright 2011 Google Inc. | 
| 4  * | 4  * | 
| 5  * Use of this source code is governed by a BSD-style license that can be | 5  * Use of this source code is governed by a BSD-style license that can be | 
| 6  * found in the LICENSE file. | 6  * found in the LICENSE file. | 
| 7  */ | 7  */ | 
| 8 #include "SkTypes.h" | 8 #include "SkTypes.h" | 
| 9 | 9 | 
| 10 #if defined(SK_BUILD_FOR_WIN) | 10 #if defined(SK_BUILD_FOR_WIN) | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 117             } | 117             } | 
| 118         } break; | 118         } break; | 
| 119         case WM_KEYUP: { | 119         case WM_KEYUP: { | 
| 120             SkKey key = winToskKey(wParam); | 120             SkKey key = winToskKey(wParam); | 
| 121             if (kNONE_SkKey != key) { | 121             if (kNONE_SkKey != key) { | 
| 122                 this->handleKeyUp(key); | 122                 this->handleKeyUp(key); | 
| 123                 return true; | 123                 return true; | 
| 124             } | 124             } | 
| 125         } break; | 125         } break; | 
| 126         case WM_UNICHAR: | 126         case WM_UNICHAR: | 
| 127             this->handleChar(wParam); | 127             this->handleChar((SkUnichar) wParam); | 
| 128             return true; | 128             return true; | 
| 129         case WM_CHAR: { | 129         case WM_CHAR: { | 
| 130             this->handleChar(SkUTF8_ToUnichar((char*)&wParam)); | 130             this->handleChar(SkUTF8_ToUnichar((char*)&wParam)); | 
| 131             return true; | 131             return true; | 
| 132         } break; | 132         } break; | 
| 133         case WM_SIZE: | 133         case WM_SIZE: | 
| 134             this->resize(lParam & 0xFFFF, lParam >> 16); | 134             this->resize(lParam & 0xFFFF, lParam >> 16); | 
| 135             break; | 135             break; | 
| 136         case WM_PAINT: { | 136         case WM_PAINT: { | 
| 137             PAINTSTRUCT ps; | 137             PAINTSTRUCT ps; | 
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 603         break; | 603         break; | 
| 604 #endif // SK_ANGLE | 604 #endif // SK_ANGLE | 
| 605 #endif // SK_SUPPORT_GPU | 605 #endif // SK_SUPPORT_GPU | 
| 606     default: | 606     default: | 
| 607         SkASSERT(false); | 607         SkASSERT(false); | 
| 608         break; | 608         break; | 
| 609     } | 609     } | 
| 610 } | 610 } | 
| 611 | 611 | 
| 612 #endif | 612 #endif | 
| OLD | NEW | 
|---|