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

Side by Side Diff: chrome/browser/ui/views/sad_tab_view.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/views/sad_tab_view.h" 5 #include "chrome/browser/ui/views/sad_tab_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 SadTabView::~SadTabView() {} 172 SadTabView::~SadTabView() {}
173 173
174 void SadTabView::LinkClicked(views::Link* source, int event_flags) { 174 void SadTabView::LinkClicked(views::Link* source, int event_flags) {
175 DCHECK(web_contents_); 175 DCHECK(web_contents_);
176 if (source == help_link_) { 176 if (source == help_link_) {
177 GURL help_url((kind_ == chrome::SAD_TAB_KIND_CRASHED) ? 177 GURL help_url((kind_ == chrome::SAD_TAB_KIND_CRASHED) ?
178 chrome::kCrashReasonURL : chrome::kKillReasonURL); 178 chrome::kCrashReasonURL : chrome::kKillReasonURL);
179 OpenURLParams params( 179 OpenURLParams params(
180 help_url, content::Referrer(), CURRENT_TAB, 180 help_url, content::Referrer(), CURRENT_TAB,
181 content::PAGE_TRANSITION_LINK, false); 181 ui::PAGE_TRANSITION_LINK, false);
182 web_contents_->OpenURL(params); 182 web_contents_->OpenURL(params);
183 } else if (source == feedback_link_) { 183 } else if (source == feedback_link_) {
184 chrome::ShowFeedbackPage( 184 chrome::ShowFeedbackPage(
185 chrome::FindBrowserWithWebContents(web_contents_), 185 chrome::FindBrowserWithWebContents(web_contents_),
186 l10n_util::GetStringUTF8(IDS_KILLED_TAB_FEEDBACK_MESSAGE), 186 l10n_util::GetStringUTF8(IDS_KILLED_TAB_FEEDBACK_MESSAGE),
187 std::string(kCategoryTagCrash)); 187 std::string(kCategoryTagCrash));
188 } 188 }
189 } 189 }
190 190
191 void SadTabView::ButtonPressed(views::Button* sender, 191 void SadTabView::ButtonPressed(views::Button* sender,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 namespace chrome { 276 namespace chrome {
277 277
278 SadTab* SadTab::Create(content::WebContents* web_contents, 278 SadTab* SadTab::Create(content::WebContents* web_contents,
279 SadTabKind kind) { 279 SadTabKind kind) {
280 return new SadTabView(web_contents, kind); 280 return new SadTabView(web_contents, kind);
281 } 281 }
282 282
283 } // namespace chrome 283 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698