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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { | 126 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { |
127 return NULL; | 127 return NULL; |
128 } | 128 } |
129 | 129 |
130 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 130 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
131 const WebContents* web_contents) const { | 131 const WebContents* web_contents) const { |
132 return false; | 132 return false; |
133 } | 133 } |
134 | 134 |
| 135 void WebContentsDelegate::RequestShowTopControls(WebContents* web_contents, |
| 136 bool show) { |
| 137 } |
| 138 |
135 content::ColorChooser* WebContentsDelegate::OpenColorChooser( | 139 content::ColorChooser* WebContentsDelegate::OpenColorChooser( |
136 WebContents* web_contents, | 140 WebContents* web_contents, |
137 int color_chooser_id, | 141 int color_chooser_id, |
138 SkColor color) { | 142 SkColor color) { |
139 return NULL; | 143 return NULL; |
140 } | 144 } |
141 | 145 |
142 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 146 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
143 WebContents* web_contents, | 147 WebContents* web_contents, |
144 const GURL& url, | 148 const GURL& url, |
(...skipping 14 matching lines...) Expand all Loading... |
159 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); | 163 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); |
160 attached_contents_.insert(web_contents); | 164 attached_contents_.insert(web_contents); |
161 } | 165 } |
162 | 166 |
163 void WebContentsDelegate::Detach(WebContents* web_contents) { | 167 void WebContentsDelegate::Detach(WebContents* web_contents) { |
164 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 168 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
165 attached_contents_.erase(web_contents); | 169 attached_contents_.erase(web_contents); |
166 } | 170 } |
167 | 171 |
168 } // namespace content | 172 } // namespace content |
OLD | NEW |