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

Unified Diff: ui/app_list/cocoa/apps_search_results_model_bridge.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/apps_search_results_model_bridge.h
diff --git a/ui/app_list/cocoa/apps_search_results_model_bridge.h b/ui/app_list/cocoa/apps_search_results_model_bridge.h
deleted file mode 100644
index 0fe8478954424960555652ea6b6fe10bcbf7568a..0000000000000000000000000000000000000000
--- a/ui/app_list/cocoa/apps_search_results_model_bridge.h
+++ /dev/null
@@ -1,50 +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_APPS_SEARCH_RESULTS_MODEL_BRIDGE_H_
-#define UI_APP_LIST_COCOA_APPS_SEARCH_RESULTS_MODEL_BRIDGE_H_
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_vector.h"
-#include "ui/base/models/list_model_observer.h"
-
-@class NSMenu;
-@class AppsSearchResultsController;
-
-namespace app_list {
-
-// Bridge observing the ListModel representing search results in the app list,
-// and updating the NSTableView where they are displayed.
-class AppsSearchResultsModelBridge : public ui::ListModelObserver {
- public:
- explicit AppsSearchResultsModelBridge(
- AppsSearchResultsController* results_controller);
- ~AppsSearchResultsModelBridge() override;
-
- // Returns the context menu for the item at |index| in the search results
- // model. A menu will be generated if it hasn't been previously requested.
- NSMenu* MenuForItem(size_t index);
-
- private:
- // Lightweight observer to react to icon updates on individual results.
- class ItemObserver;
-
- void UpdateItemObservers();
- void ReloadDataForItems(size_t start, size_t count) const;
-
- // Overridden from ui::ListModelObserver:
- void ListItemsAdded(size_t start, size_t count) override;
- void ListItemsRemoved(size_t start, size_t count) override;
- void ListItemMoved(size_t index, size_t target_index) override;
- void ListItemsChanged(size_t start, size_t count) override;
-
- AppsSearchResultsController* parent_; // Weak. Owns us.
- ScopedVector<ItemObserver> item_observers_;
-
- DISALLOW_COPY_AND_ASSIGN(AppsSearchResultsModelBridge);
-};
-
-} // namespace app_list
-
-#endif // UI_APP_LIST_COCOA_APPS_SEARCH_RESULTS_MODEL_BRIDGE_H_
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_controller_unittest.mm ('k') | ui/app_list/cocoa/apps_search_results_model_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698