| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 NOTIMPLEMENTED(); | 260 NOTIMPLEMENTED(); |
| 261 return NULL; | 261 return NULL; |
| 262 } | 262 } |
| 263 | 263 |
| 264 void SimpleWebViewDialog::LoadingStateChanged(WebContents* source) { | 264 void SimpleWebViewDialog::LoadingStateChanged(WebContents* source) { |
| 265 bool is_loading = source->IsLoading(); | 265 bool is_loading = source->IsLoading(); |
| 266 UpdateReload(is_loading, false); | 266 UpdateReload(is_loading, false); |
| 267 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading); | 267 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading); |
| 268 } | 268 } |
| 269 | 269 |
| 270 TabContentsWrapper* SimpleWebViewDialog::GetTabContentsWrapper() const { | 270 TabContents* SimpleWebViewDialog::GetTabContents() const { |
| 271 return NULL; | 271 return NULL; |
| 272 } | 272 } |
| 273 | 273 |
| 274 InstantController* SimpleWebViewDialog::GetInstant() { | 274 InstantController* SimpleWebViewDialog::GetInstant() { |
| 275 return NULL; | 275 return NULL; |
| 276 } | 276 } |
| 277 | 277 |
| 278 views::Widget* SimpleWebViewDialog::CreateViewsBubble( | 278 views::Widget* SimpleWebViewDialog::CreateViewsBubble( |
| 279 views::BubbleDelegateView* bubble_delegate) { | 279 views::BubbleDelegateView* bubble_delegate) { |
| 280 return views::BubbleDelegateView::CreateBubble(bubble_delegate); | 280 return views::BubbleDelegateView::CreateBubble(bubble_delegate); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 396 |
| 397 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 397 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 398 if (reload_) { | 398 if (reload_) { |
| 399 reload_->ChangeMode( | 399 reload_->ChangeMode( |
| 400 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 400 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 401 force); | 401 force); |
| 402 } | 402 } |
| 403 } | 403 } |
| 404 | 404 |
| 405 } // namespace chromeos | 405 } // namespace chromeos |
| OLD | NEW |