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

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

Issue 516643005: Adds the test expectations of home card bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 {
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
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_
OLDNEW
« athena/home/home_card_unittest.cc ('K') | « athena/home/home_card_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698