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

Unified Diff: ui/app_list/app_list_view_delegate.h

Issue 250423004: ChromeOS: Avoid overlapping app list with virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid DEPS changes; use AppListViewDelegate instead. Created 6 years, 8 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: ui/app_list/app_list_view_delegate.h
diff --git a/ui/app_list/app_list_view_delegate.h b/ui/app_list/app_list_view_delegate.h
index f0c43dbf97a0fa8ceb73c279dff119ca40047f86..df7fcf8575404be4d7a461029cce16c1af22b6d4 100644
--- a/ui/app_list/app_list_view_delegate.h
+++ b/ui/app_list/app_list_view_delegate.h
@@ -24,6 +24,7 @@ class WebContents;
namespace gfx {
class ImageSkia;
+class Rect;
}
namespace app_list {
@@ -149,6 +150,10 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Returns the list of users (for AppListMenu).
virtual const Users& GetUsers() const = 0;
+ // Returns the bounds of the virtual keyboard if it is currently visible.
+ // Returns an empty rect if it is not visible.
+ virtual gfx::Rect GetVirtualKeyboardBounds() const = 0;
+
// Adds/removes an observer for profile changes.
virtual void AddObserver(AppListViewDelegateObserver* observer) {}
virtual void RemoveObserver(AppListViewDelegateObserver* observer) {}

Powered by Google App Engine
This is Rietveld 408576698