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

Side by Side Diff: ui/aura/demo/demo_main.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 | « content/common/sandbox_seccomp_bpf_linux.cc ('k') | ui/aura/event_filter.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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return HTCAPTION; 52 return HTCAPTION;
53 } 53 }
54 virtual bool ShouldDescendIntoChildForEventHandling( 54 virtual bool ShouldDescendIntoChildForEventHandling(
55 aura::Window* child, 55 aura::Window* child,
56 const gfx::Point& location) OVERRIDE { 56 const gfx::Point& location) OVERRIDE {
57 return true; 57 return true;
58 } 58 }
59 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE { 59 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
60 return true; 60 return true;
61 } 61 }
62 virtual ui::TouchStatus OnTouchEvent(ui::TouchEventImpl* event) OVERRIDE { 62 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
63 return ui::TOUCH_STATUS_END; 63 return ui::TOUCH_STATUS_END;
64 } 64 }
65 virtual ui::GestureStatus OnGestureEvent( 65 virtual ui::GestureStatus OnGestureEvent(
66 ui::GestureEventImpl* event) OVERRIDE { 66 ui::GestureEventImpl* event) OVERRIDE {
67 return ui::GESTURE_STATUS_UNKNOWN; 67 return ui::GESTURE_STATUS_UNKNOWN;
68 } 68 }
69 virtual bool CanFocus() OVERRIDE { return true; } 69 virtual bool CanFocus() OVERRIDE { return true; }
70 virtual void OnCaptureLost() OVERRIDE {} 70 virtual void OnCaptureLost() OVERRIDE {}
71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { 71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
72 canvas->DrawColor(color_, SkXfermode::kSrc_Mode); 72 canvas->DrawColor(color_, SkXfermode::kSrc_Mode);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 window3.Show(); 160 window3.Show();
161 window3.SetParent(&window2); 161 window3.SetParent(&window2);
162 162
163 root_window->ShowRootWindow(); 163 root_window->ShowRootWindow();
164 MessageLoopForUI::current()->Run(); 164 MessageLoopForUI::current()->Run();
165 165
166 ui::CompositorTestSupport::Terminate(); 166 ui::CompositorTestSupport::Terminate();
167 167
168 return 0; 168 return 0;
169 } 169 }
OLDNEW
« no previous file with comments | « content/common/sandbox_seccomp_bpf_linux.cc ('k') | ui/aura/event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698