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

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

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 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_APP_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "extensions/browser/app_window/app_delegate.h" 10 #include "extensions/browser/app_window/app_delegate.h"
(...skipping 17 matching lines...) Expand all
28 content::WebContents* source, 28 content::WebContents* source,
29 const content::OpenURLParams& params) override; 29 const content::OpenURLParams& params) override;
30 void AddNewContents(content::BrowserContext* context, 30 void AddNewContents(content::BrowserContext* context,
31 content::WebContents* new_contents, 31 content::WebContents* new_contents,
32 WindowOpenDisposition disposition, 32 WindowOpenDisposition disposition,
33 const gfx::Rect& initial_rect, 33 const gfx::Rect& initial_rect,
34 bool user_gesture, 34 bool user_gesture,
35 bool* was_blocked) override; 35 bool* was_blocked) override;
36 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, 36 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
37 SkColor initial_color) override; 37 SkColor initial_color) override;
38 void RunFileChooser(content::WebContents* tab, 38 void RunFileChooser(content::RenderFrameHost* render_frame_host,
39 const content::FileChooserParams& params) override; 39 const content::FileChooserParams& params) override;
40 void RequestMediaAccessPermission( 40 void RequestMediaAccessPermission(
41 content::WebContents* web_contents, 41 content::WebContents* web_contents,
42 const content::MediaStreamRequest& request, 42 const content::MediaStreamRequest& request,
43 const content::MediaResponseCallback& callback, 43 const content::MediaResponseCallback& callback,
44 const Extension* extension) override; 44 const Extension* extension) override;
45 bool CheckMediaAccessPermission(content::WebContents* web_contents, 45 bool CheckMediaAccessPermission(content::WebContents* web_contents,
46 const GURL& security_origin, 46 const GURL& security_origin,
47 content::MediaStreamType type, 47 content::MediaStreamType type,
48 const Extension* extension) override; 48 const Extension* extension) override;
49 int PreferredIconSize() override; 49 int PreferredIconSize() override;
50 void SetWebContentsBlocked(content::WebContents* web_contents, 50 void SetWebContentsBlocked(content::WebContents* web_contents,
51 bool blocked) override; 51 bool blocked) override;
52 bool IsWebContentsVisible(content::WebContents* web_contents) override; 52 bool IsWebContentsVisible(content::WebContents* web_contents) override;
53 void SetTerminatingCallback(const base::Closure& callback) override; 53 void SetTerminatingCallback(const base::Closure& callback) override;
54 void OnHide() override {} 54 void OnHide() override {}
55 void OnShow() override {} 55 void OnShow() override {}
56 56
57 private: 57 private:
58 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); 58 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate);
59 }; 59 };
60 60
61 } // namespace extensions 61 } // namespace extensions
62 62
63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ 63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/shell/browser/shell_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698