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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win work Created 9 years, 2 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 CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove 31 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove
32 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h" 32 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
33 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 33 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
34 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" 34 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h"
35 #include "chrome/browser/ui/browser_navigator.h" 35 #include "chrome/browser/ui/browser_navigator.h"
36 #include "chrome/browser/ui/constrained_window_tab_helper_delegate.h" 36 #include "chrome/browser/ui/constrained_window_tab_helper_delegate.h"
37 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" 37 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
38 #include "chrome/browser/ui/shell_dialogs.h" 38 #include "chrome/browser/ui/shell_dialogs.h"
39 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" 39 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
40 #include "chrome/browser/ui/toolbar/toolbar_model.h" 40 #include "chrome/browser/ui/toolbar/toolbar_model.h"
41 #include "chrome/common/content_settings.h"
41 #include "chrome/common/content_settings_types.h" 42 #include "chrome/common/content_settings_types.h"
42 #include "chrome/common/extensions/extension_constants.h" 43 #include "chrome/common/extensions/extension_constants.h"
43 #include "content/browser/tab_contents/page_navigator.h" 44 #include "content/browser/tab_contents/page_navigator.h"
44 #include "content/browser/tab_contents/tab_contents_delegate.h" 45 #include "content/browser/tab_contents/tab_contents_delegate.h"
45 #include "content/common/notification_registrar.h" 46 #include "content/common/notification_registrar.h"
46 #include "content/common/page_transition_types.h" 47 #include "content/common/page_transition_types.h"
47 #include "content/common/page_zoom.h" 48 #include "content/common/page_zoom.h"
48 #include "ui/base/ui_base_types.h" 49 #include "ui/base/ui_base_types.h"
49 #include "ui/gfx/rect.h" 50 #include "ui/gfx/rect.h"
50 51
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 void SelectPreviousTab(); 507 void SelectPreviousTab();
507 void OpenTabpose(); 508 void OpenTabpose();
508 void MoveTabNext(); 509 void MoveTabNext();
509 void MoveTabPrevious(); 510 void MoveTabPrevious();
510 void SelectNumberedTab(int index); 511 void SelectNumberedTab(int index);
511 void SelectLastTab(); 512 void SelectLastTab();
512 void DuplicateTab(); 513 void DuplicateTab();
513 void WriteCurrentURLToClipboard(); 514 void WriteCurrentURLToClipboard();
514 void ConvertPopupToTabbedBrowser(); 515 void ConvertPopupToTabbedBrowser();
515 // In kiosk mode, the first toggle is valid, the rest is discarded. 516 // In kiosk mode, the first toggle is valid, the rest is discarded.
516 void ToggleFullscreenMode(); 517 void ToggleFullscreenMode(bool from_tab);
517 #if defined(OS_MACOSX) 518 #if defined(OS_MACOSX)
518 void TogglePresentationMode(); 519 void TogglePresentationMode(bool from_tab);
519 #endif 520 #endif
520 void Exit(); 521 void Exit();
521 #if defined(OS_CHROMEOS) 522 #if defined(OS_CHROMEOS)
522 void Search(); 523 void Search();
523 void ShowKeyboardOverlay(); 524 void ShowKeyboardOverlay();
524 #endif 525 #endif
525 526
526 // Page-related commands 527 // Page-related commands
527 void BookmarkCurrentPage(); 528 void BookmarkCurrentPage();
528 void SavePage(); 529 void SavePage();
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 virtual void TabMoved(TabContentsWrapper* contents, 815 virtual void TabMoved(TabContentsWrapper* contents,
815 int from_index, 816 int from_index,
816 int to_index); 817 int to_index);
817 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 818 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
818 TabContentsWrapper* old_contents, 819 TabContentsWrapper* old_contents,
819 TabContentsWrapper* new_contents, 820 TabContentsWrapper* new_contents,
820 int index); 821 int index);
821 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); 822 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index);
822 virtual void TabStripEmpty(); 823 virtual void TabStripEmpty();
823 824
825 // Fullscreen permission infobar callbacks.
826 void OnAcceptFullscreenPermission(const GURL& url);
827 void OnDenyFullscreenPermission();
828 ContentSetting GetFullscreenSetting(const GURL& url);
829
824 // Figure out if there are tabs that have beforeunload handlers. 830 // Figure out if there are tabs that have beforeunload handlers.
825 bool TabsNeedBeforeUnloadFired(); 831 bool TabsNeedBeforeUnloadFired();
826 832
827 bool is_type_tabbed() const { return type_ == TYPE_TABBED; } 833 bool is_type_tabbed() const { return type_ == TYPE_TABBED; }
828 bool is_type_popup() const { return type_ == TYPE_POPUP; } 834 bool is_type_popup() const { return type_ == TYPE_POPUP; }
829 bool is_type_panel() const { return type_ == TYPE_PANEL; } 835 bool is_type_panel() const { return type_ == TYPE_PANEL; }
830 836
831 bool is_app() const; 837 bool is_app() const;
832 bool is_devtools() const; 838 bool is_devtools() const;
833 839
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 // True if the current tab entered fullscreen mode via webkitRequestFullScreen 1428 // True if the current tab entered fullscreen mode via webkitRequestFullScreen
1423 bool tab_caused_fullscreen_; 1429 bool tab_caused_fullscreen_;
1424 1430
1425 // True if the browser window has been shown at least once. 1431 // True if the browser window has been shown at least once.
1426 bool window_has_shown_; 1432 bool window_has_shown_;
1427 1433
1428 DISALLOW_COPY_AND_ASSIGN(Browser); 1434 DISALLOW_COPY_AND_ASSIGN(Browser);
1429 }; 1435 };
1430 1436
1431 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1437 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698