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

Side by Side Diff: content/common/page_transition_types.cc

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/page_transition_types.h ('k') | content/common/page_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/common/page_transition_types.h" 5 #include "content/common/page_transition_types.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 // static 9 // static
10 PageTransition::Type PageTransition::FromInt(int32 type) { 10 PageTransition::Type PageTransition::FromInt(int32 type) {
11 if (!ValidType(type)) { 11 if (!ValidType(type)) {
12 NOTREACHED() << "Invalid transition type " << type; 12 NOTREACHED() << "Invalid transition type " << type;
13 13
14 // Return a safe default so we don't have corrupt data in release mode. 14 // Return a safe default so we don't have corrupt data in release mode.
15 return LINK; 15 return LINK;
(...skipping 11 matching lines...) Expand all
27 case 4: return "manual_subframe"; 27 case 4: return "manual_subframe";
28 case 5: return "generated"; 28 case 5: return "generated";
29 case 6: return "start_page"; 29 case 6: return "start_page";
30 case 7: return "form_submit"; 30 case 7: return "form_submit";
31 case 8: return "reload"; 31 case 8: return "reload";
32 case 9: return "keyword"; 32 case 9: return "keyword";
33 case 10: return "keyword_generated"; 33 case 10: return "keyword_generated";
34 } 34 }
35 return NULL; 35 return NULL;
36 } 36 }
OLDNEW
« no previous file with comments | « content/common/page_transition_types.h ('k') | content/common/page_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698