Chromium Code Reviews| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 265 } | 265 } |
| 266 private: | 266 private: |
| 267 friend struct DefaultSingletonTraits<JavaScriptDialogCreatorStub>; | 267 friend struct DefaultSingletonTraits<JavaScriptDialogCreatorStub>; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 content::JavaScriptDialogCreator* | 270 content::JavaScriptDialogCreator* |
| 271 TabContentsDelegate::GetJavaScriptDialogCreator() { | 271 TabContentsDelegate::GetJavaScriptDialogCreator() { |
| 272 return JavaScriptDialogCreatorStub::GetInstance(); | 272 return JavaScriptDialogCreatorStub::GetInstance(); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void TabContentsDelegate::EnterFullscreenMode() { | |
|
scherkus (not reviewing)
2011/07/28 22:43:08
NOTIMPLEMENTED ?
sky
2011/07/28 22:45:38
See other empty implementations in this class. Fol
| |
| 276 } | |
| 277 | |
| 278 void TabContentsDelegate::ExitFullscreenMode() { | |
| 279 } | |
| 280 | |
| 275 TabContentsDelegate::~TabContentsDelegate() { | 281 TabContentsDelegate::~TabContentsDelegate() { |
| 276 while (!attached_contents_.empty()) { | 282 while (!attached_contents_.empty()) { |
| 277 TabContents* tab_contents = *attached_contents_.begin(); | 283 TabContents* tab_contents = *attached_contents_.begin(); |
| 278 tab_contents->set_delegate(NULL); | 284 tab_contents->set_delegate(NULL); |
| 279 } | 285 } |
| 280 DCHECK(attached_contents_.empty()); | 286 DCHECK(attached_contents_.empty()); |
| 281 } | 287 } |
| 282 | 288 |
| 283 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 289 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
| 284 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 290 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
| 285 attached_contents_.insert(tab_contents); | 291 attached_contents_.insert(tab_contents); |
| 286 } | 292 } |
| 287 | 293 |
| 288 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 294 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| 289 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 295 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| 290 attached_contents_.erase(tab_contents); | 296 attached_contents_.erase(tab_contents); |
| 291 } | 297 } |
| OLD | NEW |