| 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 "content/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
| 6 | 6 |
| 7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
| 13 #include "base/mac/scoped_nsautorelease_pool.h" | 13 #include "base/mac/scoped_nsautorelease_pool.h" |
| 14 #include "base/mac/sdk_forward_declarations.h" | 14 #include "base/mac/sdk_forward_declarations.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "content/browser/browser_thread_impl.h" | 17 #include "content/browser/browser_thread_impl.h" |
| 18 #include "content/browser/compositor/test/no_transport_image_transport_factory.h
" | 18 #include "content/browser/compositor/test/no_transport_image_transport_factory.h
" |
| 19 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 19 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
| 20 #include "content/browser/gpu/compositor_util.h" | 20 #include "content/browser/gpu/compositor_util.h" |
| 21 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 21 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 22 #include "content/common/gpu/gpu_messages.h" | |
| 23 #include "content/common/input_messages.h" | 22 #include "content/common/input_messages.h" |
| 24 #include "content/common/view_messages.h" | 23 #include "content/common/view_messages.h" |
| 25 #include "content/public/browser/notification_types.h" | 24 #include "content/public/browser/notification_types.h" |
| 26 #include "content/public/browser/render_widget_host_view_mac_delegate.h" | 25 #include "content/public/browser/render_widget_host_view_mac_delegate.h" |
| 27 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
| 28 #include "content/public/test/mock_render_process_host.h" | 27 #include "content/public/test/mock_render_process_host.h" |
| 29 #include "content/public/test/test_browser_context.h" | 28 #include "content/public/test/test_browser_context.h" |
| 30 #include "content/public/test/test_utils.h" | 29 #include "content/public/test/test_utils.h" |
| 31 #include "content/test/test_render_view_host.h" | 30 #include "content/test/test_render_view_host.h" |
| 31 #include "gpu/ipc/common/gpu_messages.h" |
| 32 #include "testing/gmock/include/gmock/gmock.h" | 32 #include "testing/gmock/include/gmock/gmock.h" |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
| 34 #include "testing/gtest_mac.h" | 34 #include "testing/gtest_mac.h" |
| 35 #import "third_party/ocmock/OCMock/OCMock.h" | 35 #import "third_party/ocmock/OCMock/OCMock.h" |
| 36 #import "third_party/ocmock/ocmock_extensions.h" | 36 #import "third_party/ocmock/ocmock_extensions.h" |
| 37 #include "ui/events/test/cocoa_test_event_utils.h" | 37 #include "ui/events/test/cocoa_test_event_utils.h" |
| 38 #import "ui/gfx/test/ui_cocoa_test_helper.h" | 38 #import "ui/gfx/test/ui_cocoa_test_helper.h" |
| 39 | 39 |
| 40 // Helper class with methods used to mock -[NSEvent phase], used by | 40 // Helper class with methods used to mock -[NSEvent phase], used by |
| 41 // |MockScrollWheelEventWithPhase()|. | 41 // |MockScrollWheelEventWithPhase()|. |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 EXPECT_EQ(1U, process_host_->sink().message_count()); | 1215 EXPECT_EQ(1U, process_host_->sink().message_count()); |
| 1216 process_host_->sink().ClearMessages(); | 1216 process_host_->sink().ClearMessages(); |
| 1217 } | 1217 } |
| 1218 | 1218 |
| 1219 // Clean up. | 1219 // Clean up. |
| 1220 host->ShutdownAndDestroyWidget(true); | 1220 host->ShutdownAndDestroyWidget(true); |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 | 1223 |
| 1224 } // namespace content | 1224 } // namespace content |
| OLD | NEW |