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

Side by Side Diff: content/shell/browser/shell_web_contents_view_delegate_mac.mm

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/browser/shell_web_contents_view_delegate.h" 5 #include "content/shell/browser/shell_web_contents_view_delegate.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 case ShellContextMenuItemBackTag: 247 case ShellContextMenuItemBackTag:
248 web_contents_->GetController().GoToOffset(-1); 248 web_contents_->GetController().GoToOffset(-1);
249 web_contents_->Focus(); 249 web_contents_->Focus();
250 break; 250 break;
251 case ShellContextMenuItemForwardTag: 251 case ShellContextMenuItemForwardTag:
252 web_contents_->GetController().GoToOffset(1); 252 web_contents_->GetController().GoToOffset(1);
253 web_contents_->Focus(); 253 web_contents_->Focus();
254 break; 254 break;
255 case ShellContextMenuItemReloadTag: { 255 case ShellContextMenuItemReloadTag: {
256 web_contents_->GetController().Reload(false); 256 web_contents_->GetController().Reload(ReloadType::NORMAL, false);
257 web_contents_->Focus(); 257 web_contents_->Focus();
258 break; 258 break;
259 } 259 }
260 case ShellContextMenuItemInspectTag: { 260 case ShellContextMenuItemInspectTag: {
261 ShellDevToolsFrontend::Show(web_contents_); 261 ShellDevToolsFrontend::Show(web_contents_);
262 break; 262 break;
263 } 263 }
264 } 264 }
265 } 265 }
266 266
267 } // namespace content 267 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell.cc ('k') | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698