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

Side by Side Diff: chrome/browser/chromeos/login/proxy_settings_dialog.h

Issue 10214001: WebDialogs (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/login_html_dialog.h" 9 #include "chrome/browser/chromeos/login/login_html_dialog.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // Should be used on the UI thread only, because of static |instance_count_|. 14 // Should be used on the UI thread only, because of static |instance_count_|.
15 class ProxySettingsDialog : public LoginHtmlDialog { 15 class ProxySettingsDialog : public LoginHtmlDialog {
16 public: 16 public:
17 // Returns whether the dialog is being shown. 17 // Returns whether the dialog is being shown.
18 static bool IsShown(); 18 static bool IsShown();
19 19
20 ProxySettingsDialog(LoginHtmlDialog::Delegate* delegate, 20 ProxySettingsDialog(LoginHtmlDialog::Delegate* delegate,
21 gfx::NativeWindow window); 21 gfx::NativeWindow window);
22 virtual ~ProxySettingsDialog(); 22 virtual ~ProxySettingsDialog();
23 23
24 protected: 24 protected:
25 // HtmlDialogUIDelegate implementation. 25 // WebDialogDelegate implementation.
26 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 26 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
27 27
28 private: 28 private:
29 // TODO(altimofeev): consider avoidance static variable by extending current 29 // TODO(altimofeev): consider avoidance static variable by extending current
30 // WebUI/login interfaces. 30 // WebUI/login interfaces.
31 static int instance_count_; 31 static int instance_count_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ProxySettingsDialog); 33 DISALLOW_COPY_AND_ASSIGN(ProxySettingsDialog);
34 }; 34 };
35 35
36 } // namespace chromeos 36 } // namespace chromeos
37 37
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_html_dialog.cc ('k') | chrome/browser/chromeos/sim_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698