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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 1103213003: [Android] Avoid using ContentViewCore when detaching from RWHVAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper build Created 5 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 bool use_surfaces_; 323 bool use_surfaces_;
324 324
325 // Used to control action dispatch at the next |OnVSync()| call. 325 // Used to control action dispatch at the next |OnVSync()| call.
326 uint32 outstanding_vsync_requests_; 326 uint32 outstanding_vsync_requests_;
327 327
328 bool is_showing_; 328 bool is_showing_;
329 329
330 // ContentViewCoreImpl is our interface to the view system. 330 // ContentViewCoreImpl is our interface to the view system.
331 ContentViewCoreImpl* content_view_core_; 331 ContentViewCoreImpl* content_view_core_;
332 332
333 // Cache the WindowAndroid instance exposed by ContentViewCore to avoid
334 // calling into ContentViewCore when it is being detached from the
335 // WebContents during destruction. The WindowAndroid has stronger lifetime
336 // guarantees, and should be safe to use for observer detachment.
337 // This will be valid iff |content_view_core_| is valid.
338 ui::WindowAndroid* content_view_core_window_android_;
jdduke (slow) 2015/04/28 18:38:01 I'm not married to this name. |current_window_and
339
333 ImeAdapterAndroid ime_adapter_android_; 340 ImeAdapterAndroid ime_adapter_android_;
334 341
335 // Body background color of the underlying document. 342 // Body background color of the underlying document.
336 SkColor cached_background_color_; 343 SkColor cached_background_color_;
337 344
338 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; 345 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_;
339 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; 346 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_;
340 scoped_refptr<cc::Layer> layer_; 347 scoped_refptr<cc::Layer> layer_;
341 348
342 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_; 349 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 gfx::Vector2dF last_scroll_offset_; 406 gfx::Vector2dF last_scroll_offset_;
400 407
401 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 408 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
402 409
403 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 410 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
404 }; 411 };
405 412
406 } // namespace content 413 } // namespace content
407 414
408 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698