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

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

Issue 417793003: chromeos: Refactor the code for showing the network UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « ui/chromeos/DEPS ('k') | ui/chromeos/network/network_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/network/network_info.h
diff --git a/ui/chromeos/network/network_info.h b/ui/chromeos/network/network_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..ced2119f651fec73618f17f388550800962c8c09
--- /dev/null
+++ b/ui/chromeos/network/network_info.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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_INFO_H_
+#define UI_CHROMEOS_NETWORK_NETWORK_INFO_H_
+
+#include <string>
+
+#include "base/strings/string16.h"
+#include "ui/gfx/image/image_skia.h"
+
+namespace gfx {
+class ImageSkia;
+}
+
+namespace ui {
+
+// Includes information necessary about a network for displaying the appropriate
+// UI to the user.
+struct NetworkInfo {
+ NetworkInfo();
+ NetworkInfo(const std::string& path);
+ ~NetworkInfo();
+
+ std::string service_path;
+ base::string16 label;
+ gfx::ImageSkia image;
+ bool disable;
+ bool highlight;
+};
+
+} // namespace ui
+
+#endif // UI_CHROMEOS_NETWORK_NETWORK_INFO_H_
« no previous file with comments | « ui/chromeos/DEPS ('k') | ui/chromeos/network/network_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698