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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void OnCaptureLost() OVERRIDE {} | 57 virtual void OnCaptureLost() OVERRIDE {} |
58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { | 58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { |
59 canvas->DrawColor(color_, SkXfermode::kSrc_Mode); | 59 canvas->DrawColor(color_, SkXfermode::kSrc_Mode); |
60 } | 60 } |
61 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} | 61 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} |
62 virtual void OnWindowDestroying() OVERRIDE {} | 62 virtual void OnWindowDestroying() OVERRIDE {} |
63 virtual void OnWindowDestroyed() OVERRIDE {} | 63 virtual void OnWindowDestroyed() OVERRIDE {} |
64 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} | 64 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} |
65 virtual bool HasHitTestMask() const OVERRIDE { return false; } | 65 virtual bool HasHitTestMask() const OVERRIDE { return false; } |
66 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} | 66 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} |
| 67 scoped_refptr<ui::Texture> CopyTexture() { |
| 68 return scoped_refptr<ui::Texture>(); |
| 69 } |
67 | 70 |
68 // Overridden from ui::EventHandler: | 71 // Overridden from ui::EventHandler: |
69 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE { | 72 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE { |
70 return ui::ER_UNHANDLED; | 73 return ui::ER_UNHANDLED; |
71 } | 74 } |
72 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE { | 75 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE { |
73 return ui::ER_HANDLED; | 76 return ui::ER_HANDLED; |
74 } | 77 } |
75 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE { | 78 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE { |
76 return ui::TOUCH_STATUS_END; | 79 return ui::TOUCH_STATUS_END; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 window3.Show(); | 164 window3.Show(); |
162 window3.SetParent(&window2); | 165 window3.SetParent(&window2); |
163 | 166 |
164 root_window->ShowRootWindow(); | 167 root_window->ShowRootWindow(); |
165 MessageLoopForUI::current()->Run(); | 168 MessageLoopForUI::current()->Run(); |
166 | 169 |
167 ui::CompositorTestSupport::Terminate(); | 170 ui::CompositorTestSupport::Terminate(); |
168 | 171 |
169 return 0; | 172 return 0; |
170 } | 173 } |
OLD | NEW |