| 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> | 5 #include <stddef.h> | 
| 6 #include <stdint.h> | 6 #include <stdint.h> | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 #include <tuple> | 9 #include <tuple> | 
| 10 | 10 | 
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 865 // Unable to include render_widget_host_view_mac.h and compile. | 865 // Unable to include render_widget_host_view_mac.h and compile. | 
| 866 #if !defined(OS_MACOSX) | 866 #if !defined(OS_MACOSX) | 
| 867 // Tests setting background transparency. | 867 // Tests setting background transparency. | 
| 868 TEST_F(RenderWidgetHostTest, Background) { | 868 TEST_F(RenderWidgetHostTest, Background) { | 
| 869   std::unique_ptr<RenderWidgetHostViewBase> view; | 869   std::unique_ptr<RenderWidgetHostViewBase> view; | 
| 870 #if defined(USE_AURA) | 870 #if defined(USE_AURA) | 
| 871   view.reset(new RenderWidgetHostViewAura(host_.get(), false)); | 871   view.reset(new RenderWidgetHostViewAura(host_.get(), false)); | 
| 872   // TODO(derat): Call this on all platforms: http://crbug.com/102450. | 872   // TODO(derat): Call this on all platforms: http://crbug.com/102450. | 
| 873   view->InitAsChild(NULL); | 873   view->InitAsChild(NULL); | 
| 874 #elif defined(OS_ANDROID) | 874 #elif defined(OS_ANDROID) | 
| 875   view.reset(new RenderWidgetHostViewAndroid(host_.get(), NULL)); | 875   view.reset(new RenderWidgetHostViewAndroid(host_.get(), nullptr, nullptr)); | 
| 876 #endif | 876 #endif | 
| 877   host_->SetView(view.get()); | 877   host_->SetView(view.get()); | 
| 878 | 878 | 
| 879   EXPECT_TRUE(view->GetBackgroundOpaque()); | 879   EXPECT_TRUE(view->GetBackgroundOpaque()); | 
| 880   view->SetBackgroundColor(SK_ColorTRANSPARENT); | 880   view->SetBackgroundColor(SK_ColorTRANSPARENT); | 
| 881   EXPECT_FALSE(view->GetBackgroundOpaque()); | 881   EXPECT_FALSE(view->GetBackgroundOpaque()); | 
| 882 | 882 | 
| 883   const IPC::Message* set_background = | 883   const IPC::Message* set_background = | 
| 884       process_->sink().GetUniqueMessageMatching( | 884       process_->sink().GetUniqueMessageMatching( | 
| 885           ViewMsg_SetBackgroundOpaque::ID); | 885           ViewMsg_SetBackgroundOpaque::ID); | 
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1707                                       ui::LatencyInfo()); | 1707                                       ui::LatencyInfo()); | 
| 1708 | 1708 | 
| 1709 | 1709 | 
| 1710   // Tests RWHI::ForwardWheelEventWithLatencyInfo(). | 1710   // Tests RWHI::ForwardWheelEventWithLatencyInfo(). | 
| 1711   SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo()); | 1711   SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo()); | 
| 1712 | 1712 | 
| 1713   ASSERT_FALSE(host_->input_router()->HasPendingEvents()); | 1713   ASSERT_FALSE(host_->input_router()->HasPendingEvents()); | 
| 1714 } | 1714 } | 
| 1715 | 1715 | 
| 1716 }  // namespace content | 1716 }  // namespace content | 
| OLD | NEW | 
|---|