Index: chrome/common/page_transition_types.cc |
diff --git a/chrome/common/page_transition_types.cc b/chrome/common/page_transition_types.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9fb49cd2d08812892c823c82ebcec37b35041efc |
--- /dev/null |
+++ b/chrome/common/page_transition_types.cc |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/common/page_transition_types.h" |
+ |
+const char* PageTransition::CoreTransitionString(Type type) { |
+ switch (type & PageTransition::CORE_MASK) { |
+ case 0: return "link"; |
+ case 1: return "typed"; |
+ case 2: return "auto_bookmark"; |
+ case 3: return "auto_subframe"; |
+ case 4: return "manual_subframe"; |
+ case 5: return "generated"; |
+ case 6: return "start_page"; |
+ case 7: return "form_submit"; |
+ case 8: return "reload"; |
+ case 9: return "keyword"; |
+ case 10: return "keyword_generated"; |
+ } |
+ return NULL; |
+} |