| 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 "ui/aura/test/test_window_delegate.h" | 5 #include "ui/aura/test/test_window_delegate.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/base/events/event.h" | 9 #include "ui/base/events/event.h" |
| 10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { | 85 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { |
| 86 } | 86 } |
| 87 | 87 |
| 88 bool TestWindowDelegate::HasHitTestMask() const { | 88 bool TestWindowDelegate::HasHitTestMask() const { |
| 89 return false; | 89 return false; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const { | 92 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const { |
| 93 } | 93 } |
| 94 | 94 |
| 95 scoped_refptr<ui::Texture> TestWindowDelegate::CopyTexture() { | 95 void TestWindowDelegate::DidRecreateLayer(ui::Layer *old_layer, |
| 96 return scoped_refptr<ui::Texture>(); | 96 ui::Layer *new_layer) { |
| 97 } | 97 } |
| 98 | 98 |
| 99 //////////////////////////////////////////////////////////////////////////////// | 99 //////////////////////////////////////////////////////////////////////////////// |
| 100 // ColorTestWindowDelegate | 100 // ColorTestWindowDelegate |
| 101 | 101 |
| 102 ColorTestWindowDelegate::ColorTestWindowDelegate(SkColor color) | 102 ColorTestWindowDelegate::ColorTestWindowDelegate(SkColor color) |
| 103 : color_(color), | 103 : color_(color), |
| 104 last_key_code_(ui::VKEY_UNKNOWN) { | 104 last_key_code_(ui::VKEY_UNKNOWN) { |
| 105 } | 105 } |
| 106 | 106 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 std::string result = base::StringPrintf("%d %d", | 207 std::string result = base::StringPrintf("%d %d", |
| 208 key_press_count_, | 208 key_press_count_, |
| 209 key_release_count_); | 209 key_release_count_); |
| 210 key_press_count_ = 0; | 210 key_press_count_ = 0; |
| 211 key_release_count_ = 0; | 211 key_release_count_ = 0; |
| 212 return result; | 212 return result; |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace test | 215 } // namespace test |
| 216 } // namespace aura | 216 } // namespace aura |
| OLD | NEW |