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

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

Issue 623833003: replace OVERRIDE and FINAL with override and final in android_webview/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 "android_webview/browser/global_tile_manager.h" 8 #include "android_webview/browser/global_tile_manager.h"
9 #include "android_webview/browser/global_tile_manager_client.h" 9 #include "android_webview/browser/global_tile_manager_client.h"
10 #include "android_webview/browser/parent_compositor_draw_constraints.h" 10 #include "android_webview/browser/parent_compositor_draw_constraints.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Set the memory policy in shared renderer state and request the tiles from 112 // Set the memory policy in shared renderer state and request the tiles from
113 // GlobalTileManager. The actually amount of memory allowed by 113 // GlobalTileManager. The actually amount of memory allowed by
114 // GlobalTileManager may not be equal to what's requested in |policy|. 114 // GlobalTileManager may not be equal to what's requested in |policy|.
115 void RequestMemoryPolicy(content::SynchronousCompositorMemoryPolicy& policy); 115 void RequestMemoryPolicy(content::SynchronousCompositorMemoryPolicy& policy);
116 116
117 void TrimMemory(const int level, const bool visible); 117 void TrimMemory(const int level, const bool visible);
118 118
119 // SynchronousCompositorClient overrides. 119 // SynchronousCompositorClient overrides.
120 virtual void DidInitializeCompositor( 120 virtual void DidInitializeCompositor(
121 content::SynchronousCompositor* compositor) OVERRIDE; 121 content::SynchronousCompositor* compositor) override;
122 virtual void DidDestroyCompositor(content::SynchronousCompositor* compositor) 122 virtual void DidDestroyCompositor(content::SynchronousCompositor* compositor)
123 OVERRIDE; 123 override;
124 virtual void SetContinuousInvalidate(bool invalidate) OVERRIDE; 124 virtual void SetContinuousInvalidate(bool invalidate) override;
125 virtual void DidUpdateContent() OVERRIDE; 125 virtual void DidUpdateContent() override;
126 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() OVERRIDE; 126 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() override;
127 virtual void UpdateRootLayerState( 127 virtual void UpdateRootLayerState(
128 const gfx::Vector2dF& total_scroll_offset_dip, 128 const gfx::Vector2dF& total_scroll_offset_dip,
129 const gfx::Vector2dF& max_scroll_offset_dip, 129 const gfx::Vector2dF& max_scroll_offset_dip,
130 const gfx::SizeF& scrollable_size_dip, 130 const gfx::SizeF& scrollable_size_dip,
131 float page_scale_factor, 131 float page_scale_factor,
132 float min_page_scale_factor, 132 float min_page_scale_factor,
133 float max_page_scale_factor) OVERRIDE; 133 float max_page_scale_factor) override;
134 virtual bool IsExternalFlingActive() const OVERRIDE; 134 virtual bool IsExternalFlingActive() const override;
135 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 135 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll,
136 gfx::Vector2dF latest_overscroll_delta, 136 gfx::Vector2dF latest_overscroll_delta,
137 gfx::Vector2dF current_fling_velocity) OVERRIDE; 137 gfx::Vector2dF current_fling_velocity) override;
138 138
139 // GlobalTileManagerClient overrides. 139 // GlobalTileManagerClient overrides.
140 virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy() 140 virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy()
141 const OVERRIDE; 141 const override;
142 virtual void SetMemoryPolicy( 142 virtual void SetMemoryPolicy(
143 content::SynchronousCompositorMemoryPolicy new_policy, 143 content::SynchronousCompositorMemoryPolicy new_policy,
144 bool effective_immediately) OVERRIDE; 144 bool effective_immediately) override;
145 145
146 void UpdateParentDrawConstraints(); 146 void UpdateParentDrawConstraints();
147 147
148 private: 148 private:
149 void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value_dip); 149 void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value_dip);
150 // Checks the continuous invalidate and block invalidate state, and schedule 150 // Checks the continuous invalidate and block invalidate state, and schedule
151 // invalidates appropriately. If |force_invalidate| is true, then send a view 151 // invalidates appropriately. If |force_invalidate| is true, then send a view
152 // invalidate regardless of compositor expectation. 152 // invalidate regardless of compositor expectation.
153 void EnsureContinuousInvalidation(bool force_invalidate); 153 void EnsureContinuousInvalidation(bool force_invalidate);
154 bool OnDrawSoftware(jobject java_canvas); 154 bool OnDrawSoftware(jobject java_canvas);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 GlobalTileManager::Key tile_manager_key_; 237 GlobalTileManager::Key tile_manager_key_;
238 content::SynchronousCompositorMemoryPolicy memory_policy_; 238 content::SynchronousCompositorMemoryPolicy memory_policy_;
239 239
240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
241 }; 241 };
242 242
243 } // namespace android_webview 243 } // namespace android_webview
244 244
245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_web_resource_response.cc ('k') | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698