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

Side by Side Diff: apps/custom_launcher_page_contents.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 "apps/custom_launcher_page_contents.h" 5 #include "apps/custom_launcher_page_contents.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 10 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 content::WebContents* source, 64 content::WebContents* source,
65 const content::OpenURLParams& params) { 65 const content::OpenURLParams& params) {
66 DCHECK_EQ(web_contents_.get(), source); 66 DCHECK_EQ(web_contents_.get(), source);
67 return helper_->OpenURLFromTab(params); 67 return helper_->OpenURLFromTab(params);
68 } 68 }
69 69
70 void CustomLauncherPageContents::AddNewContents( 70 void CustomLauncherPageContents::AddNewContents(
71 content::WebContents* source, 71 content::WebContents* source,
72 content::WebContents* new_contents, 72 content::WebContents* new_contents,
73 WindowOpenDisposition disposition, 73 WindowOpenDisposition disposition,
74 const gfx::Rect& initial_pos, 74 const gfx::Rect& initial_rect,
75 bool user_gesture, 75 bool user_gesture,
76 bool* was_blocked) { 76 bool* was_blocked) {
77 app_delegate_->AddNewContents(new_contents->GetBrowserContext(), 77 app_delegate_->AddNewContents(new_contents->GetBrowserContext(),
78 new_contents, 78 new_contents,
79 disposition, 79 disposition,
80 initial_pos, 80 initial_rect,
81 user_gesture, 81 user_gesture,
82 was_blocked); 82 was_blocked);
83 } 83 }
84 84
85 bool CustomLauncherPageContents::IsPopupOrPanel( 85 bool CustomLauncherPageContents::IsPopupOrPanel(
86 const content::WebContents* source) const { 86 const content::WebContents* source) const {
87 return true; 87 return true;
88 } 88 }
89 89
90 bool CustomLauncherPageContents::ShouldSuppressDialogs( 90 bool CustomLauncherPageContents::ShouldSuppressDialogs(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return web_contents(); 155 return web_contents();
156 } 156 }
157 157
158 void CustomLauncherPageContents::OnRequest( 158 void CustomLauncherPageContents::OnRequest(
159 const ExtensionHostMsg_Request_Params& params) { 159 const ExtensionHostMsg_Request_Params& params) {
160 extension_function_dispatcher_->Dispatch(params, 160 extension_function_dispatcher_->Dispatch(params,
161 web_contents_->GetRenderViewHost()); 161 web_contents_->GetRenderViewHost());
162 } 162 }
163 163
164 } // namespace apps 164 } // namespace apps
OLDNEW
« no previous file with comments | « apps/custom_launcher_page_contents.h ('k') | chrome/browser/android/chrome_web_contents_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698