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

Unified Diff: chrome/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/page_transition_types.h ('k') | chrome/common/page_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/page_transition_types.cc
===================================================================
--- chrome/common/page_transition_types.cc (revision 78506)
+++ chrome/common/page_transition_types.cc (working copy)
@@ -1,36 +0,0 @@
-// 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"
-
-#include "base/logging.h"
-
-// static
-PageTransition::Type PageTransition::FromInt(int32 type) {
- if (!ValidType(type)) {
- NOTREACHED() << "Invalid transition type " << type;
-
- // Return a safe default so we don't have corrupt data in release mode.
- return LINK;
- }
- return static_cast<Type>(type);
-}
-
-// static
-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/common/page_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698