| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual string16 GetDialogTitle() const OVERRIDE; | 63 virtual string16 GetDialogTitle() const OVERRIDE; |
| 64 virtual GURL GetDialogContentURL() const OVERRIDE; | 64 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 65 virtual void GetWebUIMessageHandlers( | 65 virtual void GetWebUIMessageHandlers( |
| 66 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 66 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 67 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 67 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 68 virtual std::string GetDialogArgs() const OVERRIDE; | 68 virtual std::string GetDialogArgs() const OVERRIDE; |
| 69 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 69 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 70 virtual void OnCloseContents( | 70 virtual void OnCloseContents( |
| 71 content::WebContents* source, bool* out_close_dialog) OVERRIDE; | 71 content::WebContents* source, bool* out_close_dialog) OVERRIDE; |
| 72 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 72 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 73 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 73 virtual bool HandleContextMenu( |
| 74 const content::ContextMenuParams& params) OVERRIDE; |
| 74 | 75 |
| 75 // content::NotificationObserver implementation. | 76 // content::NotificationObserver implementation. |
| 76 virtual void Observe(int type, | 77 virtual void Observe(int type, |
| 77 const content::NotificationSource& source, | 78 const content::NotificationSource& source, |
| 78 const content::NotificationDetails& details) OVERRIDE; | 79 const content::NotificationDetails& details) OVERRIDE; |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 // Notifications receiver. | 82 // Notifications receiver. |
| 82 Delegate* delegate_; | 83 Delegate* delegate_; |
| 83 | 84 |
| 84 gfx::NativeWindow parent_window_; | 85 gfx::NativeWindow parent_window_; |
| 85 string16 title_; | 86 string16 title_; |
| 86 GURL url_; | 87 GURL url_; |
| 87 Style style_; | 88 Style style_; |
| 88 content::NotificationRegistrar notification_registrar_; | 89 content::NotificationRegistrar notification_registrar_; |
| 89 BubbleFrameView* bubble_frame_view_; | 90 BubbleFrameView* bubble_frame_view_; |
| 90 bool is_open_; | 91 bool is_open_; |
| 91 | 92 |
| 92 // Dialog display size. | 93 // Dialog display size. |
| 93 int width_; | 94 int width_; |
| 94 int height_; | 95 int height_; |
| 95 | 96 |
| 96 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); | 97 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace chromeos | 100 } // namespace chromeos |
| 100 | 101 |
| 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| OLD | NEW |