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

Unified Diff: ui/app_list/cocoa/test/apps_grid_controller_test_helper.h

Issue 645853013: Remove some platform specific stuff from views. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
Index: ui/app_list/cocoa/test/apps_grid_controller_test_helper.h
diff --git a/ui/app_list/cocoa/test/apps_grid_controller_test_helper.h b/ui/app_list/cocoa/test/apps_grid_controller_test_helper.h
deleted file mode 100644
index af39f56004ece541d94709a9584d1b1eda703671..0000000000000000000000000000000000000000
--- a/ui/app_list/cocoa/test/apps_grid_controller_test_helper.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_APP_LIST_COCOA_TEST_APPS_GRID_CONTROLLER_TEST_HELPER_H_
-#define UI_APP_LIST_COCOA_TEST_APPS_GRID_CONTROLLER_TEST_HELPER_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
-#import "ui/gfx/test/ui_cocoa_test_helper.h"
-
-@class AppsGridController;
-
-namespace app_list {
-
-namespace test {
-
-class AppsGridControllerTestHelper : public ui::CocoaTest {
- public:
- static const size_t kItemsPerPage;
-
- AppsGridControllerTestHelper();
- virtual ~AppsGridControllerTestHelper();
-
- void SetUpWithGridController(AppsGridController* grid_controller);
-
- protected:
- // Send a click to the test window in the centre of |view|.
- void SimulateClick(NSView* view);
-
- // Send a key action using handleCommandBySelector.
- void SimulateKeyAction(SEL c);
-
- void SimulateMouseEnterItemAt(size_t index);
- void SimulateMouseExitItemAt(size_t index);
-
- // Get a string representation of the items as they are currently ordered in
- // the view. Each page will start and end with a | character.
- std::string GetViewContent() const;
-
- // Find the page containing |item_id|, and return the index of that page.
- // Return NSNotFound if the item is not found, or if the item appears more
- // than once.
- size_t GetPageIndexForItem(int item_id) const;
-
- void DelayForCollectionView();
- void SinkEvents();
-
- NSButton* GetItemViewAt(size_t index);
- NSCollectionView* GetPageAt(size_t index);
- NSView* GetSelectedView();
-
- AppsGridController* apps_grid_controller_;
-
- private:
- base::MessageLoopForUI message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(AppsGridControllerTestHelper);
-};
-
-} // namespace test
-} // namespace app_list
-
-#endif // UI_APP_LIST_COCOA_TEST_APPS_GRID_CONTROLLER_TEST_HELPER_H_
« no previous file with comments | « ui/app_list/cocoa/scroll_view_with_no_scrollbars.mm ('k') | ui/app_list/cocoa/test/apps_grid_controller_test_helper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698