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

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

Issue 3359013: Revert 58809 - Implement the webNavigation.onCommitted event.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
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 "chrome/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) {
(...skipping 16 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 }
37
38 // static
39 const char* PageTransition::QualifierString(Type type) {
40 DCHECK_NE((int)(type & (CLIENT_REDIRECT | SERVER_REDIRECT)),
41 (int)(CLIENT_REDIRECT | SERVER_REDIRECT));
42
43 switch (type & (CLIENT_REDIRECT | SERVER_REDIRECT | FORWARD_BACK)) {
44 case CLIENT_REDIRECT: return "client_redirect";
45 case SERVER_REDIRECT: return "server_redirect";
46 case FORWARD_BACK: return "forward_back";
47 case (CLIENT_REDIRECT | FORWARD_BACK):
48 return "client_redirect|forward_back";
49 case (SERVER_REDIRECT | FORWARD_BACK):
50 return "server_redirect|forward_back";
51 }
52 return "";
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698