| 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 |
| 11 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 12 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
| 12 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 13 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 16 | 17 |
| 17 namespace chromeos { | 18 namespace chromeos { |
| 18 | 19 |
| 19 class BubbleFrameView; | 20 class BubbleFrameView; |
| 20 | 21 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual std::string GetDialogArgs() const OVERRIDE; | 65 virtual std::string GetDialogArgs() const OVERRIDE; |
| 65 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 66 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 66 virtual void OnCloseContents( | 67 virtual void OnCloseContents( |
| 67 TabContents* source, bool* out_close_dialog) OVERRIDE; | 68 TabContents* source, bool* out_close_dialog) OVERRIDE; |
| 68 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 69 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 69 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 70 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 70 | 71 |
| 71 // content::NotificationObserver implementation. | 72 // content::NotificationObserver implementation. |
| 72 virtual void Observe(int type, | 73 virtual void Observe(int type, |
| 73 const content::NotificationSource& source, | 74 const content::NotificationSource& source, |
| 74 const content::NotificationDetails& details); | 75 const content::NotificationDetails& details) OVERRIDE; |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 // Notifications receiver. | 78 // Notifications receiver. |
| 78 Delegate* delegate_; | 79 Delegate* delegate_; |
| 79 | 80 |
| 80 gfx::NativeWindow parent_window_; | 81 gfx::NativeWindow parent_window_; |
| 81 string16 title_; | 82 string16 title_; |
| 82 GURL url_; | 83 GURL url_; |
| 83 Style style_; | 84 Style style_; |
| 84 content::NotificationRegistrar notification_registrar_; | 85 content::NotificationRegistrar notification_registrar_; |
| 85 BubbleFrameView* bubble_frame_view_; | 86 BubbleFrameView* bubble_frame_view_; |
| 86 bool is_open_; | 87 bool is_open_; |
| 87 | 88 |
| 88 // Dialog display size. | 89 // Dialog display size. |
| 89 int width_; | 90 int width_; |
| 90 int height_; | 91 int height_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); | 93 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace chromeos | 96 } // namespace chromeos |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ |
| OLD | NEW |