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

Side by Side Diff: chrome/browser/ui/views/session_crashed_bubble_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 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/ui/views/session_crashed_bubble_view.h" 5 #include "chrome/browser/ui/views/session_crashed_bubble_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 DCHECK_EQ(sender, restore_button_); 368 DCHECK_EQ(sender, restore_button_);
369 RestorePreviousSession(sender); 369 RestorePreviousSession(sender);
370 } 370 }
371 371
372 void SessionCrashedBubbleView::StyledLabelLinkClicked(const gfx::Range& range, 372 void SessionCrashedBubbleView::StyledLabelLinkClicked(const gfx::Range& range,
373 int event_flags) { 373 int event_flags) {
374 browser_->OpenURL(content::OpenURLParams( 374 browser_->OpenURL(content::OpenURLParams(
375 GURL("https://support.google.com/chrome/answer/96817"), 375 GURL("https://support.google.com/chrome/answer/96817"),
376 content::Referrer(), 376 content::Referrer(),
377 NEW_FOREGROUND_TAB, 377 NEW_FOREGROUND_TAB,
378 content::PAGE_TRANSITION_LINK, 378 ui::PAGE_TRANSITION_LINK,
379 false)); 379 false));
380 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_HELP); 380 RecordBubbleHistogramValue(SESSION_CRASHED_BUBBLE_HELP);
381 } 381 }
382 382
383 void SessionCrashedBubbleView::DidStartNavigationToPendingEntry( 383 void SessionCrashedBubbleView::DidStartNavigationToPendingEntry(
384 const GURL& url, 384 const GURL& url,
385 content::NavigationController::ReloadType reload_type) { 385 content::NavigationController::ReloadType reload_type) {
386 started_navigation_ = true; 386 started_navigation_ = true;
387 } 387 }
388 388
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 GetWidget()->Close(); 433 GetWidget()->Close();
434 } 434 }
435 435
436 bool ShowSessionCrashedBubble(Browser* browser) { 436 bool ShowSessionCrashedBubble(Browser* browser) {
437 if (IsBubbleUIEnabled()) { 437 if (IsBubbleUIEnabled()) {
438 SessionCrashedBubbleView::Show(browser); 438 SessionCrashedBubbleView::Show(browser);
439 return true; 439 return true;
440 } 440 }
441 return false; 441 return false;
442 } 442 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698