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

Unified Diff: ui/app_list/cocoa/apps_search_results_model_bridge.h

Issue 2131463002: Purge the App Launcher code from Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap mac-specific icon assets Created 4 years, 5 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 c29487b20f7aa90f4f64249145c030582596e3a9..0000000000000000000000000000000000000000
--- a/ui/app_list/cocoa/apps_search_results_model_bridge.h
+++ /dev/null
@@ -1,53 +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 <stddef.h>
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/macros.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_

Powered by Google App Engine
This is Rietveld 408576698