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

Unified Diff: webkit/glue/window_open_disposition.cc

Issue 11798003: Move NavigationPolicyToDisposition() function into render_view_impl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 11 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 | « webkit/glue/window_open_disposition.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/window_open_disposition.cc
diff --git a/webkit/glue/window_open_disposition.cc b/webkit/glue/window_open_disposition.cc
deleted file mode 100644
index 6a117d3f2563ea0eb687a749575ba64184129668..0000000000000000000000000000000000000000
--- a/webkit/glue/window_open_disposition.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2009 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 "webkit/glue/window_open_disposition.h"
-
-#include "base/logging.h"
-
-WindowOpenDisposition NavigationPolicyToDisposition(
- WebKit::WebNavigationPolicy policy) {
- switch (policy) {
- case WebKit::WebNavigationPolicyIgnore:
- return IGNORE_ACTION;
- case WebKit::WebNavigationPolicyDownload:
- return SAVE_TO_DISK;
- case WebKit::WebNavigationPolicyCurrentTab:
- return CURRENT_TAB;
- case WebKit::WebNavigationPolicyNewBackgroundTab:
- return NEW_BACKGROUND_TAB;
- case WebKit::WebNavigationPolicyNewForegroundTab:
- return NEW_FOREGROUND_TAB;
- case WebKit::WebNavigationPolicyNewWindow:
- return NEW_WINDOW;
- case WebKit::WebNavigationPolicyNewPopup:
- return NEW_POPUP;
- default:
- NOTREACHED() << "Unexpected WebNavigationPolicy";
- return IGNORE_ACTION;
- }
-}
« no previous file with comments | « webkit/glue/window_open_disposition.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698