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

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

Issue 17291010: Clean up AwContents calls to change visibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « no previous file | android_webview/browser/in_process_view_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const gfx::Rect& clip) = 0; 92 const gfx::Rect& clip) = 0;
93 // Called in response to a prior Client::RequestDrawGL() call. See 93 // Called in response to a prior Client::RequestDrawGL() call. See
94 // AwDrawGLInfo documentation for more details of the contract. 94 // AwDrawGLInfo documentation for more details of the contract.
95 virtual void DrawGL(AwDrawGLInfo* draw_info) = 0; 95 virtual void DrawGL(AwDrawGLInfo* draw_info) = 0;
96 96
97 // CapturePicture API methods. 97 // CapturePicture API methods.
98 virtual base::android::ScopedJavaLocalRef<jobject> CapturePicture() = 0; 98 virtual base::android::ScopedJavaLocalRef<jobject> CapturePicture() = 0;
99 virtual void EnableOnNewPicture(bool enabled) = 0; 99 virtual void EnableOnNewPicture(bool enabled) = 0;
100 100
101 // View update notifications. 101 // View update notifications.
102 virtual void OnVisibilityChanged(bool view_visible, bool window_visible) = 0; 102 virtual void OnVisibilityChanged(bool visible) = 0;
103 virtual void OnSizeChanged(int width, int height) = 0; 103 virtual void OnSizeChanged(int width, int height) = 0;
104 virtual void OnAttachedToWindow(int width, int height) = 0; 104 virtual void OnAttachedToWindow(int width, int height) = 0;
105 virtual void OnDetachedFromWindow() = 0; 105 virtual void OnDetachedFromWindow() = 0;
106 106
107 // Sets the scale for logical<->physical pixel conversions. 107 // Sets the scale for logical<->physical pixel conversions.
108 virtual void SetDipScale(float dip_scale) = 0; 108 virtual void SetDipScale(float dip_scale) = 0;
109 109
110 // Set the root layer scroll offset to |new_value|. 110 // Set the root layer scroll offset to |new_value|.
111 virtual void ScrollTo(gfx::Vector2d new_value) = 0; 111 virtual void ScrollTo(gfx::Vector2d new_value) = 0;
112 112
113 // Android views hierarchy gluing. 113 // Android views hierarchy gluing.
114 virtual bool IsAttachedToWindow() = 0; 114 virtual bool IsAttachedToWindow() = 0;
115 virtual bool IsViewVisible() = 0; 115 virtual bool IsViewVisible() = 0;
116 virtual gfx::Rect GetScreenRect() = 0; 116 virtual gfx::Rect GetScreenRect() = 0;
117 117
118 virtual ~BrowserViewRenderer() {} 118 virtual ~BrowserViewRenderer() {}
119 }; 119 };
120 120
121 } // namespace android_webview 121 } // namespace android_webview
122 122
123 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 123 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/in_process_view_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698