Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 1747783002: CC Animation: Erase old animation system in Android Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "cc/layers/layer.h" 19 #include "cc/layers/layer.h"
20 #include "cc/layers/layer_settings.h"
20 #include "cc/layers/solid_color_layer.h" 21 #include "cc/layers/solid_color_layer.h"
21 #include "cc/output/begin_frame_args.h" 22 #include "cc/output/begin_frame_args.h"
22 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 23 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
23 #include "content/browser/android/gesture_event_type.h" 24 #include "content/browser/android/gesture_event_type.h"
24 #include "content/browser/android/interstitial_page_delegate_android.h" 25 #include "content/browser/android/interstitial_page_delegate_android.h"
25 #include "content/browser/android/java/gin_java_bridge_dispatcher_host.h" 26 #include "content/browser/android/java/gin_java_bridge_dispatcher_host.h"
26 #include "content/browser/android/load_url_params.h" 27 #include "content/browser/android/load_url_params.h"
27 #include "content/browser/frame_host/interstitial_page_impl.h" 28 #include "content/browser/frame_host/interstitial_page_impl.h"
28 #include "content/browser/geolocation/geolocation_service_context.h" 29 #include "content/browser/geolocation/geolocation_service_context.h"
29 #include "content/browser/media/media_web_contents_observer.h" 30 #include "content/browser/media/media_web_contents_observer.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 ContentViewCoreImpl::ContentViewCoreImpl( 207 ContentViewCoreImpl::ContentViewCoreImpl(
207 JNIEnv* env, 208 JNIEnv* env,
208 jobject obj, 209 jobject obj,
209 WebContents* web_contents, 210 WebContents* web_contents,
210 jobject view_android_delegate, 211 jobject view_android_delegate,
211 ui::WindowAndroid* window_android, 212 ui::WindowAndroid* window_android,
212 jobject java_bridge_retained_object_set) 213 jobject java_bridge_retained_object_set)
213 : WebContentsObserver(web_contents), 214 : WebContentsObserver(web_contents),
214 java_ref_(env, obj), 215 java_ref_(env, obj),
215 web_contents_(static_cast<WebContentsImpl*>(web_contents)), 216 web_contents_(static_cast<WebContentsImpl*>(web_contents)),
216 root_layer_(cc::SolidColorLayer::Create(Compositor::LayerSettings())), 217 root_layer_(cc::SolidColorLayer::Create(cc::LayerSettings())),
217 page_scale_(1), 218 page_scale_(1),
218 dpi_scale_(ui::GetScaleFactorForNativeView(this)), 219 dpi_scale_(ui::GetScaleFactorForNativeView(this)),
219 window_android_(window_android), 220 window_android_(window_android),
220 device_orientation_(0), 221 device_orientation_(0),
221 accessibility_enabled_(false) { 222 accessibility_enabled_(false) {
222 CHECK(web_contents) << 223 CHECK(web_contents) <<
223 "A ContentViewCoreImpl should be created with a valid WebContents."; 224 "A ContentViewCoreImpl should be created with a valid WebContents.";
224 DCHECK(window_android_); 225 DCHECK(window_android_);
225 DCHECK(view_android_delegate); 226 DCHECK(view_android_delegate);
226 view_android_delegate_.Reset(AttachCurrentThread(), view_android_delegate); 227 view_android_delegate_.Reset(AttachCurrentThread(), view_android_delegate);
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 return ScopedJavaLocalRef<jobject>(); 1541 return ScopedJavaLocalRef<jobject>();
1541 1542
1542 return view->GetJavaObject(); 1543 return view->GetJavaObject();
1543 } 1544 }
1544 1545
1545 bool RegisterContentViewCore(JNIEnv* env) { 1546 bool RegisterContentViewCore(JNIEnv* env) {
1546 return RegisterNativesImpl(env); 1547 return RegisterNativesImpl(env);
1547 } 1548 }
1548 1549
1549 } // namespace content 1550 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_startup_flags.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698