Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ui/aura/test/test_window_delegate.cc

Issue 9221014: aura: Gesture event plumbing (skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/aura/test/test_window_delegate.h" 5 #include "ui/aura/test/test_window_delegate.h"
6 6
7 #include "third_party/skia/include/core/SkCanvas.h" 7 #include "third_party/skia/include/core/SkCanvas.h"
8 #include "ui/aura/event.h" 8 #include "ui/aura/event.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { 51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) {
52 return false; 52 return false;
53 } 53 }
54 54
55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { 55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) {
56 return ui::TOUCH_STATUS_UNKNOWN; 56 return ui::TOUCH_STATUS_UNKNOWN;
57 } 57 }
58 58
59 ui::GestureStatus TestWindowDelegate::OnGestureEvent(GestureEvent* event) {
60 return ui::GESTURE_STATUS_UNKNOWN;
61 }
62
59 bool TestWindowDelegate::CanFocus() { 63 bool TestWindowDelegate::CanFocus() {
60 return true; 64 return true;
61 } 65 }
62 66
63 void TestWindowDelegate::OnCaptureLost() { 67 void TestWindowDelegate::OnCaptureLost() {
64 } 68 }
65 69
66 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { 70 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) {
67 } 71 }
68 72
(...skipping 23 matching lines...) Expand all
92 } 96 }
93 void ColorTestWindowDelegate::OnWindowDestroyed() { 97 void ColorTestWindowDelegate::OnWindowDestroyed() {
94 delete this; 98 delete this;
95 } 99 }
96 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) { 100 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) {
97 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode); 101 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode);
98 } 102 }
99 103
100 } // namespace test 104 } // namespace test
101 } // namespace aura 105 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698