| 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_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 ime_adapter_android_(nullptr), | 452 ime_adapter_android_(nullptr), |
| 453 background_color_(SK_ColorWHITE), | 453 background_color_(SK_ColorWHITE), |
| 454 cached_background_color_(SK_ColorWHITE), | 454 cached_background_color_(SK_ColorWHITE), |
| 455 view_(this), | 455 view_(this), |
| 456 gesture_provider_(ui::GetGestureProviderConfig( | 456 gesture_provider_(ui::GetGestureProviderConfig( |
| 457 ui::GestureProviderConfigType::CURRENT_PLATFORM), | 457 ui::GestureProviderConfigType::CURRENT_PLATFORM), |
| 458 this), | 458 this), |
| 459 stylus_text_selector_(this), | 459 stylus_text_selector_(this), |
| 460 using_browser_compositor_(CompositorImpl::IsInitialized()), | 460 using_browser_compositor_(CompositorImpl::IsInitialized()), |
| 461 synchronous_compositor_client_(nullptr), | 461 synchronous_compositor_client_(nullptr), |
| 462 frame_evictor_(new DelegatedFrameEvictor(this)), | 462 frame_evictor_(new viz::FrameEvictor(this)), |
| 463 observing_root_window_(false), | 463 observing_root_window_(false), |
| 464 prev_top_shown_pix_(0.f), | 464 prev_top_shown_pix_(0.f), |
| 465 prev_bottom_shown_pix_(0.f), | 465 prev_bottom_shown_pix_(0.f), |
| 466 weak_ptr_factory_(this) { | 466 weak_ptr_factory_(this) { |
| 467 // Set the layer which will hold the content layer for this view. The content | 467 // Set the layer which will hold the content layer for this view. The content |
| 468 // layer is managed by the DelegatedFrameHost. | 468 // layer is managed by the DelegatedFrameHost. |
| 469 view_.SetLayer(cc::Layer::Create()); | 469 view_.SetLayer(cc::Layer::Create()); |
| 470 view_.SetLayout(ui::ViewAndroid::LayoutParams::MatchParent()); | 470 view_.SetLayout(ui::ViewAndroid::LayoutParams::MatchParent()); |
| 471 | 471 |
| 472 if (using_browser_compositor_) { | 472 if (using_browser_compositor_) { |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 | 2194 |
| 2195 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); | 2195 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); |
| 2196 if (!compositor) | 2196 if (!compositor) |
| 2197 return; | 2197 return; |
| 2198 | 2198 |
| 2199 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( | 2199 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( |
| 2200 overscroll_refresh_handler, compositor, view_.GetDipScale()); | 2200 overscroll_refresh_handler, compositor, view_.GetDipScale()); |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 } // namespace content | 2203 } // namespace content |
| OLD | NEW |