| 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 "SkWindow.h" | 8 #include "SkWindow.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 341 |
| 342 void SkWindow::onHandleInval(const SkIRect&) | 342 void SkWindow::onHandleInval(const SkIRect&) |
| 343 { | 343 { |
| 344 } | 344 } |
| 345 | 345 |
| 346 bool SkWindow::onHandleChar(SkUnichar) | 346 bool SkWindow::onHandleChar(SkUnichar) |
| 347 { | 347 { |
| 348 return false; | 348 return false; |
| 349 } | 349 } |
| 350 | 350 |
| 351 bool SkWindow::onHandleKey(SkKey key) | 351 bool SkWindow::onHandleKey(SkKey) |
| 352 { | 352 { |
| 353 return false; | 353 return false; |
| 354 } | 354 } |
| 355 | 355 |
| 356 bool SkWindow::onHandleKeyUp(SkKey key) | 356 bool SkWindow::onHandleKeyUp(SkKey) |
| 357 { | 357 { |
| 358 return false; | 358 return false; |
| 359 } | 359 } |
| 360 | 360 |
| 361 bool SkWindow::handleClick(int x, int y, Click::State state, void *owner, | 361 bool SkWindow::handleClick(int x, int y, Click::State state, void *owner, |
| 362 unsigned modifierKeys) { | 362 unsigned modifierKeys) { |
| 363 return this->onDispatchClick(x, y, state, owner, modifierKeys); | 363 return this->onDispatchClick(x, y, state, owner, modifierKeys); |
| 364 } | 364 } |
| 365 | 365 |
| 366 bool SkWindow::onDispatchClick(int x, int y, Click::State state, | 366 bool SkWindow::onDispatchClick(int x, int y, Click::State state, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 fClicks.remove(index); | 406 fClicks.remove(index); |
| 407 handled = true; | 407 handled = true; |
| 408 } | 408 } |
| 409 break; | 409 break; |
| 410 default: | 410 default: |
| 411 // Do nothing | 411 // Do nothing |
| 412 break; | 412 break; |
| 413 } | 413 } |
| 414 return handled; | 414 return handled; |
| 415 } | 415 } |
| OLD | NEW |