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

Unified Diff: android_webview/browser/browser_view_renderer.h

Issue 12697002: [Android WebView] Provide more information about WebView for web debugging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/browser_view_renderer.h
diff --git a/android_webview/browser/browser_view_renderer.h b/android_webview/browser/browser_view_renderer.h
index 02f47bcc714770b995ad702f0203e0c35763251f..6c246bf60cfaea4ba23d2b7dc9cd761c702481e6 100644
--- a/android_webview/browser/browser_view_renderer.h
+++ b/android_webview/browser/browser_view_renderer.h
@@ -6,11 +6,14 @@
#define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
#include "base/android/scoped_java_ref.h"
+#include "ui/gfx/point.h"
+#include "ui/gfx/rect.h"
struct AwDrawGLInfo;
namespace content {
class ContentViewCore;
+class WebContents;
}
namespace gfx {
@@ -33,6 +36,9 @@ class BrowserViewRenderer {
virtual void OnNewPicture(
const base::android::JavaRef<jobject>& picture) = 0;
+ // Called to get view's absolute location on the screen.
+ virtual gfx::Point GetLocationOnScreen() = 0;
+
protected:
virtual ~Client() {}
};
@@ -87,6 +93,11 @@ class BrowserViewRenderer {
virtual void OnAttachedToWindow(int width, int height) = 0;
virtual void OnDetachedFromWindow() = 0;
+ // Android views hierarchy gluing.
+ virtual bool IsAttachedToWindow() = 0;
+ virtual bool IsViewVisible() = 0;
+ virtual gfx::Rect GetScreenRect() = 0;
+
virtual ~BrowserViewRenderer() {}
};
« no previous file with comments | « android_webview/browser/aw_devtools_delegate.cc ('k') | android_webview/browser/browser_view_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698