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

Unified Diff: chrome/common/page_transition_types.cc

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/page_transition_types.h ('k') | chrome/renderer/resources/extension_process_bindings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « chrome/common/page_transition_types.h ('k') | chrome/renderer/resources/extension_process_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698