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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |