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

Side by Side Diff: chrome/browser/extensions/chrome_extension_host_delegate.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 "chrome/browser/extensions/chrome_extension_host_delegate.h" 5 #include "chrome/browser/extensions/chrome_extension_host_delegate.h"
6 6
7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 7 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_tab_util.h" 9 #include "chrome/browser/extensions/extension_tab_util.h"
10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 10 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 content::JavaScriptDialogManager* 36 content::JavaScriptDialogManager*
37 ChromeExtensionHostDelegate::GetJavaScriptDialogManager() { 37 ChromeExtensionHostDelegate::GetJavaScriptDialogManager() {
38 return app_modal::JavaScriptDialogManager::GetInstance(); 38 return app_modal::JavaScriptDialogManager::GetInstance();
39 } 39 }
40 40
41 void ChromeExtensionHostDelegate::CreateTab(content::WebContents* web_contents, 41 void ChromeExtensionHostDelegate::CreateTab(content::WebContents* web_contents,
42 const std::string& extension_id, 42 const std::string& extension_id,
43 WindowOpenDisposition disposition, 43 WindowOpenDisposition disposition,
44 const gfx::Rect& initial_pos, 44 const gfx::Rect& initial_rect,
45 bool user_gesture) { 45 bool user_gesture) {
46 ExtensionTabUtil::CreateTab( 46 ExtensionTabUtil::CreateTab(
47 web_contents, extension_id, disposition, initial_pos, user_gesture); 47 web_contents, extension_id, disposition, initial_rect, user_gesture);
48 } 48 }
49 49
50 void ChromeExtensionHostDelegate::ProcessMediaAccessRequest( 50 void ChromeExtensionHostDelegate::ProcessMediaAccessRequest(
51 content::WebContents* web_contents, 51 content::WebContents* web_contents,
52 const content::MediaStreamRequest& request, 52 const content::MediaStreamRequest& request,
53 const content::MediaResponseCallback& callback, 53 const content::MediaResponseCallback& callback,
54 const Extension* extension) { 54 const Extension* extension) {
55 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( 55 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest(
56 web_contents, request, callback, extension); 56 web_contents, request, callback, extension);
57 } 57 }
58 58
59 bool ChromeExtensionHostDelegate::CheckMediaAccessPermission( 59 bool ChromeExtensionHostDelegate::CheckMediaAccessPermission(
60 content::WebContents* web_contents, 60 content::WebContents* web_contents,
61 const GURL& security_origin, 61 const GURL& security_origin,
62 content::MediaStreamType type, 62 content::MediaStreamType type,
63 const Extension* extension) { 63 const Extension* extension) {
64 return MediaCaptureDevicesDispatcher::GetInstance() 64 return MediaCaptureDevicesDispatcher::GetInstance()
65 ->CheckMediaAccessPermission( 65 ->CheckMediaAccessPermission(
66 web_contents, security_origin, type, extension); 66 web_contents, security_origin, type, extension);
67 } 67 }
68 68
69 } // namespace extensions 69 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_extension_host_delegate.h ('k') | chrome/browser/extensions/extension_tab_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698