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

Side by Side Diff: ash/test/shelf_test_api.h

Issue 1907363004: (Merge to M-51) Revise the shelf alignment locking mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/test/shelf_test_api.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_TEST_SHELF_TEST_API_H_ 5 #ifndef ASH_TEST_SHELF_TEST_API_H_
6 #define ASH_TEST_SHELF_TEST_API_H_ 6 #define ASH_TEST_SHELF_TEST_API_H_
7 7
8 #include "ash/shelf/shelf.h"
8 #include "base/macros.h" 9 #include "base/macros.h"
9 10
10 namespace ash { 11 namespace ash {
11
12 class Shelf;
13 class ShelfDelegate;
14 class ShelfView;
15
16 namespace test { 12 namespace test {
17 13
18 // Use the api in this class to access private members of Shelf. 14 // Use the api in this class to access private members of Shelf.
19 class ShelfTestAPI { 15 class ShelfTestAPI {
20 public: 16 public:
21 explicit ShelfTestAPI(Shelf* shelf); 17 explicit ShelfTestAPI(Shelf* shelf) : shelf_(shelf) {}
18 ~ShelfTestAPI() {}
22 19
23 ~ShelfTestAPI(); 20 ShelfView* shelf_view() { return shelf_->shelf_view_; }
24 21
25 // An accessor for |shelf_view|. 22 ShelfLockingManager* shelf_locking_manager() {
26 ShelfView* shelf_view(); 23 return &shelf_->shelf_locking_manager_;
24 }
27 25
28 // Set ShelfDelegate. 26 void set_delegate(ShelfDelegate* delegate) { shelf_->delegate_ = delegate; }
29 void SetShelfDelegate(ShelfDelegate* delegate);
30 27
31 private: 28 private:
32 Shelf* shelf_; 29 Shelf* shelf_;
33 30
34 DISALLOW_COPY_AND_ASSIGN(ShelfTestAPI); 31 DISALLOW_COPY_AND_ASSIGN(ShelfTestAPI);
35 }; 32 };
36 33
37 } // namespace test 34 } // namespace test
38 } // namespace ash 35 } // namespace ash
39 36
40 #endif // ASH_TEST_SHELF_TEST_API_H_ 37 #endif // ASH_TEST_SHELF_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/test/shelf_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698