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

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

Issue 25082006: [Android WebView] OnMemoryPressure to drop tile memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use level Created 7 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 | Annotate | Revision Log
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 "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "skia/ext/refptr.h" 9 #include "skia/ext/refptr.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void SetDipScale(float dip_scale) = 0; 133 virtual void SetDipScale(float dip_scale) = 0;
134 134
135 // Set the root layer scroll offset to |new_value|. 135 // Set the root layer scroll offset to |new_value|.
136 virtual void ScrollTo(gfx::Vector2d new_value) = 0; 136 virtual void ScrollTo(gfx::Vector2d new_value) = 0;
137 137
138 // Android views hierarchy gluing. 138 // Android views hierarchy gluing.
139 virtual bool IsAttachedToWindow() = 0; 139 virtual bool IsAttachedToWindow() = 0;
140 virtual bool IsVisible() = 0; 140 virtual bool IsVisible() = 0;
141 virtual gfx::Rect GetScreenRect() = 0; 141 virtual gfx::Rect GetScreenRect() = 0;
142 142
143 // ComponentCallbacks2.onTrimMemory callback.
144 virtual void TrimMemory(int level) = 0;
145
143 virtual ~BrowserViewRenderer() {} 146 virtual ~BrowserViewRenderer() {}
144 }; 147 };
145 148
146 } // namespace android_webview 149 } // namespace android_webview
147 150
148 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 151 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698