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

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

Issue 547593002: Add ShellAppsClient, ShellAppDelegate, ShellNativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Add missing virtual Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "extensions/shell/browser/shell_app_delegate.h"
6
7 #include "extensions/common/constants.h"
8 #include "extensions/shell/browser/media_capture_util.h"
9
10 namespace extensions {
11
12 ShellAppDelegate::ShellAppDelegate() {
13 }
14
15 ShellAppDelegate::~ShellAppDelegate() {
16 }
17
18 void ShellAppDelegate::InitWebContents(content::WebContents* web_contents) {
19 }
20
21 void ShellAppDelegate::ResizeWebContents(content::WebContents* web_contents,
22 const gfx::Size& size) {
23 NOTIMPLEMENTED();
24 }
25
26 content::WebContents* ShellAppDelegate::OpenURLFromTab(
27 content::BrowserContext* context,
28 content::WebContents* source,
29 const content::OpenURLParams& params) {
30 NOTIMPLEMENTED();
31 return NULL;
32 }
33
34 void ShellAppDelegate::AddNewContents(content::BrowserContext* context,
35 content::WebContents* new_contents,
36 WindowOpenDisposition disposition,
37 const gfx::Rect& initial_pos,
38 bool user_gesture,
39 bool* was_blocked) {
40 NOTIMPLEMENTED();
41 }
42
43 content::ColorChooser* ShellAppDelegate::ShowColorChooser(
44 content::WebContents* web_contents,
45 SkColor initial_color) {
46 NOTIMPLEMENTED();
47 return NULL;
48 }
49
50 void ShellAppDelegate::RunFileChooser(
51 content::WebContents* tab,
52 const content::FileChooserParams& params) {
53 NOTIMPLEMENTED();
54 }
55
56 void ShellAppDelegate::RequestMediaAccessPermission(
57 content::WebContents* web_contents,
58 const content::MediaStreamRequest& request,
59 const content::MediaResponseCallback& callback,
60 const extensions::Extension* extension) {
61 media_capture_util::GrantMediaStreamRequest(
62 web_contents, request, callback, extension);
63 }
64
65 int ShellAppDelegate::PreferredIconSize() {
66 return extension_misc::EXTENSION_ICON_SMALL;
67 }
68
69 gfx::ImageSkia ShellAppDelegate::GetAppDefaultIcon() {
70 NOTIMPLEMENTED();
71 return gfx::ImageSkia();
72 }
73
74 void ShellAppDelegate::SetWebContentsBlocked(
75 content::WebContents* web_contents,
76 bool blocked) {
77 NOTIMPLEMENTED();
78 }
79
80 bool ShellAppDelegate::IsWebContentsVisible(
81 content::WebContents* web_contents) {
82 return true;
83 }
84
85 void ShellAppDelegate::SetTerminatingCallback(const base::Closure& callback) {
86 NOTIMPLEMENTED();
87 }
88
89 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_delegate.h ('k') | extensions/shell/browser/shell_apps_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698