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

Side by Side Diff: ui/aura/demo/demo_main.cc

Issue 10964051: events: Clean up dispatching code for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/browser/web_contents/web_contents_view_aura.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return scoped_refptr<ui::Texture>(); 70 return scoped_refptr<ui::Texture>();
71 } 71 }
72 72
73 // Overridden from ui::EventHandler: 73 // Overridden from ui::EventHandler:
74 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE { 74 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE {
75 return ui::ER_UNHANDLED; 75 return ui::ER_UNHANDLED;
76 } 76 }
77 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE { 77 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE {
78 return ui::ER_HANDLED; 78 return ui::ER_HANDLED;
79 } 79 }
80 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE { 80 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE {
81 return ui::TOUCH_STATUS_END; 81 return ui::ER_UNHANDLED;
82 } 82 }
83 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE { 83 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE {
84 return ui::ER_UNHANDLED; 84 return ui::ER_UNHANDLED;
85 } 85 }
86 86
87 private: 87 private:
88 SkColor color_; 88 SkColor color_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate); 90 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate);
91 }; 91 };
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // The exit manager is in charge of calling the dtors of singleton objects. 180 // The exit manager is in charge of calling the dtors of singleton objects.
181 base::AtExitManager exit_manager; 181 base::AtExitManager exit_manager;
182 182
183 ui::RegisterPathProvider(); 183 ui::RegisterPathProvider();
184 icu_util::Initialize(); 184 icu_util::Initialize();
185 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 185 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
186 186
187 return RunMain(); 187 return RunMain();
188 } 188 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/aura/event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698