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

Unified Diff: athena/home/public/home_card.h

Issue 394043002: athena: Add a minimized state for the home-card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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: athena/home/public/home_card.h
diff --git a/athena/home/public/home_card.h b/athena/home/public/home_card.h
index 795e8ffa58b55ea2fc121f90c2a6dbdde539c5ca..631c74bf2f8a81cbab22f849dfb538910cef1a2a 100644
--- a/athena/home/public/home_card.h
+++ b/athena/home/public/home_card.h
@@ -11,6 +11,10 @@ namespace app_list {
class SearchProvider;
}
+namespace aura {
+class Window;
+}
+
namespace gfx {
class Rect;
}
@@ -30,6 +34,10 @@ class ATHENA_EXPORT HomeCard {
// HomeCard is visible smaller at the bottom of the screen as a supplemental
// widget.
VISIBLE_BOTTOM,
+
+ // HomeCard is minimized (i.e. a small UI element is displayed on screen
+ // that the user can interact with to bring up the BOTTOM or CENTERED view).
+ VISIBLE_MINIMIZED,
};
// Creates/deletes/gets the singleton object of the HomeCard
@@ -48,9 +56,14 @@ class ATHENA_EXPORT HomeCard {
virtual void RegisterSearchProvider(
app_list::SearchProvider* search_provider) = 0;
- // Called when the virtual keyboard changed has changed to |bounds|.
+ // Called when the virtual keyboard changed has changed to |bounds|. An empty
+ // |bounds| indicates that the virtual keyboard is not visible anymore.
virtual void UpdateVirtualKeyboardBounds(
const gfx::Rect& bounds) = 0;
+
+ // Returns the native window for the home-card. Note that the native-window
+ // used for the home-card may be different in different states.
+ virtual aura::Window* GetNativeWindow() = 0;
oshima 2014/07/16 19:10:38 Do you need this here? Can this be in Delegate ins
sadrul 2014/07/16 19:32:58 Yes! I should've just done that. Done.
};
} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698