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

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

Issue 10831240: Remove TouchEvent interface, and rename TouchEventImpl to TouchEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge-tot Created 8 years, 4 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) 2012 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 "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/event.h" 9 #include "ui/base/event.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( 53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling(
54 Window* child, 54 Window* child,
55 const gfx::Point& location) { 55 const gfx::Point& location) {
56 return true; 56 return true;
57 } 57 }
58 58
59 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { 59 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) {
60 return false; 60 return false;
61 } 61 }
62 62
63 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEventImpl* event) { 63 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) {
64 return ui::TOUCH_STATUS_UNKNOWN; 64 return ui::TOUCH_STATUS_UNKNOWN;
65 } 65 }
66 66
67 ui::GestureStatus TestWindowDelegate::OnGestureEvent( 67 ui::GestureStatus TestWindowDelegate::OnGestureEvent(
68 ui::GestureEventImpl* event) { 68 ui::GestureEventImpl* event) {
69 return ui::GESTURE_STATUS_UNKNOWN; 69 return ui::GESTURE_STATUS_UNKNOWN;
70 } 70 }
71 71
72 bool TestWindowDelegate::CanFocus() { 72 bool TestWindowDelegate::CanFocus() {
73 return true; 73 return true;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 std::string result = StringPrintf("%d %d", 209 std::string result = StringPrintf("%d %d",
210 key_press_count_, 210 key_press_count_,
211 key_release_count_); 211 key_release_count_);
212 key_press_count_ = 0; 212 key_press_count_ = 0;
213 key_release_count_ = 0; 213 key_release_count_ = 0;
214 return result; 214 return result;
215 } 215 }
216 216
217 } // namespace test 217 } // namespace test
218 } // namespace aura 218 } // 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