OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/browser/android/cast_window_android.h" | 5 #include "chromecast/browser/android/cast_window_android.h" |
6 | 6 |
7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
8 #include "chromecast/browser/android/cast_window_manager.h" | 8 #include "chromecast/browser/android/cast_window_manager.h" |
9 #include "content/public/browser/devtools_agent_host.h" | 9 #include "content/public/browser/devtools_agent_host.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 params.transition_type = ui::PageTransitionFromInt( | 100 params.transition_type = ui::PageTransitionFromInt( |
101 ui::PAGE_TRANSITION_TYPED | | 101 ui::PAGE_TRANSITION_TYPED | |
102 ui::PAGE_TRANSITION_FROM_ADDRESS_BAR); | 102 ui::PAGE_TRANSITION_FROM_ADDRESS_BAR); |
103 web_contents_->GetController().LoadURLWithParams(params); | 103 web_contents_->GetController().LoadURLWithParams(params); |
104 web_contents_->Focus(); | 104 web_contents_->Focus(); |
105 } | 105 } |
106 | 106 |
107 void CastWindowAndroid::AddNewContents(content::WebContents* source, | 107 void CastWindowAndroid::AddNewContents(content::WebContents* source, |
108 content::WebContents* new_contents, | 108 content::WebContents* new_contents, |
109 WindowOpenDisposition disposition, | 109 WindowOpenDisposition disposition, |
110 const gfx::Rect& initial_pos, | 110 const gfx::Rect& initial_rect, |
111 bool user_gesture, | 111 bool user_gesture, |
112 bool* was_blocked) { | 112 bool* was_blocked) { |
113 NOTIMPLEMENTED(); | 113 NOTIMPLEMENTED(); |
114 if (was_blocked) { | 114 if (was_blocked) { |
115 *was_blocked = true; | 115 *was_blocked = true; |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 void CastWindowAndroid::CloseContents(content::WebContents* source) { | 119 void CastWindowAndroid::CloseContents(content::WebContents* source) { |
120 DCHECK_EQ(source, web_contents_.get()); | 120 DCHECK_EQ(source, web_contents_.get()); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 contents->GetRenderViewHost()->Blur(); | 165 contents->GetRenderViewHost()->Blur(); |
166 } | 166 } |
167 | 167 |
168 void CastWindowAndroid::RenderProcessGone(base::TerminationStatus status) { | 168 void CastWindowAndroid::RenderProcessGone(base::TerminationStatus status) { |
169 LOG(ERROR) << "Render process gone: status=" << status; | 169 LOG(ERROR) << "Render process gone: status=" << status; |
170 Destroy(); | 170 Destroy(); |
171 } | 171 } |
172 | 172 |
173 } // namespace shell | 173 } // namespace shell |
174 } // namespace chromecast | 174 } // namespace chromecast |
OLD | NEW |