summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/options/cellular_config_view.h
blob: 9120c6d430a1fb00c96643afaa539e3cb0089d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2010 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_CELLULAR_CONFIG_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_OPTIONS_CELLULAR_CONFIG_VIEW_H_
#pragma once

#include "chrome/browser/chromeos/cros/network_library.h"
#include "views/controls/button/button.h"
#include "views/controls/link.h"
#include "views/view.h"

namespace views {
class Checkbox;
class Label;
class NativeButton;
}  // namespace views

namespace chromeos {

class NetworkConfigView;

// A dialog box for showing a password textfield.
class CellularConfigView : public views::View,
                           public views::ButtonListener,
                           public views::LinkController {
 public:
  CellularConfigView(NetworkConfigView* parent,
                     const CellularNetwork& cellular);
  explicit CellularConfigView(NetworkConfigView* parent);
  virtual ~CellularConfigView() {}

  // views::ButtonListener implementation.
  virtual void ButtonPressed(views::Button* button, const views::Event& event);

  // views::LinkController implementation.
  virtual void LinkActivated(views::Link* source, int event_flags);

  // Save network information.
  virtual bool Save();

 private:

  // Initializes UI.
  void Init();

  // Updates UI.
  void Update();

  NetworkConfigView* parent_;

  CellularNetwork cellular_;

  views::Label* purchase_info_;
  views::NativeButton* purchase_more_button_;
  views::Label* remaining_data_info_;
  views::Label* expiration_info_;
  views::Checkbox* show_notification_checkbox_;
  views::Checkbox* autoconnect_checkbox_;
  views::Link* customer_support_link_;

  DISALLOW_COPY_AND_ASSIGN(CellularConfigView);
};

}  // namespace chromeos

#endif  // CHROME_BROWSER_CHROMEOS_OPTIONS_CELLULAR_CONFIG_VIEW_H_