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

Unified Diff: content/public/common/page_transition_types.cc

Issue 10827107: Allow transitions to WebUI pages which are extension urls (new tab page is the relevant example). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « content/public/common/page_transition_types.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/page_transition_types.cc
===================================================================
--- content/public/common/page_transition_types.cc (revision 150475)
+++ content/public/common/page_transition_types.cc (working copy)
@@ -42,6 +42,14 @@
return type & PAGE_TRANSITION_QUALIFIER_MASK;
}
+bool PageTransitionIsWebTriggerable(PageTransition type) {
+ int32 t = PageTransitionStripQualifier(type);
+ return (t == PAGE_TRANSITION_LINK ||
+ t == PAGE_TRANSITION_AUTO_SUBFRAME ||
+ t == PAGE_TRANSITION_MANUAL_SUBFRAME ||
+ t == PAGE_TRANSITION_FORM_SUBMIT);
+}
+
const char* PageTransitionGetCoreTransitionString(PageTransition type) {
switch (type & PAGE_TRANSITION_CORE_MASK) {
case PAGE_TRANSITION_LINK: return "link";
« no previous file with comments | « content/public/common/page_transition_types.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698