| OLD | NEW |
| 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_LOGIN_HTML_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; | 62 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 63 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 63 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 64 virtual std::string GetDialogArgs() const OVERRIDE; | 64 virtual std::string GetDialogArgs() const OVERRIDE; |
| 65 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 65 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 66 virtual void OnCloseContents( | 66 virtual void OnCloseContents( |
| 67 TabContents* source, bool* out_close_dialog) OVERRIDE; | 67 TabContents* source, bool* out_close_dialog) OVERRIDE; |
| 68 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 68 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 69 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 69 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 70 | 70 |
| 71 // NotificationObserver implementation. | 71 // NotificationObserver implementation. |
| 72 virtual void Observe(NotificationType type, | 72 virtual void Observe(int type, |
| 73 const NotificationSource& source, | 73 const NotificationSource& source, |
| 74 const NotificationDetails& details); | 74 const NotificationDetails& details); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 // Notifications receiver. | 77 // Notifications receiver. |
| 78 Delegate* delegate_; | 78 Delegate* delegate_; |
| 79 | 79 |
| 80 gfx::NativeWindow parent_window_; | 80 gfx::NativeWindow parent_window_; |
| 81 std::wstring title_; | 81 std::wstring title_; |
| 82 GURL url_; | 82 GURL url_; |
| 83 Style style_; | 83 Style style_; |
| 84 NotificationRegistrar notification_registrar_; | 84 NotificationRegistrar notification_registrar_; |
| 85 BubbleFrameView* bubble_frame_view_; | 85 BubbleFrameView* bubble_frame_view_; |
| 86 bool is_open_; | 86 bool is_open_; |
| 87 | 87 |
| 88 // Dialog display size. | 88 // Dialog display size. |
| 89 int width_; | 89 int width_; |
| 90 int height_; | 90 int height_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); | 92 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace chromeos | 95 } // namespace chromeos |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| OLD | NEW |