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

Side by Side Diff: content/public/browser/page_navigator.cc

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/page_navigator.h" 5 #include "content/public/browser/page_navigator.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 OpenURLParams::OpenURLParams( 9 OpenURLParams::OpenURLParams(
10 const GURL& url, 10 const GURL& url,
(...skipping 26 matching lines...) Expand all
37 disposition(disposition), 37 disposition(disposition),
38 transition(transition), 38 transition(transition),
39 is_renderer_initiated(is_renderer_initiated), 39 is_renderer_initiated(is_renderer_initiated),
40 should_replace_current_entry(false), 40 should_replace_current_entry(false),
41 user_gesture(!is_renderer_initiated) { 41 user_gesture(!is_renderer_initiated) {
42 } 42 }
43 43
44 OpenURLParams::OpenURLParams() 44 OpenURLParams::OpenURLParams()
45 : uses_post(false), 45 : uses_post(false),
46 frame_tree_node_id(-1), 46 frame_tree_node_id(-1),
47 disposition(UNKNOWN), 47 disposition(WindowOpenDisposition::UNKNOWN),
48 transition(ui::PAGE_TRANSITION_LINK), 48 transition(ui::PAGE_TRANSITION_LINK),
49 is_renderer_initiated(false), 49 is_renderer_initiated(false),
50 should_replace_current_entry(false), 50 should_replace_current_entry(false),
51 user_gesture(true) { 51 user_gesture(true) {}
52 }
53 52
54 OpenURLParams::OpenURLParams(const OpenURLParams& other) = default; 53 OpenURLParams::OpenURLParams(const OpenURLParams& other) = default;
55 54
56 OpenURLParams::~OpenURLParams() { 55 OpenURLParams::~OpenURLParams() {
57 } 56 }
58 57
59 } // namespace content 58 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webui/generic_handler.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698