OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |