Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 7461059: Fullscreen JS API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::ToggleFullscreenModeForRVH(TabContents* tab,
276 bool enter_fullscreen) {
277 }
278
275 TabContentsDelegate::~TabContentsDelegate() { 279 TabContentsDelegate::~TabContentsDelegate() {
276 while (!attached_contents_.empty()) { 280 while (!attached_contents_.empty()) {
277 TabContents* tab_contents = *attached_contents_.begin(); 281 TabContents* tab_contents = *attached_contents_.begin();
278 tab_contents->set_delegate(NULL); 282 tab_contents->set_delegate(NULL);
279 } 283 }
280 DCHECK(attached_contents_.empty()); 284 DCHECK(attached_contents_.empty());
281 } 285 }
282 286
283 void TabContentsDelegate::Attach(TabContents* tab_contents) { 287 void TabContentsDelegate::Attach(TabContents* tab_contents) {
284 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); 288 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
285 attached_contents_.insert(tab_contents); 289 attached_contents_.insert(tab_contents);
286 } 290 }
287 291
288 void TabContentsDelegate::Detach(TabContents* tab_contents) { 292 void TabContentsDelegate::Detach(TabContents* tab_contents) {
289 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 293 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
290 attached_contents_.erase(tab_contents); 294 attached_contents_.erase(tab_contents);
291 } 295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698