Chromium Code Reviews| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { | 138 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { |
| 139 return NULL; | 139 return NULL; |
| 140 } | 140 } |
| 141 | 141 |
| 142 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 142 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
| 143 const WebContents* web_contents) const { | 143 const WebContents* web_contents) const { |
| 144 return false; | 144 return false; |
| 145 } | 145 } |
| 146 | 146 |
| 147 content::ColorChooser* WebContentsDelegate::OpenColorChooser( | 147 content::ColorChooser* WebContentsDelegate::OpenColorChooser( |
| 148 WebContents* web_contents, SkColor color) { | 148 WebContents* web_contents, |
|
newt (away)
2013/08/19 23:18:19
indented too far
keishi
2013/08/26 05:28:54
Done.
| |
| 149 SkColor color, | |
| 150 const std::vector<SkColor>& suggestions, | |
| 151 const std::vector<string16>& suggestion_labels) { | |
| 149 return NULL; | 152 return NULL; |
| 150 } | 153 } |
| 151 | 154 |
| 152 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 155 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
| 153 WebContents* web_contents, | 156 WebContents* web_contents, |
| 154 const GURL& url, | 157 const GURL& url, |
| 155 const base::FilePath& plugin_path, | 158 const base::FilePath& plugin_path, |
| 156 const base::Callback<void(bool)>& callback) { | 159 const base::Callback<void(bool)>& callback) { |
| 157 return false; | 160 return false; |
| 158 } | 161 } |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 169 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); | 172 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); |
| 170 attached_contents_.insert(web_contents); | 173 attached_contents_.insert(web_contents); |
| 171 } | 174 } |
| 172 | 175 |
| 173 void WebContentsDelegate::Detach(WebContents* web_contents) { | 176 void WebContentsDelegate::Detach(WebContents* web_contents) { |
| 174 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 177 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
| 175 attached_contents_.erase(web_contents); | 178 attached_contents_.erase(web_contents); |
| 176 } | 179 } |
| 177 | 180 |
| 178 } // namespace content | 181 } // namespace content |
| OLD | NEW |