OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ |
6 #define CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ | 6 #define CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ |
7 | 7 |
8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
9 #include "views/controls/button/button.h" | 9 #include "views/controls/button/button.h" |
10 #include "views/window/dialog_delegate.h" | 10 #include "views/window/dialog_delegate.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 class TextButton; | 13 class TextButton; |
14 class TextField; | 14 class Textfield; |
15 } // namespace views | 15 } // namespace views |
16 | 16 |
17 class AboutNetworkDialog : public views::DialogDelegate, | 17 class AboutNetworkDialog : public views::DialogDelegate, |
18 public views::ButtonListener, | 18 public views::ButtonListener, |
19 public views::View { | 19 public views::View { |
20 public: | 20 public: |
21 // This dialog is a singleton. If the dialog is already opened, it won't do | 21 // This dialog is a singleton. If the dialog is already opened, it won't do |
22 // anything, so you can just blindly call this function all you want. | 22 // anything, so you can just blindly call this function all you want. |
23 static void RunDialog(); | 23 static void RunDialog(); |
24 | 24 |
(...skipping 21 matching lines...) Expand all Loading... |
46 | 46 |
47 // views::WindowDelegate (via view::DialogDelegate). | 47 // views::WindowDelegate (via view::DialogDelegate). |
48 virtual bool CanResize() const; | 48 virtual bool CanResize() const; |
49 | 49 |
50 // views::ButtonListener. | 50 // views::ButtonListener. |
51 virtual void ButtonPressed(views::Button* button); | 51 virtual void ButtonPressed(views::Button* button); |
52 | 52 |
53 views::TextButton* track_toggle_; | 53 views::TextButton* track_toggle_; |
54 views::TextButton* show_button_; | 54 views::TextButton* show_button_; |
55 views::TextButton* clear_button_; | 55 views::TextButton* clear_button_; |
56 views::TextField* text_field_; | 56 views::Textfield* text_field_; |
57 | 57 |
58 // Set to true when we're tracking network status. | 58 // Set to true when we're tracking network status. |
59 bool tracking_; | 59 bool tracking_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(AboutNetworkDialog); | 61 DISALLOW_COPY_AND_ASSIGN(AboutNetworkDialog); |
62 }; | 62 }; |
63 | 63 |
64 #endif // CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ | 64 #endif // CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_ |
OLD | NEW |