| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |