OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/tab_contents/tab_contents_delegate.h" | 5 #include "content/browser/tab_contents/tab_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/browser/javascript_dialogs.h" | 10 #include "content/browser/javascript_dialogs.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 287 } |
288 | 288 |
289 void TabContentsDelegate::EnumerateDirectory(TabContents* tab, int request_id, | 289 void TabContentsDelegate::EnumerateDirectory(TabContents* tab, int request_id, |
290 const FilePath& path) { | 290 const FilePath& path) { |
291 } | 291 } |
292 | 292 |
293 void TabContentsDelegate::ToggleFullscreenModeForTab(TabContents* tab, | 293 void TabContentsDelegate::ToggleFullscreenModeForTab(TabContents* tab, |
294 bool enter_fullscreen) { | 294 bool enter_fullscreen) { |
295 } | 295 } |
296 | 296 |
| 297 bool TabContentsDelegate::IsFullscreenForTab(const TabContents* tab) const { |
| 298 return false; |
| 299 } |
| 300 |
297 void TabContentsDelegate::JSOutOfMemory(TabContents* tab) { | 301 void TabContentsDelegate::JSOutOfMemory(TabContents* tab) { |
298 } | 302 } |
299 | 303 |
300 void TabContentsDelegate::RegisterProtocolHandler(TabContents* tab, | 304 void TabContentsDelegate::RegisterProtocolHandler(TabContents* tab, |
301 const std::string& protocol, | 305 const std::string& protocol, |
302 const GURL& url, | 306 const GURL& url, |
303 const string16& title) { | 307 const string16& title) { |
304 } | 308 } |
305 | 309 |
306 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, | 310 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 347 |
344 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 348 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
345 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 349 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
346 attached_contents_.insert(tab_contents); | 350 attached_contents_.insert(tab_contents); |
347 } | 351 } |
348 | 352 |
349 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 353 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
350 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 354 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
351 attached_contents_.erase(tab_contents); | 355 attached_contents_.erase(tab_contents); |
352 } | 356 } |
OLD | NEW |