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

Side by Side Diff: chrome/browser/ui/browser_navigator_params.cc

Issue 1560503002: Removing the code added to make chrome compile on Aura Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo delete of aura_android.gni - will delete in a separate CL. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ui/browser_navigator_params.h" 5 #include "chrome/browser/ui/browser_navigator_params.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "content/public/browser/navigation_controller.h" 9 #include "content/public/browser/navigation_controller.h"
10 #include "content/public/browser/page_navigator.h" 10 #include "content/public/browser/page_navigator.h"
11 11
12 #if !defined(OS_ANDROID) || defined(USE_AURA) 12 #if !defined(OS_ANDROID)
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/host_desktop.h" 14 #include "chrome/browser/ui/host_desktop.h"
15 #endif 15 #endif
16 16
17 using content::GlobalRequestID; 17 using content::GlobalRequestID;
18 using content::NavigationController; 18 using content::NavigationController;
19 using content::WebContents; 19 using content::WebContents;
20 20
21 namespace chrome { 21 namespace chrome {
22 22
23 #if !defined(OS_ANDROID) || defined(USE_AURA) 23 #if !defined(OS_ANDROID)
24 namespace { 24 namespace {
25 25
26 HostDesktopType GetHostDesktop(Browser* browser) { 26 HostDesktopType GetHostDesktop(Browser* browser) {
27 if (browser) 27 if (browser)
28 return browser->host_desktop_type(); 28 return browser->host_desktop_type();
29 return GetActiveDesktop(); 29 return GetActiveDesktop();
30 } 30 }
31 31
32 } // namespace 32 } // namespace
33 #endif 33 #endif
(...skipping 12 matching lines...) Expand all
46 tabstrip_add_types(TabStripModel::ADD_ACTIVE), 46 tabstrip_add_types(TabStripModel::ADD_ACTIVE),
47 window_action(NO_ACTION), 47 window_action(NO_ACTION),
48 user_gesture(true), 48 user_gesture(true),
49 path_behavior(RESPECT), 49 path_behavior(RESPECT),
50 ref_behavior(IGNORE_REF), 50 ref_behavior(IGNORE_REF),
51 initiating_profile(nullptr), 51 initiating_profile(nullptr),
52 host_desktop_type(GetActiveDesktop()), 52 host_desktop_type(GetActiveDesktop()),
53 should_replace_current_entry(false), 53 should_replace_current_entry(false),
54 created_with_opener(false) { 54 created_with_opener(false) {
55 } 55 }
56 #endif // defined(OS_ANDROID) 56 #else
57
58 #if !defined(OS_ANDROID) || defined(USE_AURA)
59 NavigateParams::NavigateParams(Browser* a_browser, 57 NavigateParams::NavigateParams(Browser* a_browser,
60 const GURL& a_url, 58 const GURL& a_url,
61 ui::PageTransition a_transition) 59 ui::PageTransition a_transition)
62 : url(a_url), 60 : url(a_url),
63 frame_tree_node_id(-1), 61 frame_tree_node_id(-1),
64 uses_post(false), 62 uses_post(false),
65 target_contents(NULL), 63 target_contents(NULL),
66 source_contents(NULL), 64 source_contents(NULL),
67 disposition(CURRENT_TAB), 65 disposition(CURRENT_TAB),
68 trusted_source(false), 66 trusted_source(false),
(...skipping 27 matching lines...) Expand all
96 window_action(NO_ACTION), 94 window_action(NO_ACTION),
97 user_gesture(true), 95 user_gesture(true),
98 path_behavior(RESPECT), 96 path_behavior(RESPECT),
99 ref_behavior(IGNORE_REF), 97 ref_behavior(IGNORE_REF),
100 browser(a_browser), 98 browser(a_browser),
101 initiating_profile(NULL), 99 initiating_profile(NULL),
102 host_desktop_type(GetHostDesktop(a_browser)), 100 host_desktop_type(GetHostDesktop(a_browser)),
103 should_replace_current_entry(false), 101 should_replace_current_entry(false),
104 created_with_opener(false) { 102 created_with_opener(false) {
105 } 103 }
106 #endif // !defined(OS_ANDROID) || defined(USE_AURA) 104 #endif // !defined(OS_ANDROID)
107 105
108 NavigateParams::NavigateParams(Profile* a_profile, 106 NavigateParams::NavigateParams(Profile* a_profile,
109 const GURL& a_url, 107 const GURL& a_url,
110 ui::PageTransition a_transition) 108 ui::PageTransition a_transition)
111 : url(a_url), 109 : url(a_url),
112 frame_tree_node_id(-1), 110 frame_tree_node_id(-1),
113 uses_post(false), 111 uses_post(false),
114 target_contents(NULL), 112 target_contents(NULL),
115 source_contents(NULL), 113 source_contents(NULL),
116 disposition(NEW_FOREGROUND_TAB), 114 disposition(NEW_FOREGROUND_TAB),
117 trusted_source(false), 115 trusted_source(false),
118 transition(a_transition), 116 transition(a_transition),
119 is_renderer_initiated(false), 117 is_renderer_initiated(false),
120 tabstrip_index(-1), 118 tabstrip_index(-1),
121 tabstrip_add_types(TabStripModel::ADD_ACTIVE), 119 tabstrip_add_types(TabStripModel::ADD_ACTIVE),
122 window_action(SHOW_WINDOW), 120 window_action(SHOW_WINDOW),
123 user_gesture(true), 121 user_gesture(true),
124 path_behavior(RESPECT), 122 path_behavior(RESPECT),
125 ref_behavior(IGNORE_REF), 123 ref_behavior(IGNORE_REF),
126 #if !defined(OS_ANDROID) || defined(USE_AURA) 124 #if !defined(OS_ANDROID)
127 browser(NULL), 125 browser(NULL),
128 #endif 126 #endif
129 initiating_profile(a_profile), 127 initiating_profile(a_profile),
130 host_desktop_type(GetActiveDesktop()), 128 host_desktop_type(GetActiveDesktop()),
131 should_replace_current_entry(false), 129 should_replace_current_entry(false),
132 created_with_opener(false) { 130 created_with_opener(false) {
133 } 131 }
134 132
135 NavigateParams::~NavigateParams() {} 133 NavigateParams::~NavigateParams() {}
136 134
137 void FillNavigateParamsFromOpenURLParams(NavigateParams* nav_params, 135 void FillNavigateParamsFromOpenURLParams(NavigateParams* nav_params,
138 const content::OpenURLParams& params) { 136 const content::OpenURLParams& params) {
139 nav_params->referrer = params.referrer; 137 nav_params->referrer = params.referrer;
140 nav_params->source_site_instance = params.source_site_instance; 138 nav_params->source_site_instance = params.source_site_instance;
141 nav_params->frame_tree_node_id = params.frame_tree_node_id; 139 nav_params->frame_tree_node_id = params.frame_tree_node_id;
142 nav_params->redirect_chain = params.redirect_chain; 140 nav_params->redirect_chain = params.redirect_chain;
143 nav_params->extra_headers = params.extra_headers; 141 nav_params->extra_headers = params.extra_headers;
144 nav_params->disposition = params.disposition; 142 nav_params->disposition = params.disposition;
145 nav_params->trusted_source = false; 143 nav_params->trusted_source = false;
146 nav_params->is_renderer_initiated = params.is_renderer_initiated; 144 nav_params->is_renderer_initiated = params.is_renderer_initiated;
147 nav_params->should_replace_current_entry = 145 nav_params->should_replace_current_entry =
148 params.should_replace_current_entry; 146 params.should_replace_current_entry;
149 nav_params->uses_post = params.uses_post; 147 nav_params->uses_post = params.uses_post;
150 nav_params->browser_initiated_post_data = params.browser_initiated_post_data; 148 nav_params->browser_initiated_post_data = params.browser_initiated_post_data;
151 } 149 }
152 150
153 } // namespace chrome 151 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_params.h ('k') | chrome/browser/ui/views/frame/browser_frame_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698