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

Side by Side Diff: chromecast/browser/android/cast_window_android.cc

Issue 889403004: Rename initial_pos to initial_rect in ShowWidget and ShowView IPCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 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
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
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
OLDNEW
« no previous file with comments | « chromecast/browser/android/cast_window_android.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698