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

Unified Diff: chrome/browser/chromeos/options/wimax_config_view.h

Issue 10412003: Revert 137809 - Broke Linux ChromiumOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/wimax_config_view.h
===================================================================
--- chrome/browser/chromeos/options/wimax_config_view.h (revision 137825)
+++ chrome/browser/chromeos/options/wimax_config_view.h (working copy)
@@ -1,94 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_
-#define CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/string16.h"
-#include "chrome/browser/chromeos/options/network_config_view.h"
-#include "chrome/browser/chromeos/options/wifi_config_view.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/textfield/textfield_controller.h"
-#include "ui/views/view.h"
-
-namespace views {
-class Checkbox;
-class Label;
-class ToggleImageButton;
-}
-
-namespace chromeos {
-
-// A dialog box for showing a password textfield.
-class WimaxConfigView : public ChildNetworkConfigView,
- public views::TextfieldController,
- public views::ButtonListener {
- public:
- // Wimax login dialog for wimax network |wimax|. |wimax| must be a non NULL
- // pointer to a WimaxNetwork in NetworkLibrary.
- WimaxConfigView(NetworkConfigView* parent, WimaxNetwork* wimax);
- virtual ~WimaxConfigView();
-
- // views::TextfieldController:
- virtual void ContentsChanged(views::Textfield* sender,
- const string16& new_contents) OVERRIDE;
- virtual bool HandleKeyEvent(views::Textfield* sender,
- const views::KeyEvent& key_event) OVERRIDE;
-
- // views::ButtonListener:
- virtual void ButtonPressed(views::Button* sender,
- const views::Event& event) OVERRIDE;
-
- // ChildNetworkConfigView:
- virtual string16 GetTitle() OVERRIDE;
- virtual views::View* GetInitiallyFocusedView() OVERRIDE;
- virtual bool CanLogin() OVERRIDE;
- virtual bool Login() OVERRIDE;
- virtual void Cancel() OVERRIDE;
- virtual void InitFocus() OVERRIDE;
-
- private:
- void Init(WimaxNetwork* wimax);
-
- // Get input values.
- std::string GetEapIdentity() const;
- std::string GetEapPassphrase() const;
- bool GetSaveCredentials() const;
- bool GetShareNetwork(bool share_default) const;
-
- // Updates state of the Login button.
- void UpdateDialogButtons();
-
- // Enable/Disable "share this network" checkbox.
- void RefreshShareCheckbox();
-
- // Updates the error text label.
- void UpdateErrorLabel();
-
- NetworkPropertyUIData identity_ui_data_;
- NetworkPropertyUIData passphrase_ui_data_;
- NetworkPropertyUIData save_credentials_ui_data_;
-
- views::Label* identity_label_;
- views::Textfield* identity_textfield_;
- views::Checkbox* save_credentials_checkbox_;
- views::Checkbox* share_network_checkbox_;
- views::Label* shared_network_label_;
- views::Label* passphrase_label_;
- views::Textfield* passphrase_textfield_;
- views::ToggleImageButton* passphrase_visible_button_;
- views::Label* error_label_;
-
- DISALLOW_COPY_AND_ASSIGN(WimaxConfigView);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIMAX_CONFIG_VIEW_H_
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698