| 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 "base/mac/scoped_nsautorelease_pool.h" | 7 #include "base/mac/scoped_nsautorelease_pool.h" |
| 8 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
| 9 #include "content/browser/renderer_host/test_render_view_host.h" | 9 #include "content/browser/renderer_host/test_render_view_host.h" |
| 10 #include "content/common/gpu/gpu_messages.h" | 10 #include "content/common/gpu/gpu_messages.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 // A click on the accelerated view should focus the RWHVCocoa. | 195 // A click on the accelerated view should focus the RWHVCocoa. |
| 196 std::pair<NSEvent*, NSEvent*> clicks = | 196 std::pair<NSEvent*, NSEvent*> clicks = |
| 197 cocoa_test_event_utils::MouseClickInView(accelerated_view, 1); | 197 cocoa_test_event_utils::MouseClickInView(accelerated_view, 1); |
| 198 [rwhv_cocoa_.get() mouseDown:clicks.first]; | 198 [rwhv_cocoa_.get() mouseDown:clicks.first]; |
| 199 EXPECT_EQ(rwhv_cocoa_.get(), [window firstResponder]); | 199 EXPECT_EQ(rwhv_cocoa_.get(), [window firstResponder]); |
| 200 | 200 |
| 201 // Clean up. | 201 // Clean up. |
| 202 rwhv_mac_->DestroyFakePluginWindowHandle(accelerated_handle); | 202 rwhv_mac_->DestroyFakePluginWindowHandle(accelerated_handle); |
| 203 } | 203 } |
| 204 |
| 205 TEST_F(RenderWidgetHostViewMacTest, Fullscreen) { |
| 206 rwhv_mac_->InitAsFullscreen(NULL); |
| 207 EXPECT_TRUE(rwhv_mac_->pepper_fullscreen_window()); |
| 208 } |
| OLD | NEW |