Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Side by Side Diff: chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: merge master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(content::ReloadType::BYPASSING_CACHE,
345 true);
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
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
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_tab_reloader.cc ('k') | chrome/browser/devtools/devtools_ui_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698