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

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: 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 #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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Invoked when navigating to a pending entry. When invoked the 282 // Invoked when navigating to a pending entry. When invoked the
283 // NavigationController has configured its pending entry, but it has not yet 283 // NavigationController has configured its pending entry, but it has not yet
284 // been committed. 284 // been committed.
285 virtual void DidNavigateToPendingEntry(TabContents* tab); 285 virtual void DidNavigateToPendingEntry(TabContents* tab);
286 286
287 // Returns a pointer to a service to create JavaScript dialogs. The default 287 // Returns a pointer to a service to create JavaScript dialogs. The default
288 // pointer returned is to a stub service that marks all dialogs as suppressed 288 // pointer returned is to a stub service that marks all dialogs as suppressed
289 // and displays nothing. 289 // and displays nothing.
290 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 290 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator();
291 291
292 // Puts the browser into fullscreen mode, focussing on this tab.
293 virtual void EnterFullscreenMode();
294
295 // Makes the browser exit fullscreen mode.
296 virtual void ExitFullscreenMode();
297
292 protected: 298 protected:
293 virtual ~TabContentsDelegate(); 299 virtual ~TabContentsDelegate();
294 300
295 private: 301 private:
296 friend class TabContents; 302 friend class TabContents;
297 303
298 // Called when |this| becomes the TabContentsDelegate for |source|. 304 // Called when |this| becomes the TabContentsDelegate for |source|.
299 void Attach(TabContents* source); 305 void Attach(TabContents* source);
300 306
301 // Called when |this| is no longer the TabContentsDelegate for |source|. 307 // Called when |this| is no longer the TabContentsDelegate for |source|.
302 void Detach(TabContents* source); 308 void Detach(TabContents* source);
303 309
304 // The TabContents that this is currently a delegate for. 310 // The TabContents that this is currently a delegate for.
305 std::set<TabContents*> attached_contents_; 311 std::set<TabContents*> attached_contents_;
306 }; 312 };
307 313
308 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 314 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698