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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/window_open_disposition.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/glue/window_open_disposition.h"
6
7 #include "base/logging.h"
8
9 WindowOpenDisposition NavigationPolicyToDisposition(
10 WebKit::WebNavigationPolicy policy) {
11 switch (policy) {
12 case WebKit::WebNavigationPolicyIgnore:
13 return IGNORE_ACTION;
14 case WebKit::WebNavigationPolicyDownload:
15 return SAVE_TO_DISK;
16 case WebKit::WebNavigationPolicyCurrentTab:
17 return CURRENT_TAB;
18 case WebKit::WebNavigationPolicyNewBackgroundTab:
19 return NEW_BACKGROUND_TAB;
20 case WebKit::WebNavigationPolicyNewForegroundTab:
21 return NEW_FOREGROUND_TAB;
22 case WebKit::WebNavigationPolicyNewWindow:
23 return NEW_WINDOW;
24 case WebKit::WebNavigationPolicyNewPopup:
25 return NEW_POPUP;
26 default:
27 NOTREACHED() << "Unexpected WebNavigationPolicy";
28 return IGNORE_ACTION;
29 }
30 }
OLDNEW
« 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