| 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/simple_web_view_dialog.h" | 5 #include "chrome/browser/chromeos/login/simple_web_view_dialog.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 return bubble_model_delegate_.get(); | 285 return bubble_model_delegate_.get(); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void SimpleWebViewDialog::ShowPageInfo(content::WebContents* web_contents, | 288 void SimpleWebViewDialog::ShowPageInfo(content::WebContents* web_contents, |
| 289 const GURL& url, | 289 const GURL& url, |
| 290 const content::SSLStatus& ssl, | 290 const content::SSLStatus& ssl, |
| 291 bool show_history) { | 291 bool show_history) { |
| 292 PageInfoBubbleView* page_info_bubble = | 292 PageInfoBubbleView* page_info_bubble = |
| 293 new PageInfoBubbleView( | 293 new PageInfoBubbleView( |
| 294 location_bar_->location_icon_view(), | 294 location_bar_->location_icon_view(), |
| 295 location_bar_->profile(), | 295 web_contents, |
| 296 url, ssl, | 296 url, ssl, |
| 297 true, | 297 true, |
| 298 this); | 298 this); |
| 299 page_info_bubble->set_parent_window( | 299 page_info_bubble->set_parent_window( |
| 300 ash::Shell::GetContainer( | 300 ash::Shell::GetContainer( |
| 301 ash::Shell::GetPrimaryRootWindow(), | 301 ash::Shell::GetPrimaryRootWindow(), |
| 302 ash::internal::kShellWindowId_LockSystemModalContainer)); | 302 ash::internal::kShellWindowId_LockSystemModalContainer)); |
| 303 CreateViewsBubble(page_info_bubble); | 303 CreateViewsBubble(page_info_bubble); |
| 304 page_info_bubble->Show(); | 304 page_info_bubble->Show(); |
| 305 } | 305 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 397 |
| 398 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 398 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 399 if (reload_) { | 399 if (reload_) { |
| 400 reload_->ChangeMode( | 400 reload_->ChangeMode( |
| 401 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 401 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 402 force); | 402 force); |
| 403 } | 403 } |
| 404 } | 404 } |
| 405 | 405 |
| 406 } // namespace chromeos | 406 } // namespace chromeos |
| OLD | NEW |