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

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: rebase 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
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 282
283 void TabContentsDelegate::RunFileChooser( 283 void TabContentsDelegate::RunFileChooser(
284 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params) { 284 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params) {
285 } 285 }
286 286
287 void TabContentsDelegate::EnumerateDirectory(TabContents* tab, int request_id, 287 void TabContentsDelegate::EnumerateDirectory(TabContents* tab, int request_id,
288 const FilePath& path) { 288 const FilePath& path) {
289 } 289 }
290 290
291 void TabContentsDelegate::ToggleFullscreenModeForTab(TabContents* tab,
292 bool enter_fullscreen) {
293 }
294
291 TabContentsDelegate::~TabContentsDelegate() { 295 TabContentsDelegate::~TabContentsDelegate() {
292 while (!attached_contents_.empty()) { 296 while (!attached_contents_.empty()) {
293 TabContents* tab_contents = *attached_contents_.begin(); 297 TabContents* tab_contents = *attached_contents_.begin();
294 tab_contents->set_delegate(NULL); 298 tab_contents->set_delegate(NULL);
295 } 299 }
296 DCHECK(attached_contents_.empty()); 300 DCHECK(attached_contents_.empty());
297 } 301 }
298 302
299 void TabContentsDelegate::Attach(TabContents* tab_contents) { 303 void TabContentsDelegate::Attach(TabContents* tab_contents) {
300 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); 304 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
301 attached_contents_.insert(tab_contents); 305 attached_contents_.insert(tab_contents);
302 } 306 }
303 307
304 void TabContentsDelegate::Detach(TabContents* tab_contents) { 308 void TabContentsDelegate::Detach(TabContents* tab_contents) {
305 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 309 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
306 attached_contents_.erase(tab_contents); 310 attached_contents_.erase(tab_contents);
307 } 311 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698