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

Side by Side Diff: extensions/shell/browser/shell_extension_host_delegate.h

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 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/extension_host_delegate.h" 9 #include "extensions/browser/extension_host_delegate.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // A minimal ExtensionHostDelegate. 13 // A minimal ExtensionHostDelegate.
14 class ShellExtensionHostDelegate : public ExtensionHostDelegate { 14 class ShellExtensionHostDelegate : public ExtensionHostDelegate {
15 public: 15 public:
16 ShellExtensionHostDelegate(); 16 ShellExtensionHostDelegate();
17 ~ShellExtensionHostDelegate() override; 17 ~ShellExtensionHostDelegate() override;
18 18
19 // ExtensionHostDelegate implementation. 19 // ExtensionHostDelegate implementation.
20 void OnExtensionHostCreated(content::WebContents* web_contents) override; 20 void OnExtensionHostCreated(content::WebContents* web_contents) override;
21 void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) override; 21 void OnRenderViewCreatedForBackgroundPage(ExtensionHost* host) override;
22 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; 22 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override;
23 void CreateTab(content::WebContents* web_contents, 23 void CreateTab(content::WebContents* web_contents,
24 const std::string& extension_id, 24 const std::string& extension_id,
25 WindowOpenDisposition disposition, 25 WindowOpenDisposition disposition,
26 const gfx::Rect& initial_pos, 26 const gfx::Rect& initial_rect,
27 bool user_gesture) override; 27 bool user_gesture) override;
28 void ProcessMediaAccessRequest(content::WebContents* web_contents, 28 void ProcessMediaAccessRequest(content::WebContents* web_contents,
29 const content::MediaStreamRequest& request, 29 const content::MediaStreamRequest& request,
30 const content::MediaResponseCallback& callback, 30 const content::MediaResponseCallback& callback,
31 const Extension* extension) override; 31 const Extension* extension) override;
32 bool CheckMediaAccessPermission(content::WebContents* web_contents, 32 bool CheckMediaAccessPermission(content::WebContents* web_contents,
33 const GURL& security_origin, 33 const GURL& security_origin,
34 content::MediaStreamType type, 34 content::MediaStreamType type,
35 const Extension* extension) override; 35 const Extension* extension) override;
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(ShellExtensionHostDelegate); 38 DISALLOW_COPY_AND_ASSIGN(ShellExtensionHostDelegate);
39 }; 39 };
40 40
41 } // namespace extensions 41 } // namespace extensions
42 42
43 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_ 43 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_delegate.cc ('k') | extensions/shell/browser/shell_extension_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698