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

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

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
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 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Called when a file selection is to be done. 303 // Called when a file selection is to be done.
304 virtual void RunFileChooser(TabContents* tab, 304 virtual void RunFileChooser(TabContents* tab,
305 const ViewHostMsg_RunFileChooser_Params& params); 305 const ViewHostMsg_RunFileChooser_Params& params);
306 306
307 // Request to enumerate a directory. This is equivalent to running the file 307 // Request to enumerate a directory. This is equivalent to running the file
308 // chooser in directory-enumeration mode and having the user select the given 308 // chooser in directory-enumeration mode and having the user select the given
309 // directory. 309 // directory.
310 virtual void EnumerateDirectory(TabContents* tab, int request_id, 310 virtual void EnumerateDirectory(TabContents* tab, int request_id,
311 const FilePath& path); 311 const FilePath& path);
312 312
313 // Called when the renderer puts a tab into or out of fullscreen mode.
314 virtual void ToggleFullscreenModeForTab(TabContents* tab,
315 bool enter_fullscreen);
316
313 protected: 317 protected:
314 virtual ~TabContentsDelegate(); 318 virtual ~TabContentsDelegate();
315 319
316 private: 320 private:
317 friend class TabContents; 321 friend class TabContents;
318 322
319 // Called when |this| becomes the TabContentsDelegate for |source|. 323 // Called when |this| becomes the TabContentsDelegate for |source|.
320 void Attach(TabContents* source); 324 void Attach(TabContents* source);
321 325
322 // Called when |this| is no longer the TabContentsDelegate for |source|. 326 // Called when |this| is no longer the TabContentsDelegate for |source|.
323 void Detach(TabContents* source); 327 void Detach(TabContents* source);
324 328
325 // The TabContents that this is currently a delegate for. 329 // The TabContents that this is currently a delegate for.
326 std::set<TabContents*> attached_contents_; 330 std::set<TabContents*> attached_contents_;
327 }; 331 };
328 332
329 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 333 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698