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 <stddef.h> |
| 6 |
5 #include <map> | 7 #include <map> |
6 | 8 |
7 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
10 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "build/build_config.h" |
13 #include "cc/playback/display_item_list.h" | 17 #include "cc/playback/display_item_list.h" |
14 #include "cc/playback/display_item_list_settings.h" | 18 #include "cc/playback/display_item_list_settings.h" |
15 #include "ui/base/accelerators/accelerator.h" | 19 #include "ui/base/accelerators/accelerator.h" |
16 #include "ui/base/clipboard/clipboard.h" | 20 #include "ui/base/clipboard/clipboard.h" |
17 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/compositor/compositor.h" | 22 #include "ui/compositor/compositor.h" |
19 #include "ui/compositor/layer.h" | 23 #include "ui/compositor/layer.h" |
20 #include "ui/compositor/layer_animator.h" | 24 #include "ui/compositor/layer_animator.h" |
21 #include "ui/compositor/paint_context.h" | 25 #include "ui/compositor/paint_context.h" |
22 #include "ui/compositor/test/draw_waiter_for_test.h" | 26 #include "ui/compositor/test/draw_waiter_for_test.h" |
(...skipping 4322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4345 | 4349 |
4346 // The View should continue receiving events after the |handler| is deleted. | 4350 // The View should continue receiving events after the |handler| is deleted. |
4347 v->Reset(); | 4351 v->Reset(); |
4348 ui::MouseEvent released(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), | 4352 ui::MouseEvent released(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), |
4349 ui::EventTimeForNow(), 0, 0); | 4353 ui::EventTimeForNow(), 0, 0); |
4350 root->OnMouseReleased(released); | 4354 root->OnMouseReleased(released); |
4351 EXPECT_EQ(ui::ET_MOUSE_RELEASED, v->last_mouse_event_type_); | 4355 EXPECT_EQ(ui::ET_MOUSE_RELEASED, v->last_mouse_event_type_); |
4352 } | 4356 } |
4353 | 4357 |
4354 } // namespace views | 4358 } // namespace views |
OLD | NEW |