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

Side by Side Diff: athena/home/public/home_card.h

Issue 408623003: Minimize HomeCard if the user opens something in the home card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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
« no previous file with comments | « athena/home/home_card_unittest.cc ('k') | athena/test/athena_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 }; 37 };
38 38
39 // Creates/deletes/gets the singleton object of the HomeCard 39 // Creates/deletes/gets the singleton object of the HomeCard
40 // implementation. Takes the ownership of |model_builder|. 40 // implementation. Takes the ownership of |model_builder|.
41 static HomeCard* Create(AppModelBuilder* model_builder); 41 static HomeCard* Create(AppModelBuilder* model_builder);
42 static void Shutdown(); 42 static void Shutdown();
43 static HomeCard* Get(); 43 static HomeCard* Get();
44 44
45 virtual ~HomeCard() {} 45 virtual ~HomeCard() {}
46 46
47 // Update the current state of the home card to |state|. 47 // Updates/gets the current state of the home card.
48 virtual void SetState(State state) = 0; 48 virtual void SetState(State state) = 0;
49 virtual State GetState() = 0;
49 50
50 // Registers a search_provider to the HomeCard. Receiver will take 51 // Registers a search_provider to the HomeCard. Receiver will take
51 // the ownership of the specified provider. 52 // the ownership of the specified provider.
52 virtual void RegisterSearchProvider( 53 virtual void RegisterSearchProvider(
53 app_list::SearchProvider* search_provider) = 0; 54 app_list::SearchProvider* search_provider) = 0;
54 55
55 // Called when the virtual keyboard changed has changed to |bounds|. An empty 56 // Called when the virtual keyboard changed has changed to |bounds|. An empty
56 // |bounds| indicates that the virtual keyboard is not visible anymore. 57 // |bounds| indicates that the virtual keyboard is not visible anymore.
57 virtual void UpdateVirtualKeyboardBounds( 58 virtual void UpdateVirtualKeyboardBounds(
58 const gfx::Rect& bounds) = 0; 59 const gfx::Rect& bounds) = 0;
59 }; 60 };
60 61
61 } // namespace athena 62 } // namespace athena
62 63
63 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ 64 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_
OLDNEW
« no previous file with comments | « athena/home/home_card_unittest.cc ('k') | athena/test/athena_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698