| 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 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" | 5 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" |
| 6 | 6 |
| 7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 bool to_different_document) { | 275 bool to_different_document) { |
| 276 bool is_loading = source->IsLoading(); | 276 bool is_loading = source->IsLoading(); |
| 277 UpdateReload(is_loading && to_different_document, false); | 277 UpdateReload(is_loading && to_different_document, false); |
| 278 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading); | 278 command_updater_->UpdateCommandEnabled(IDC_STOP, is_loading); |
| 279 } | 279 } |
| 280 | 280 |
| 281 WebContents* SimpleWebViewDialog::GetWebContents() { | 281 WebContents* SimpleWebViewDialog::GetWebContents() { |
| 282 return NULL; | 282 return NULL; |
| 283 } | 283 } |
| 284 | 284 |
| 285 const WebContents* SimpleWebViewDialog::GetWebContents() const { |
| 286 return NULL; |
| 287 } |
| 288 |
| 285 ToolbarModel* SimpleWebViewDialog::GetToolbarModel() { | 289 ToolbarModel* SimpleWebViewDialog::GetToolbarModel() { |
| 286 return toolbar_model_.get(); | 290 return toolbar_model_.get(); |
| 287 } | 291 } |
| 288 | 292 |
| 289 const ToolbarModel* SimpleWebViewDialog::GetToolbarModel() const { | 293 const ToolbarModel* SimpleWebViewDialog::GetToolbarModel() const { |
| 290 return toolbar_model_.get(); | 294 return toolbar_model_.get(); |
| 291 } | 295 } |
| 292 | 296 |
| 293 ContentSettingBubbleModelDelegate* | 297 ContentSettingBubbleModelDelegate* |
| 294 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { | 298 SimpleWebViewDialog::GetContentSettingBubbleModelDelegate() { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 385 |
| 382 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 386 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 383 if (reload_) { | 387 if (reload_) { |
| 384 reload_->ChangeMode( | 388 reload_->ChangeMode( |
| 385 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 389 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 386 force); | 390 force); |
| 387 } | 391 } |
| 388 } | 392 } |
| 389 | 393 |
| 390 } // namespace chromeos | 394 } // namespace chromeos |
| OLD | NEW |