OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 class SessionStorageNamespace; | 65 class SessionStorageNamespace; |
66 class SkBitmap; | 66 class SkBitmap; |
67 class StatusBubble; | 67 class StatusBubble; |
68 class TabNavigation; | 68 class TabNavigation; |
69 class TabStripModel; | 69 class TabStripModel; |
70 struct WebApplicationInfo; | 70 struct WebApplicationInfo; |
71 namespace gfx { | 71 namespace gfx { |
72 class Point; | 72 class Point; |
73 } | 73 } |
74 | 74 |
75 struct ViewHostMsg_RunFileChooser_Params; | |
76 | |
77 class Browser : public TabHandlerDelegate, | 75 class Browser : public TabHandlerDelegate, |
78 public TabContentsDelegate, | 76 public TabContentsDelegate, |
79 public TabContentsWrapperDelegate, | 77 public TabContentsWrapperDelegate, |
80 public SearchEngineTabHelperDelegate, | 78 public SearchEngineTabHelperDelegate, |
81 public ConstrainedWindowTabHelperDelegate, | 79 public ConstrainedWindowTabHelperDelegate, |
82 public BlockedContentTabHelperDelegate, | 80 public BlockedContentTabHelperDelegate, |
83 public BookmarkTabHelperDelegate, | 81 public BookmarkTabHelperDelegate, |
84 public PageNavigator, | 82 public PageNavigator, |
85 public CommandUpdater::CommandUpdaterDelegate, | 83 public CommandUpdater::CommandUpdaterDelegate, |
86 public content::NotificationObserver, | 84 public content::NotificationObserver, |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 667 |
670 // Retrieve the last active tabbed browser with a profile matching |profile|. | 668 // Retrieve the last active tabbed browser with a profile matching |profile|. |
671 static Browser* GetTabbedBrowser(Profile* profile, bool match_incognito); | 669 static Browser* GetTabbedBrowser(Profile* profile, bool match_incognito); |
672 | 670 |
673 // Retrieve the last active tabbed browser with a profile matching |profile|. | 671 // Retrieve the last active tabbed browser with a profile matching |profile|. |
674 // Creates a new Browser if none are available. | 672 // Creates a new Browser if none are available. |
675 static Browser* GetOrCreateTabbedBrowser(Profile* profile); | 673 static Browser* GetOrCreateTabbedBrowser(Profile* profile); |
676 | 674 |
677 // Helper function to display the file selection dialog. | 675 // Helper function to display the file selection dialog. |
678 static void RunFileChooserHelper( | 676 static void RunFileChooserHelper( |
679 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params); | 677 TabContents* tab, const content::FileChooserParams& params); |
680 | 678 |
681 // Helper function to enumerate a directory. | 679 // Helper function to enumerate a directory. |
682 static void EnumerateDirectoryHelper(TabContents* tab, int request_id, | 680 static void EnumerateDirectoryHelper(TabContents* tab, int request_id, |
683 const FilePath& path); | 681 const FilePath& path); |
684 | 682 |
685 // Helper function to handle JS out of memory notifications | 683 // Helper function to handle JS out of memory notifications |
686 static void JSOutOfMemoryHelper(TabContents* tab); | 684 static void JSOutOfMemoryHelper(TabContents* tab); |
687 | 685 |
688 // Helper function to register a protocol handler. | 686 // Helper function to register a protocol handler. |
689 static void RegisterProtocolHandlerHelper(TabContents* tab, | 687 static void RegisterProtocolHandlerHelper(TabContents* tab, |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 virtual void ContentRestrictionsChanged(TabContents* source) OVERRIDE; | 976 virtual void ContentRestrictionsChanged(TabContents* source) OVERRIDE; |
979 virtual void RendererUnresponsive(TabContents* source) OVERRIDE; | 977 virtual void RendererUnresponsive(TabContents* source) OVERRIDE; |
980 virtual void RendererResponsive(TabContents* source) OVERRIDE; | 978 virtual void RendererResponsive(TabContents* source) OVERRIDE; |
981 virtual void WorkerCrashed(TabContents* source) OVERRIDE; | 979 virtual void WorkerCrashed(TabContents* source) OVERRIDE; |
982 virtual void DidNavigateMainFramePostCommit(TabContents* tab) OVERRIDE; | 980 virtual void DidNavigateMainFramePostCommit(TabContents* tab) OVERRIDE; |
983 virtual void DidNavigateToPendingEntry(TabContents* tab) OVERRIDE; | 981 virtual void DidNavigateToPendingEntry(TabContents* tab) OVERRIDE; |
984 virtual content::JavaScriptDialogCreator* | 982 virtual content::JavaScriptDialogCreator* |
985 GetJavaScriptDialogCreator() OVERRIDE; | 983 GetJavaScriptDialogCreator() OVERRIDE; |
986 virtual void RunFileChooser( | 984 virtual void RunFileChooser( |
987 TabContents* tab, | 985 TabContents* tab, |
988 const ViewHostMsg_RunFileChooser_Params& params) OVERRIDE; | 986 const content::FileChooserParams& params) OVERRIDE; |
989 virtual void EnumerateDirectory(TabContents* tab, int request_id, | 987 virtual void EnumerateDirectory(TabContents* tab, int request_id, |
990 const FilePath& path) OVERRIDE; | 988 const FilePath& path) OVERRIDE; |
991 virtual void ToggleFullscreenModeForTab(TabContents* tab, | 989 virtual void ToggleFullscreenModeForTab(TabContents* tab, |
992 bool enter_fullscreen) OVERRIDE; | 990 bool enter_fullscreen) OVERRIDE; |
993 virtual bool IsFullscreenForTab(const TabContents* tab) const OVERRIDE; | 991 virtual bool IsFullscreenForTab(const TabContents* tab) const OVERRIDE; |
994 virtual void JSOutOfMemory(TabContents* tab) OVERRIDE; | 992 virtual void JSOutOfMemory(TabContents* tab) OVERRIDE; |
995 virtual void RegisterProtocolHandler(TabContents* tab, | 993 virtual void RegisterProtocolHandler(TabContents* tab, |
996 const std::string& protocol, | 994 const std::string& protocol, |
997 const GURL& url, | 995 const GURL& url, |
998 const string16& title) OVERRIDE; | 996 const string16& title) OVERRIDE; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 | 1425 |
1428 scoped_refptr<FullscreenController> fullscreen_controller_; | 1426 scoped_refptr<FullscreenController> fullscreen_controller_; |
1429 | 1427 |
1430 // True if the browser window has been shown at least once. | 1428 // True if the browser window has been shown at least once. |
1431 bool window_has_shown_; | 1429 bool window_has_shown_; |
1432 | 1430 |
1433 DISALLOW_COPY_AND_ASSIGN(Browser); | 1431 DISALLOW_COPY_AND_ASSIGN(Browser); |
1434 }; | 1432 }; |
1435 | 1433 |
1436 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1434 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |