OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_LOGIN_WEB_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 enum Style { | 40 enum Style { |
41 STYLE_GENERIC, // Use generic CreateChromeWindow as a host. | 41 STYLE_GENERIC, // Use generic CreateChromeWindow as a host. |
42 STYLE_BUBBLE // Use chromeos::BubbleWindow as a host. | 42 STYLE_BUBBLE // Use chromeos::BubbleWindow as a host. |
43 }; | 43 }; |
44 | 44 |
45 LoginWebDialog(content::BrowserContext* browser_context, | 45 LoginWebDialog(content::BrowserContext* browser_context, |
46 Delegate* delegate, | 46 Delegate* delegate, |
47 gfx::NativeWindow parent_window, | 47 gfx::NativeWindow parent_window, |
48 const base::string16& title, | 48 const base::string16& title, |
49 const GURL& url, | 49 const GURL& url); |
50 Style style); | |
51 virtual ~LoginWebDialog(); | 50 virtual ~LoginWebDialog(); |
52 | 51 |
53 void Show(); | 52 void Show(); |
54 | 53 |
55 // Overrides default width/height for dialog. | 54 // Overrides default width/height for dialog. |
56 void SetDialogSize(int width, int height); | 55 void SetDialogSize(int width, int height); |
57 | 56 |
58 // Overrides dialog title. | 57 // Overrides dialog title. |
59 void SetDialogTitle(const base::string16& title); | 58 void SetDialogTitle(const base::string16& title); |
60 | 59 |
(...skipping 30 matching lines...) Expand all Loading... |
91 const content::NotificationDetails& details) OVERRIDE; | 90 const content::NotificationDetails& details) OVERRIDE; |
92 | 91 |
93 private: | 92 private: |
94 content::BrowserContext* browser_context_; | 93 content::BrowserContext* browser_context_; |
95 gfx::NativeWindow parent_window_; | 94 gfx::NativeWindow parent_window_; |
96 // Notifications receiver. | 95 // Notifications receiver. |
97 Delegate* delegate_; | 96 Delegate* delegate_; |
98 | 97 |
99 base::string16 title_; | 98 base::string16 title_; |
100 GURL url_; | 99 GURL url_; |
101 Style style_; | |
102 content::NotificationRegistrar notification_registrar_; | 100 content::NotificationRegistrar notification_registrar_; |
103 bool is_open_; | 101 bool is_open_; |
104 | 102 |
105 // Dialog display size. | 103 // Dialog display size. |
106 int width_; | 104 int width_; |
107 int height_; | 105 int height_; |
108 | 106 |
109 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); | 107 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); |
110 }; | 108 }; |
111 | 109 |
112 } // namespace chromeos | 110 } // namespace chromeos |
113 | 111 |
114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 112 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
OLD | NEW |