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 <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 #include <X11/XKBlib.h> | 10 #include <X11/XKBlib.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "keysym2ucs.h" | 25 #include "keysym2ucs.h" |
26 } | 26 } |
27 | 27 |
28 const int WIDTH = 500; | 28 const int WIDTH = 500; |
29 const int HEIGHT = 500; | 29 const int HEIGHT = 500; |
30 | 30 |
31 // Determine which events to listen for. | 31 // Determine which events to listen for. |
32 const long EVENT_MASK = StructureNotifyMask|ButtonPressMask|ButtonReleaseMask | 32 const long EVENT_MASK = StructureNotifyMask|ButtonPressMask|ButtonReleaseMask |
33 |ExposureMask|PointerMotionMask|KeyPressMask|KeyReleaseMask; | 33 |ExposureMask|PointerMotionMask|KeyPressMask|KeyReleaseMask; |
34 | 34 |
35 SkOSWindow::SkOSWindow(void* unused) | 35 SkOSWindow::SkOSWindow(void*) |
36 : fVi(NULL) | 36 : fVi(NULL) |
37 , fMSAASampleCount(0) { | 37 , fMSAASampleCount(0) { |
38 fUnixWindow.fDisplay = NULL; | 38 fUnixWindow.fDisplay = NULL; |
39 fUnixWindow.fGLContext = NULL; | 39 fUnixWindow.fGLContext = NULL; |
40 this->initWindow(0, NULL); | 40 this->initWindow(0, NULL); |
41 this->resize(WIDTH, HEIGHT); | 41 this->resize(WIDTH, HEIGHT); |
42 } | 42 } |
43 | 43 |
44 SkOSWindow::~SkOSWindow() { | 44 SkOSWindow::~SkOSWindow() { |
45 this->closeWindow(); | 45 this->closeWindow(); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 &image, | 373 &image, |
374 0, 0, // src x,y | 374 0, 0, // src x,y |
375 0, 0, // dst x,y | 375 0, 0, // dst x,y |
376 width, height); | 376 width, height); |
377 } | 377 } |
378 | 378 |
379 bool SkOSWindow::onHandleChar(SkUnichar) { | 379 bool SkOSWindow::onHandleChar(SkUnichar) { |
380 return false; | 380 return false; |
381 } | 381 } |
382 | 382 |
383 bool SkOSWindow::onHandleKey(SkKey key) { | 383 bool SkOSWindow::onHandleKey(SkKey) { |
384 return false; | 384 return false; |
385 } | 385 } |
386 | 386 |
387 bool SkOSWindow::onHandleKeyUp(SkKey key) { | 387 bool SkOSWindow::onHandleKeyUp(SkKey) { |
388 return false; | 388 return false; |
389 } | 389 } |
OLD | NEW |