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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/shelf_test_api.h
diff --git a/ash/test/shelf_test_api.h b/ash/test/shelf_test_api.h
index 94e86fb56ab2cfd3239aaa80592c253c3b621323..78d099e1150ee7e0ae8784fde5882eb07d9893d0 100644
--- a/ash/test/shelf_test_api.h
+++ b/ash/test/shelf_test_api.h
@@ -5,28 +5,25 @@
#ifndef ASH_TEST_SHELF_TEST_API_H_
#define ASH_TEST_SHELF_TEST_API_H_
+#include "ash/shelf/shelf.h"
#include "base/macros.h"
namespace ash {
-
-class Shelf;
-class ShelfDelegate;
-class ShelfView;
-
namespace test {
// Use the api in this class to access private members of Shelf.
class ShelfTestAPI {
public:
- explicit ShelfTestAPI(Shelf* shelf);
+ explicit ShelfTestAPI(Shelf* shelf) : shelf_(shelf) {}
+ ~ShelfTestAPI() {}
- ~ShelfTestAPI();
+ ShelfView* shelf_view() { return shelf_->shelf_view_; }
- // An accessor for |shelf_view|.
- ShelfView* shelf_view();
+ ShelfLockingManager* shelf_locking_manager() {
+ return &shelf_->shelf_locking_manager_;
+ }
- // Set ShelfDelegate.
- void SetShelfDelegate(ShelfDelegate* delegate);
+ void set_delegate(ShelfDelegate* delegate) { shelf_->delegate_ = delegate; }
private:
Shelf* shelf_;
« 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