| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 } | 334 } |
| 335 break; | 335 break; |
| 336 case IDC_STOP: | 336 case IDC_STOP: |
| 337 web_contents->Stop(); | 337 web_contents->Stop(); |
| 338 break; | 338 break; |
| 339 case IDC_RELOAD: | 339 case IDC_RELOAD: |
| 340 // Always reload bypassing cache. | 340 // Always reload bypassing cache. |
| 341 case IDC_RELOAD_BYPASSING_CACHE: | 341 case IDC_RELOAD_BYPASSING_CACHE: |
| 342 case IDC_RELOAD_CLEARING_CACHE: | 342 case IDC_RELOAD_CLEARING_CACHE: |
| 343 location_bar_->Revert(); | 343 location_bar_->Revert(); |
| 344 web_contents->GetController().ReloadBypassingCache(true); | 344 web_contents->GetController().Reload( |
| 345 true, content::ReloadType::BYPASSING_CACHE); |
| 345 break; | 346 break; |
| 346 default: | 347 default: |
| 347 NOTREACHED(); | 348 NOTREACHED(); |
| 348 } | 349 } |
| 349 } | 350 } |
| 350 | 351 |
| 351 void SimpleWebViewDialog::LoadImages() { | 352 void SimpleWebViewDialog::LoadImages() { |
| 352 const ui::ThemeProvider* tp = GetThemeProvider(); | 353 const ui::ThemeProvider* tp = GetThemeProvider(); |
| 353 | 354 |
| 354 back_->SetImage(views::CustomButton::STATE_NORMAL, | 355 back_->SetImage(views::CustomButton::STATE_NORMAL, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 381 | 382 |
| 382 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { | 383 void SimpleWebViewDialog::UpdateReload(bool is_loading, bool force) { |
| 383 if (reload_) { | 384 if (reload_) { |
| 384 reload_->ChangeMode( | 385 reload_->ChangeMode( |
| 385 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, | 386 is_loading ? ReloadButton::MODE_STOP : ReloadButton::MODE_RELOAD, |
| 386 force); | 387 force); |
| 387 } | 388 } |
| 388 } | 389 } |
| 389 | 390 |
| 390 } // namespace chromeos | 391 } // namespace chromeos |
| OLD | NEW |