| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/browser/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 WebContents* web_contents, | 157 WebContents* web_contents, |
| 158 SkColor color, | 158 SkColor color, |
| 159 const std::vector<ColorSuggestion>& suggestions) { | 159 const std::vector<ColorSuggestion>& suggestions) { |
| 160 return NULL; | 160 return NULL; |
| 161 } | 161 } |
| 162 | 162 |
| 163 void WebContentsDelegate::RequestMediaAccessPermission( | 163 void WebContentsDelegate::RequestMediaAccessPermission( |
| 164 WebContents* web_contents, | 164 WebContents* web_contents, |
| 165 const MediaStreamRequest& request, | 165 const MediaStreamRequest& request, |
| 166 const MediaResponseCallback& callback) { | 166 const MediaResponseCallback& callback) { |
| 167 NOTREACHED(); |
| 167 callback.Run(MediaStreamDevices(), | 168 callback.Run(MediaStreamDevices(), |
| 168 MEDIA_DEVICE_INVALID_STATE, | 169 MEDIA_DEVICE_INVALID_STATE, |
| 169 scoped_ptr<MediaStreamUI>()); | 170 scoped_ptr<MediaStreamUI>()); |
| 170 } | 171 } |
| 171 | 172 |
| 172 bool WebContentsDelegate::CheckMediaAccessPermission( | 173 bool WebContentsDelegate::CheckMediaAccessPermission( |
| 173 WebContents* web_contents, | 174 WebContents* web_contents, |
| 174 const GURL& security_origin, | 175 const GURL& security_origin, |
| 175 MediaStreamType type) { | 176 MediaStreamType type) { |
| 176 DCHECK(type == MEDIA_DEVICE_AUDIO_CAPTURE || | 177 NOTREACHED(); |
| 177 type == MEDIA_DEVICE_VIDEO_CAPTURE); | |
| 178 return false; | 178 return false; |
| 179 } | 179 } |
| 180 | 180 |
| 181 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 181 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
| 182 WebContents* web_contents, | 182 WebContents* web_contents, |
| 183 const GURL& url, | 183 const GURL& url, |
| 184 const base::FilePath& plugin_path, | 184 const base::FilePath& plugin_path, |
| 185 const base::Callback<void(bool)>& callback) { | 185 const base::Callback<void(bool)>& callback) { |
| 186 return false; | 186 return false; |
| 187 } | 187 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 207 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 207 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 208 WebContents* web_contents) const { | 208 WebContents* web_contents) const { |
| 209 return gfx::Size(); | 209 return gfx::Size(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { | 212 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 213 return false; | 213 return false; |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace content | 216 } // namespace content |
| OLD | NEW |