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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const gfx::Vector2dF& current_fling_velocity) override; 121 const gfx::Vector2dF& current_fling_velocity) override;
122 122
123 void OnParentDrawConstraintsUpdated(); 123 void OnParentDrawConstraintsUpdated();
124 void DetachFunctorFromView(); 124 void DetachFunctorFromView();
125 125
126 private: 126 private:
127 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip); 127 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip);
128 bool CanOnDraw(); 128 bool CanOnDraw();
129 void UpdateCompositorIsActive(); 129 void UpdateCompositorIsActive();
130 bool CompositeSW(SkCanvas* canvas); 130 bool CompositeSW(SkCanvas* canvas);
131 scoped_ptr<base::trace_event::ConvertableToTraceFormat> RootLayerStateAsValue( 131 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
132 const gfx::Vector2dF& total_scroll_offset_dip, 132 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip,
133 const gfx::SizeF& scrollable_size_dip); 133 const gfx::SizeF& scrollable_size_dip);
134 134
135 void ReturnUnusedResource(scoped_ptr<ChildFrame> frame); 135 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame);
136 void ReturnResourceFromParent(); 136 void ReturnResourceFromParent();
137 137
138 gfx::Vector2d max_scroll_offset() const; 138 gfx::Vector2d max_scroll_offset() const;
139 139
140 void UpdateMemoryPolicy(); 140 void UpdateMemoryPolicy();
141 141
142 uint32_t GetCompositorID(content::SynchronousCompositor* compositor); 142 uint32_t GetCompositorID(content::SynchronousCompositor* compositor);
143 // For debug tracing or logging. Return the string representation of this 143 // For debug tracing or logging. Return the string representation of this
144 // view renderer's state. 144 // view renderer's state.
145 std::string ToString() const; 145 std::string ToString() const;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 uint32_t next_compositor_id_; 194 uint32_t next_compositor_id_;
195 195
196 ParentCompositorDrawConstraints external_draw_constraints_; 196 ParentCompositorDrawConstraints external_draw_constraints_;
197 197
198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
199 }; 199 };
200 200
201 } // namespace android_webview 201 } // namespace android_webview
202 202
203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.h ('k') | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698