OLD | NEW |
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 { |
11 class SearchProvider; | 11 class SearchProvider; |
12 } | 12 } |
13 | 13 |
| 14 namespace gfx { |
| 15 class Rect; |
| 16 } |
| 17 |
14 namespace athena { | 18 namespace athena { |
15 class AppModelBuilder; | 19 class AppModelBuilder; |
16 | 20 |
17 class ATHENA_EXPORT HomeCard { | 21 class ATHENA_EXPORT HomeCard { |
18 public: | 22 public: |
19 // Creates/deletes/gets the singleton object of the HomeCard | 23 // Creates/deletes/gets the singleton object of the HomeCard |
20 // implementation. Takes the ownership of |model_builder|. | 24 // implementation. Takes the ownership of |model_builder|. |
21 static HomeCard* Create(AppModelBuilder* model_builder); | 25 static HomeCard* Create(AppModelBuilder* model_builder); |
22 static void Shutdown(); | 26 static void Shutdown(); |
23 static HomeCard* Get(); | 27 static HomeCard* Get(); |
24 | 28 |
25 virtual ~HomeCard() {} | 29 virtual ~HomeCard() {} |
26 | 30 |
27 // Registers a search_provider to the HomeCard. Receiver will take | 31 // Registers a search_provider to the HomeCard. Receiver will take |
28 // the ownership of the specified provider. | 32 // the ownership of the specified provider. |
29 virtual void RegisterSearchProvider( | 33 virtual void RegisterSearchProvider( |
30 app_list::SearchProvider* search_provider) = 0; | 34 app_list::SearchProvider* search_provider) = 0; |
| 35 |
| 36 // Called when the virtual keyboard changed has changed to |bounds|. |
| 37 virtual void UpdateVirtualKeyboardBounds( |
| 38 const gfx::Rect& bounds) = 0; |
31 }; | 39 }; |
32 | 40 |
33 } // namespace athena | 41 } // namespace athena |
34 | 42 |
35 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ | 43 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ |
OLD | NEW |