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

Unified Diff: ui/chromeos/network/network_list_view_base.h

Issue 2435903002: Move tray code from ui/chromeos/network/ (Closed)
Patch Set: Rebase Created 4 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
« no previous file with comments | « ui/chromeos/network/network_list_md.cc ('k') | ui/chromeos/network/network_list_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/network/network_list_view_base.h
diff --git a/ui/chromeos/network/network_list_view_base.h b/ui/chromeos/network/network_list_view_base.h
deleted file mode 100644
index e9b28bee49fb1fdcfda9cae3b843ca34f7842df0..0000000000000000000000000000000000000000
--- a/ui/chromeos/network/network_list_view_base.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 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_CHROMEOS_NETWORK_NETWORK_LIST_VIEW_BASE_H_
-#define UI_CHROMEOS_NETWORK_NETWORK_LIST_VIEW_BASE_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "ui/chromeos/ui_chromeos_export.h"
-
-namespace views {
-class View;
-}
-
-namespace ui {
-
-// Base class for a list of available networks (and, in the case of VPNs, the
-// list of available VPN providers).
-class UI_CHROMEOS_EXPORT NetworkListViewBase {
- public:
- NetworkListViewBase();
- virtual ~NetworkListViewBase();
-
- void set_container(views::View* container) { container_ = container; }
-
- // Refreshes the network list.
- virtual void Update() = 0;
-
- // Checks whether |view| represents a network in the list. If yes, sets
- // |service_path| to the network's service path and returns |true|. Otherwise,
- // leaves |sevice_path| unchanged and returns |false|.
- virtual bool IsNetworkEntry(views::View* view,
- std::string* service_path) const = 0;
-
- protected:
- views::View* container() { return container_; }
-
- private:
- // The container that holds the actual list entries.
- views::View* container_ = nullptr;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkListViewBase);
-};
-
-} // namespace ui
-
-#endif // UI_CHROMEOS_NETWORK_NETWORK_LIST_VIEW_BASE_H_
« no previous file with comments | « ui/chromeos/network/network_list_md.cc ('k') | ui/chromeos/network/network_list_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698