| 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 |
| 11 #include "base/android/application_status_listener.h" | 11 #include "base/android/application_status_listener.h" |
| 12 #include "base/android/build_info.h" | 12 #include "base/android/build_info.h" |
| 13 #include "base/android/context_utils.h" | 13 #include "base/android/context_utils.h" |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/callback_helpers.h" | 15 #include "base/callback_helpers.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ptr_util.h" |
| 20 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 21 #include "base/metrics/histogram_macros.h" | 22 #include "base/metrics/histogram_macros.h" |
| 22 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
| 23 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
| 24 #include "base/sys_info.h" | 25 #include "base/sys_info.h" |
| 25 #include "base/threading/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
| 26 #include "base/threading/worker_pool.h" | 27 #include "base/threading/worker_pool.h" |
| 27 #include "cc/layers/layer.h" | 28 #include "cc/layers/layer.h" |
| 28 #include "cc/layers/surface_layer.h" | 29 #include "cc/layers/surface_layer.h" |
| 29 #include "cc/output/compositor_frame.h" | 30 #include "cc/output/compositor_frame.h" |
| (...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 if (!compositor) | 2072 if (!compositor) |
| 2072 return; | 2073 return; |
| 2073 | 2074 |
| 2074 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( | 2075 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( |
| 2075 overscroll_refresh_handler, compositor, | 2076 overscroll_refresh_handler, compositor, |
| 2076 ui::GetScaleFactorForNativeView(GetNativeView())); | 2077 ui::GetScaleFactorForNativeView(GetNativeView())); |
| 2077 is_showing_overscroll_glow_ = true; | 2078 is_showing_overscroll_glow_ = true; |
| 2078 } | 2079 } |
| 2079 | 2080 |
| 2080 } // namespace content | 2081 } // namespace content |
| OLD | NEW |