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

Unified Diff: chrome/browser/chromeos/login/network_selection_view.h

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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: chrome/browser/chromeos/login/network_selection_view.h
diff --git a/chrome/browser/chromeos/login/network_selection_view.h b/chrome/browser/chromeos/login/network_selection_view.h
deleted file mode 100644
index 958f590e0a6f542fdf356aa8059afdef4c30969c..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/network_selection_view.h
+++ /dev/null
@@ -1,134 +0,0 @@
-// Copyright (c) 2011 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_LOGIN_NETWORK_SELECTION_VIEW_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/string16.h"
-#include "chrome/browser/chromeos/login/login_html_dialog.h"
-#include "chrome/browser/chromeos/views/dropdown_button.h"
-#include "views/controls/link_listener.h"
-#include "views/view.h"
-
-namespace gfx {
-class Size;
-} // namespace gfx
-
-namespace views {
-class Combobox;
-class GridLayout;
-class Label;
-class NativeTextButton;
-class Throbber;
-} // namespace views
-
-namespace chromeos {
-
-class NetworkDropdownButton;
-class ScreenObserver;
-class ViewsNetworkScreenActor;
-
-// View for the network selection/initial welcome screen.
-class NetworkSelectionView : public views::View,
- public views::LinkListener,
- public LoginHtmlDialog::Delegate {
- public:
- explicit NetworkSelectionView(ViewsNetworkScreenActor* actor);
- virtual ~NetworkSelectionView();
-
- // Initialize view layout.
- void Init();
-
- // Update strings from the resources. Executed on language change.
- void UpdateLocalizedStringsAndFonts();
-
- // Returns top level native window for the view.
- gfx::NativeWindow GetNativeWindow() const;
-
- // Returns network control view.
- views::View* GetNetworkControlView() const;
-
- // Shows network connecting status or network selection otherwise.
- void ShowConnectingStatus(bool connecting, const string16& network_id);
-
- // Returns true if only throbber is visible, the view is in waiting status.
- bool IsConnecting() const;
-
- // Sets whether continue control is enabled.
- void EnableContinue(bool enabled);
-
- // Returns whether continue button is enabled.
- bool IsContinueEnabled() const;
-
- // views::LinkListener implementation.
- virtual void LinkClicked(views::Link* source, int) OVERRIDE;
-
- // Returns true if any dialog box is currently open?
- bool is_dialog_open() const {
- return proxy_settings_dialog_.get() && proxy_settings_dialog_->is_open();
- }
-
- protected:
- // Overridden from views::View.
- virtual bool OnKeyPressed(const views::KeyEvent& e);
- virtual void OnLocaleChanged();
- virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
-
- // LoginHtmlDialog::Delegate implementation:
- virtual void OnDialogClosed() {}
-
- private:
- // Add screen controls to the contents layout specified.
- // Based on state (connecting to the network or not)
- // different controls are added.
- void AddControlsToLayout(views::GridLayout* contents_layout);
-
- // Initializes grid layout of the screen. Called on language change too.
- void InitLayout();
-
- // Delete and recreate native controls that
- // fail to update preferred size after string update.
- void RecreateNativeControls();
-
- // Updates text on label with currently connecting network.
- void UpdateConnectingNetworkLabel();
-
- // View that defines FillLayout for the whole screen (contents & title).
- views::View* entire_screen_view_;
-
- // View that contains screen contents (except title).
- views::View* contents_view_;
-
- // Screen controls.
- DropDownButton* languages_menubutton_;
- DropDownButton* keyboards_menubutton_;
- views::Label* welcome_label_;
- views::Label* select_language_label_;
- views::Label* select_keyboard_label_;
- views::Label* select_network_label_;
- views::Label* connecting_network_label_;
- NetworkDropdownButton* network_dropdown_;
- views::NativeTextButton* continue_button_;
- views::Throbber* throbber_;
- views::Link* proxy_settings_link_;
- bool show_keyboard_button_;
-
- ViewsNetworkScreenActor* actor_;
-
- // Id of the network that is in process of connecting.
- string16 network_id_;
-
- // Dialog used for to launch proxy settings.
- scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkSelectionView);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_NETWORK_SELECTION_VIEW_H_
« no previous file with comments | « chrome/browser/chromeos/login/network_screen_browsertest.cc ('k') | chrome/browser/chromeos/login/network_selection_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698