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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 months 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" 5 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
6 6
7 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h" 7 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "components/strings/grit/components_strings.h" 10 #include "components/strings/grit/components_strings.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 - (content::WebContents*)webContents { 83 - (content::WebContents*)webContents {
84 return webContents_; 84 return webContents_;
85 } 85 }
86 86
87 - (void)sadTabViewButtonClicked:(SadTabView*)sadTabView { 87 - (void)sadTabViewButtonClicked:(SadTabView*)sadTabView {
88 webContents_->GetController().Reload(true); 88 webContents_->GetController().Reload(true);
89 } 89 }
90 90
91 - (void)sadTabView:(SadTabView*)sadTabView 91 - (void)sadTabView:(SadTabView*)sadTabView
92 helpLinkClickedWithURL:(NSString*)url { 92 helpLinkClickedWithURL:(NSString*)url {
93 OpenURLParams params(GURL(url.UTF8String), Referrer(), CURRENT_TAB, 93 OpenURLParams params(GURL(url.UTF8String), Referrer(),
94 WindowOpenDisposition::CURRENT_TAB,
94 ui::PAGE_TRANSITION_LINK, false); 95 ui::PAGE_TRANSITION_LINK, false);
95 webContents_->OpenURL(params); 96 webContents_->OpenURL(params);
96 } 97 }
97 98
98 @end 99 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698