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

Side by Side Diff: chrome/browser/views/about_network_dialog.h

Issue 2814047: Cleanup: Remove about:network.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/views/about_network_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_
6 #define CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_
7
8 #include "base/singleton.h"
9 #include "views/controls/button/button.h"
10 #include "views/window/dialog_delegate.h"
11
12 namespace views {
13 class TextButton;
14 class Textfield;
15 } // namespace views
16
17 class AboutNetworkDialog : public views::DialogDelegate,
18 public views::ButtonListener,
19 public views::View {
20 public:
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.
23 static void RunDialog();
24
25 virtual ~AboutNetworkDialog();
26
27 // Appends the given string to the dialog box. This is called by the job
28 // tracker (see the .cc file) when "stuff happens."
29 void AppendText(const std::wstring& text);
30
31 // Returns true if we're currently tracking network operations.
32 bool tracking() const { return tracking_; }
33
34 private:
35 friend struct DefaultSingletonTraits<AboutNetworkDialog>;
36
37 AboutNetworkDialog();
38
39 // Sets up all UI controls for the dialog.
40 void SetupControls();
41
42 virtual gfx::Size GetPreferredSize();
43 virtual views::View* GetContentsView();
44 virtual int GetDialogButtons() const;
45 virtual std::wstring GetWindowTitle() const;
46
47 // views::WindowDelegate (via view::DialogDelegate).
48 virtual bool CanResize() const;
49
50 // views::ButtonListener.
51 virtual void ButtonPressed(views::Button* button, const views::Event& event);
52
53 views::TextButton* track_toggle_;
54 views::TextButton* show_button_;
55 views::TextButton* clear_button_;
56 views::Textfield* text_field_;
57
58 // Set to true when we're tracking network status.
59 bool tracking_;
60
61 DISALLOW_COPY_AND_ASSIGN(AboutNetworkDialog);
62 };
63
64 #endif // CHROME_BROWSER_VIEWS_ABOUT_NETWORK_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/views/about_network_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698