| 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 #include "chrome/browser/chromeos/login/login_html_dialog.h" | 5 #include "chrome/browser/chromeos/login/login_html_dialog.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" | 8 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" |
| 9 #include "chrome/browser/chromeos/frame/bubble_window.h" | 9 #include "chrome/browser/chromeos/frame/bubble_window.h" |
| 10 #include "chrome/browser/chromeos/login/helper.h" | 10 #include "chrome/browser/chromeos/login/helper.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void LoginHtmlDialog::OnCloseContents(WebContents* source, | 134 void LoginHtmlDialog::OnCloseContents(WebContents* source, |
| 135 bool* out_close_dialog) { | 135 bool* out_close_dialog) { |
| 136 if (out_close_dialog) | 136 if (out_close_dialog) |
| 137 *out_close_dialog = true; | 137 *out_close_dialog = true; |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool LoginHtmlDialog::ShouldShowDialogTitle() const { | 140 bool LoginHtmlDialog::ShouldShowDialogTitle() const { |
| 141 return true; | 141 return true; |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool LoginHtmlDialog::HandleContextMenu(const ContextMenuParams& params) { | 144 bool LoginHtmlDialog::HandleContextMenu( |
| 145 const content::ContextMenuParams& params) { |
| 145 // Disable context menu. | 146 // Disable context menu. |
| 146 return true; | 147 return true; |
| 147 } | 148 } |
| 148 | 149 |
| 149 void LoginHtmlDialog::Observe(int type, | 150 void LoginHtmlDialog::Observe(int type, |
| 150 const content::NotificationSource& source, | 151 const content::NotificationSource& source, |
| 151 const content::NotificationDetails& details) { | 152 const content::NotificationDetails& details) { |
| 152 DCHECK(type == content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME); | 153 DCHECK(type == content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME); |
| 153 #if defined(USE_AURA) | 154 #if defined(USE_AURA) |
| 154 // TODO(saintlou): Do we need a throbber for Aura? | 155 // TODO(saintlou): Do we need a throbber for Aura? |
| 155 NOTIMPLEMENTED(); | 156 NOTIMPLEMENTED(); |
| 156 #else | 157 #else |
| 157 if (bubble_frame_view_) | 158 if (bubble_frame_view_) |
| 158 bubble_frame_view_->StopThrobber(); | 159 bubble_frame_view_->StopThrobber(); |
| 159 #endif | 160 #endif |
| 160 } | 161 } |
| 161 | 162 |
| 162 } // namespace chromeos | 163 } // namespace chromeos |
| OLD | NEW |