Chromium Code Reviews| 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 aura { | |
| 15 class Window; | |
| 16 } | |
| 17 | |
| 14 namespace gfx { | 18 namespace gfx { |
| 15 class Rect; | 19 class Rect; |
| 16 } | 20 } |
| 17 | 21 |
| 18 namespace athena { | 22 namespace athena { |
| 19 class AppModelBuilder; | 23 class AppModelBuilder; |
| 20 | 24 |
| 21 class ATHENA_EXPORT HomeCard { | 25 class ATHENA_EXPORT HomeCard { |
| 22 public: | 26 public: |
| 23 enum State { | 27 enum State { |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 50 | 54 |
| 51 // Registers a search_provider to the HomeCard. Receiver will take | 55 // Registers a search_provider to the HomeCard. Receiver will take |
| 52 // the ownership of the specified provider. | 56 // the ownership of the specified provider. |
| 53 virtual void RegisterSearchProvider( | 57 virtual void RegisterSearchProvider( |
| 54 app_list::SearchProvider* search_provider) = 0; | 58 app_list::SearchProvider* search_provider) = 0; |
| 55 | 59 |
| 56 // Called when the virtual keyboard changed has changed to |bounds|. An empty | 60 // Called when the virtual keyboard changed has changed to |bounds|. An empty |
| 57 // |bounds| indicates that the virtual keyboard is not visible anymore. | 61 // |bounds| indicates that the virtual keyboard is not visible anymore. |
| 58 virtual void UpdateVirtualKeyboardBounds( | 62 virtual void UpdateVirtualKeyboardBounds( |
| 59 const gfx::Rect& bounds) = 0; | 63 const gfx::Rect& bounds) = 0; |
| 64 | |
| 65 // Returns the aura::Window for home card. This is used for testing. | |
| 66 virtual aura::Window* GetHomeCardWindowForTest() = 0; | |
|
oshima
2014/08/28 00:03:13
Since the test reside in impl directory, can we ke
Jun Mukai
2014/08/28 00:43:33
Done.
| |
| 60 }; | 67 }; |
| 61 | 68 |
| 62 } // namespace athena | 69 } // namespace athena |
| 63 | 70 |
| 64 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ | 71 #endif // ATHENA_HOME_PUBLIC_HOME_CARD_H_ |
| OLD | NEW |