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

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

Issue 2122403002: Android: Extend ViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Extend ViewAndroid Created 4 years, 5 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 (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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "content/browser/accessibility/browser_accessibility_manager.h" 26 #include "content/browser/accessibility/browser_accessibility_manager.h"
27 #include "content/browser/android/content_view_core_impl_observer.h" 27 #include "content/browser/android/content_view_core_impl_observer.h"
28 #include "content/browser/renderer_host/delegated_frame_evictor.h" 28 #include "content/browser/renderer_host/delegated_frame_evictor.h"
29 #include "content/browser/renderer_host/ime_adapter_android.h" 29 #include "content/browser/renderer_host/ime_adapter_android.h"
30 #include "content/browser/renderer_host/input/stylus_text_selector.h" 30 #include "content/browser/renderer_host/input/stylus_text_selector.h"
31 #include "content/browser/renderer_host/render_widget_host_view_base.h" 31 #include "content/browser/renderer_host/render_widget_host_view_base.h"
32 #include "content/common/content_export.h" 32 #include "content/common/content_export.h"
33 #include "content/public/browser/readback_types.h" 33 #include "content/public/browser/readback_types.h"
34 #include "gpu/command_buffer/common/mailbox.h" 34 #include "gpu/command_buffer/common/mailbox.h"
35 #include "third_party/skia/include/core/SkColor.h" 35 #include "third_party/skia/include/core/SkColor.h"
36 #include "ui/android/view_android.h"
36 #include "ui/android/window_android_observer.h" 37 #include "ui/android/window_android_observer.h"
37 #include "ui/events/gesture_detection/filtered_gesture_provider.h" 38 #include "ui/events/gesture_detection/filtered_gesture_provider.h"
38 #include "ui/gfx/geometry/size.h" 39 #include "ui/gfx/geometry/size.h"
39 #include "ui/gfx/geometry/vector2d_f.h" 40 #include "ui/gfx/geometry/vector2d_f.h"
40 #include "ui/gfx/selection_bound.h" 41 #include "ui/gfx/selection_bound.h"
41 #include "ui/touch_selection/touch_selection_controller.h" 42 #include "ui/touch_selection/touch_selection_controller.h"
42 43
43 namespace cc { 44 namespace cc {
44 class CopyOutputResult; 45 class CopyOutputResult;
45 class Layer; 46 class Layer;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 bool is_window_activity_started_; 335 bool is_window_activity_started_;
335 336
336 // ContentViewCoreImpl is our interface to the view system. 337 // ContentViewCoreImpl is our interface to the view system.
337 ContentViewCoreImpl* content_view_core_; 338 ContentViewCoreImpl* content_view_core_;
338 339
339 ImeAdapterAndroid ime_adapter_android_; 340 ImeAdapterAndroid ime_adapter_android_;
340 341
341 // Body background color of the underlying document. 342 // Body background color of the underlying document.
342 SkColor cached_background_color_; 343 SkColor cached_background_color_;
343 344
344 scoped_refptr<cc::Layer> layer_; 345 mutable ui::ViewAndroid view_;
Yusuf 2016/07/08 16:35:05 Where do we initialize this? and also in destroy s
no sievers 2016/07/08 18:29:04 We set the |view_|'s layer still at the same time
345 346
346 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; 347 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
347 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 348 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
348 cc::SurfaceId surface_id_; 349 cc::SurfaceId surface_id_;
349 gfx::Size current_surface_size_; 350 gfx::Size current_surface_size_;
350 cc::ReturnedResourceArray surface_returned_resources_; 351 cc::ReturnedResourceArray surface_returned_resources_;
351 gfx::Vector2dF location_bar_content_translation_; 352 gfx::Vector2dF location_bar_content_translation_;
352 cc::Selection<gfx::SelectionBound> current_viewport_selection_; 353 cc::Selection<gfx::SelectionBound> current_viewport_selection_;
353 354
354 // The most recent texture size that was pushed to the texture layer. 355 // The most recent texture size that was pushed to the texture layer.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 gfx::Vector2dF last_scroll_offset_; 401 gfx::Vector2dF last_scroll_offset_;
401 402
402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
403 404
404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
405 }; 406 };
406 407
407 } // namespace content 408 } // namespace content
408 409
409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698