| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual void OnDialogShown( | 76 virtual void OnDialogShown( |
| 77 content::WebUI* webui, | 77 content::WebUI* webui, |
| 78 content::RenderViewHost* render_view_host) override; | 78 content::RenderViewHost* render_view_host) override; |
| 79 // NOTE: This function deletes this object at the end. | 79 // NOTE: This function deletes this object at the end. |
| 80 virtual void OnDialogClosed(const std::string& json_retval) override; | 80 virtual void OnDialogClosed(const std::string& json_retval) override; |
| 81 virtual void OnCloseContents( | 81 virtual void OnCloseContents( |
| 82 content::WebContents* source, bool* out_close_dialog) override; | 82 content::WebContents* source, bool* out_close_dialog) override; |
| 83 virtual bool ShouldShowDialogTitle() const override; | 83 virtual bool ShouldShowDialogTitle() const override; |
| 84 virtual bool HandleContextMenu( | 84 virtual bool HandleContextMenu( |
| 85 const content::ContextMenuParams& params) override; | 85 const content::ContextMenuParams& params) override; |
| 86 virtual bool HandleOpenURLFromTab( |
| 87 content::WebContents* source, |
| 88 const content::OpenURLParams& params, |
| 89 content::WebContents** out_new_contents) override; |
| 90 virtual bool HandleShouldCreateWebContents() override; |
| 86 | 91 |
| 87 // content::NotificationObserver implementation. | 92 // content::NotificationObserver implementation. |
| 88 virtual void Observe(int type, | 93 virtual void Observe(int type, |
| 89 const content::NotificationSource& source, | 94 const content::NotificationSource& source, |
| 90 const content::NotificationDetails& details) override; | 95 const content::NotificationDetails& details) override; |
| 91 | 96 |
| 92 private: | 97 private: |
| 93 content::BrowserContext* browser_context_; | 98 content::BrowserContext* browser_context_; |
| 94 gfx::NativeWindow parent_window_; | 99 gfx::NativeWindow parent_window_; |
| 95 // Notifications receiver. | 100 // Notifications receiver. |
| 96 Delegate* delegate_; | 101 Delegate* delegate_; |
| 97 | 102 |
| 98 base::string16 title_; | 103 base::string16 title_; |
| 99 GURL url_; | 104 GURL url_; |
| 100 content::NotificationRegistrar notification_registrar_; | 105 content::NotificationRegistrar notification_registrar_; |
| 101 bool is_open_; | 106 bool is_open_; |
| 102 | 107 |
| 103 // Dialog display size. | 108 // Dialog display size. |
| 104 int width_; | 109 int width_; |
| 105 int height_; | 110 int height_; |
| 106 | 111 |
| 107 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); | 112 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); |
| 108 }; | 113 }; |
| 109 | 114 |
| 110 } // namespace chromeos | 115 } // namespace chromeos |
| 111 | 116 |
| 112 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
| OLD | NEW |