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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content-offset -> top-controls-shown renaming and respond to bokan's comments 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool HasFocus() const override; 99 bool HasFocus() const override;
100 bool IsSurfaceAvailableForCopy() const override; 100 bool IsSurfaceAvailableForCopy() const override;
101 void Show() override; 101 void Show() override;
102 void Hide() override; 102 void Hide() override;
103 bool IsShowing() override; 103 bool IsShowing() override;
104 gfx::Rect GetViewBounds() const override; 104 gfx::Rect GetViewBounds() const override;
105 gfx::Size GetVisibleViewportSize() const override; 105 gfx::Size GetVisibleViewportSize() const override;
106 gfx::Size GetPhysicalBackingSize() const override; 106 gfx::Size GetPhysicalBackingSize() const override;
107 bool DoTopControlsShrinkBlinkSize() const override; 107 bool DoTopControlsShrinkBlinkSize() const override;
108 float GetTopControlsHeight() const override; 108 float GetTopControlsHeight() const override;
109 float GetBottomControlsHeight() const override;
109 void UpdateCursor(const WebCursor& cursor) override; 110 void UpdateCursor(const WebCursor& cursor) override;
110 void SetIsLoading(bool is_loading) override; 111 void SetIsLoading(bool is_loading) override;
111 void TextInputStateChanged(const TextInputState& params) override; 112 void TextInputStateChanged(const TextInputState& params) override;
112 void ImeCancelComposition() override; 113 void ImeCancelComposition() override;
113 void ImeCompositionRangeChanged( 114 void ImeCompositionRangeChanged(
114 const gfx::Range& range, 115 const gfx::Range& range,
115 const std::vector<gfx::Rect>& character_bounds) override; 116 const std::vector<gfx::Rect>& character_bounds) override;
116 void FocusedNodeChanged(bool is_editable_node) override; 117 void FocusedNodeChanged(bool is_editable_node) override;
117 void RenderProcessGone(base::TerminationStatus status, 118 void RenderProcessGone(base::TerminationStatus status,
118 int error_code) override; 119 int error_code) override;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Body background color of the underlying document. 345 // Body background color of the underlying document.
345 SkColor cached_background_color_; 346 SkColor cached_background_color_;
346 347
347 scoped_refptr<cc::Layer> layer_; 348 scoped_refptr<cc::Layer> layer_;
348 349
349 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; 350 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
350 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 351 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
351 cc::SurfaceId surface_id_; 352 cc::SurfaceId surface_id_;
352 gfx::Size current_surface_size_; 353 gfx::Size current_surface_size_;
353 cc::ReturnedResourceArray surface_returned_resources_; 354 cc::ReturnedResourceArray surface_returned_resources_;
354 gfx::Vector2dF location_bar_content_translation_; 355 gfx::Vector2dF top_bar_shown_;
355 cc::Selection<gfx::SelectionBound> current_viewport_selection_; 356 cc::Selection<gfx::SelectionBound> current_viewport_selection_;
356 357
357 // The most recent texture size that was pushed to the texture layer. 358 // The most recent texture size that was pushed to the texture layer.
358 gfx::Size texture_size_in_layer_; 359 gfx::Size texture_size_in_layer_;
359 360
360 // The output surface id of the last received frame. 361 // The output surface id of the last received frame.
361 uint32_t last_output_surface_id_; 362 uint32_t last_output_surface_id_;
362 363
363 364
364 std::queue<base::Closure> ack_callbacks_; 365 std::queue<base::Closure> ack_callbacks_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 gfx::Vector2dF last_scroll_offset_; 404 gfx::Vector2dF last_scroll_offset_;
404 405
405 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 406 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
406 407
407 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 408 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
408 }; 409 };
409 410
410 } // namespace content 411 } // namespace content
411 412
412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 413 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698