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

Side by Side 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: self-nits 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_HOME_PUBLIC_HOME_CARD_H_ 5 #ifndef ATHENA_HOME_PUBLIC_HOME_CARD_H_
6 #define ATHENA_HOME_PUBLIC_HOME_CARD_H_ 6 #define ATHENA_HOME_PUBLIC_HOME_CARD_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace app_list { 10 namespace app_list {
(...skipping 12 matching lines...) Expand all
23 enum State { 23 enum State {
24 // HomeCard is not visible. 24 // HomeCard is not visible.
25 HIDDEN, 25 HIDDEN,
26 26
27 // HomeCard is visible in the center of the screen as a normal mode. 27 // HomeCard is visible in the center of the screen as a normal mode.
28 VISIBLE_CENTERED, 28 VISIBLE_CENTERED,
29 29
30 // HomeCard is visible smaller at the bottom of the screen as a supplemental 30 // HomeCard is visible smaller at the bottom of the screen as a supplemental
31 // widget. 31 // widget.
32 VISIBLE_BOTTOM, 32 VISIBLE_BOTTOM,
33
34 // HomeCard is minimized (i.e. a small UI element is displayed on screen
35 // that the user can interact with to bring up the BOTTOM or CENTERED view).
36 VISIBLE_MINIMIZED,
33 }; 37 };
34 38
35 // Creates/deletes/gets the singleton object of the HomeCard 39 // Creates/deletes/gets the singleton object of the HomeCard
36 // implementation. Takes the ownership of |model_builder|. 40 // implementation. Takes the ownership of |model_builder|.
37 static HomeCard* Create(AppModelBuilder* model_builder); 41 static HomeCard* Create(AppModelBuilder* model_builder);
38 static void Shutdown(); 42 static void Shutdown();
39 static HomeCard* Get(); 43 static HomeCard* Get();
40 44
41 virtual ~HomeCard() {} 45 virtual ~HomeCard() {}
42 46
43 // Update the current state of the home card to |state|. 47 // Update the current state of the home card to |state|.
44 virtual void SetState(State state) = 0; 48 virtual void SetState(State state) = 0;
45 49
46 // Registers a search_provider to the HomeCard. Receiver will take 50 // Registers a search_provider to the HomeCard. Receiver will take
47 // the ownership of the specified provider. 51 // the ownership of the specified provider.
48 virtual void RegisterSearchProvider( 52 virtual void RegisterSearchProvider(
49 app_list::SearchProvider* search_provider) = 0; 53 app_list::SearchProvider* search_provider) = 0;
50 54
51 // Called when the virtual keyboard changed has changed to |bounds|. 55 // Called when the virtual keyboard changed has changed to |bounds|. An empty
56 // |bounds| indicates that the virtual keyboard is not visible anymore.
52 virtual void UpdateVirtualKeyboardBounds( 57 virtual void UpdateVirtualKeyboardBounds(
53 const gfx::Rect& bounds) = 0; 58 const gfx::Rect& bounds) = 0;
54 }; 59 };
55 60
56 } // namespace athena 61 } // namespace athena
57 62
58 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ 63 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698