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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/VirtualView.java

Issue 842083003: Upstream CompositorButton, VirtualView and TitleBitmapFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos Created 5 years, 11 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: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/VirtualView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/VirtualView.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/VirtualView.java
new file mode 100644
index 0000000000000000000000000000000000000000..0f9c5ee55c88d7f4552e79d1afba80a0dc223c15
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/VirtualView.java
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+package org.chromium.chrome.browser.compositor.layouts.components;
+
+import android.graphics.RectF;
+
+/**
+ * {@link VirtualView} is the minimal interface that provides information for
+ * building accessibility events.
+ */
+public interface VirtualView {
+ /**
+ * @return A string with a description of the object for accessibility events.
+ */
+ String getAccessibilityDescription();
+
+ /**
+ * @param A rect that will be populated with the clickable area of the object in dp.
+ */
+ void getTouchTarget(RectF outTarget);
+
+ /**
+ * @param x The x offset of the click in dp.
+ * @param y The y offset of the click in dp.
+ * @return Whether or not that click occurred inside of the button + slop area.
+ */
+ boolean checkClicked(float x, float y);
+}

Powered by Google App Engine
This is Rietveld 408576698