| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/prefs/pref_change_registrar.h" | 18 #include "base/prefs/pref_change_registrar.h" |
| 19 #include "base/prefs/pref_member.h" | 19 #include "base/prefs/pref_member.h" |
| 20 #include "base/string16.h" | 20 #include "base/string16.h" |
| 21 #include "chrome/browser/devtools/devtools_toggle_action.h" | 21 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 22 #include "chrome/browser/sessions/session_id.h" | 22 #include "chrome/browser/sessions/session_id.h" |
| 23 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" | 23 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" |
| 24 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 24 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 25 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" | 25 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" |
| 26 #include "chrome/browser/ui/browser_navigator.h" | 26 #include "chrome/browser/ui/browser_navigator.h" |
| 27 #include "chrome/browser/ui/chrome_modal_dialog_manager_delegate.h" |
| 27 #include "chrome/browser/ui/host_desktop.h" | 28 #include "chrome/browser/ui/host_desktop.h" |
| 28 #include "chrome/browser/ui/search/search_model_observer.h" | 29 #include "chrome/browser/ui/search/search_model_observer.h" |
| 29 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" | 30 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" |
| 30 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 31 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
| 31 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 32 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 32 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 33 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
| 33 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h" | |
| 34 #include "chrome/browser/ui/zoom/zoom_observer.h" | 34 #include "chrome/browser/ui/zoom/zoom_observer.h" |
| 35 #include "chrome/common/content_settings.h" | 35 #include "chrome/common/content_settings.h" |
| 36 #include "chrome/common/content_settings_types.h" | 36 #include "chrome/common/content_settings_types.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "content/public/browser/notification_observer.h" | 38 #include "content/public/browser/notification_observer.h" |
| 39 #include "content/public/browser/notification_registrar.h" | 39 #include "content/public/browser/notification_registrar.h" |
| 40 #include "content/public/browser/page_navigator.h" | 40 #include "content/public/browser/page_navigator.h" |
| 41 #include "content/public/browser/web_contents_delegate.h" | 41 #include "content/public/browser/web_contents_delegate.h" |
| 42 #include "content/public/common/page_transition_types.h" | 42 #include "content/public/common/page_transition_types.h" |
| 43 #include "content/public/common/page_zoom.h" | 43 #include "content/public/common/page_zoom.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 class FullscreenController; | 56 class FullscreenController; |
| 57 class PrefService; | 57 class PrefService; |
| 58 class Profile; | 58 class Profile; |
| 59 class SearchDelegate; | 59 class SearchDelegate; |
| 60 class SearchModel; | 60 class SearchModel; |
| 61 class StatusBubble; | 61 class StatusBubble; |
| 62 class TabStripModel; | 62 class TabStripModel; |
| 63 class TabStripModelDelegate; | 63 class TabStripModelDelegate; |
| 64 struct SearchMode; | 64 struct SearchMode; |
| 65 struct WebApplicationInfo; | 65 struct WebApplicationInfo; |
| 66 class WebContentsModalDialogHost; | |
| 67 | 66 |
| 68 namespace chrome { | 67 namespace chrome { |
| 69 class BrowserCommandController; | 68 class BrowserCommandController; |
| 70 class UnloadController; | 69 class UnloadController; |
| 71 } | 70 } |
| 72 | 71 |
| 73 namespace content { | 72 namespace content { |
| 74 class NavigationController; | 73 class NavigationController; |
| 75 class SessionStorageNamespace; | 74 class SessionStorageNamespace; |
| 76 } | 75 } |
| 77 | 76 |
| 78 namespace extensions { | 77 namespace extensions { |
| 79 class Extension; | 78 class Extension; |
| 80 class WindowController; | 79 class WindowController; |
| 81 } | 80 } |
| 82 | 81 |
| 83 namespace gfx { | 82 namespace gfx { |
| 84 class Image; | 83 class Image; |
| 85 class Point; | 84 class Point; |
| 86 } | 85 } |
| 87 | 86 |
| 88 namespace ui { | 87 namespace ui { |
| 89 struct SelectedFileInfo; | 88 struct SelectedFileInfo; |
| 90 class WebDialogDelegate; | 89 class WebDialogDelegate; |
| 91 } | 90 } |
| 92 | 91 |
| 92 namespace web_modal { |
| 93 class WebContentsModalDialogHost; |
| 94 } |
| 95 |
| 93 class Browser : public TabStripModelObserver, | 96 class Browser : public TabStripModelObserver, |
| 94 public content::WebContentsDelegate, | 97 public content::WebContentsDelegate, |
| 95 public CoreTabHelperDelegate, | 98 public CoreTabHelperDelegate, |
| 96 public SearchEngineTabHelperDelegate, | 99 public SearchEngineTabHelperDelegate, |
| 97 public WebContentsModalDialogManagerDelegate, | 100 public ChromeModalDialogManagerDelegate, |
| 98 public BlockedContentTabHelperDelegate, | 101 public BlockedContentTabHelperDelegate, |
| 99 public BookmarkTabHelperDelegate, | 102 public BookmarkTabHelperDelegate, |
| 100 public ZoomObserver, | 103 public ZoomObserver, |
| 101 public content::PageNavigator, | 104 public content::PageNavigator, |
| 102 public content::NotificationObserver, | 105 public content::NotificationObserver, |
| 103 public ui::SelectFileDialog::Listener, | 106 public ui::SelectFileDialog::Listener, |
| 104 public SearchModelObserver { | 107 public SearchModelObserver { |
| 105 public: | 108 public: |
| 106 // SessionService::WindowType mirrors these values. If you add to this | 109 // SessionService::WindowType mirrors these values. If you add to this |
| 107 // enum, look at SessionService::WindowType to see if it needs to be | 110 // enum, look at SessionService::WindowType to see if it needs to be |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 virtual bool CanSaveContents( | 638 virtual bool CanSaveContents( |
| 636 content::WebContents* web_contents) const OVERRIDE; | 639 content::WebContents* web_contents) const OVERRIDE; |
| 637 | 640 |
| 638 // Overridden from SearchEngineTabHelperDelegate: | 641 // Overridden from SearchEngineTabHelperDelegate: |
| 639 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, | 642 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 640 Profile* profile) OVERRIDE; | 643 Profile* profile) OVERRIDE; |
| 641 | 644 |
| 642 // Overridden from WebContentsModalDialogManagerDelegate: | 645 // Overridden from WebContentsModalDialogManagerDelegate: |
| 643 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 646 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
| 644 bool blocked) OVERRIDE; | 647 bool blocked) OVERRIDE; |
| 645 virtual WebContentsModalDialogHost* | 648 virtual web_modal::WebContentsModalDialogHost* |
| 646 GetWebContentsModalDialogHost() OVERRIDE; | 649 GetWebContentsModalDialogHost() OVERRIDE; |
| 647 | 650 |
| 648 // Overridden from BlockedContentTabHelperDelegate: | 651 // Overridden from BlockedContentTabHelperDelegate: |
| 649 virtual content::WebContents* GetConstrainingWebContents( | 652 virtual content::WebContents* GetConstrainingWebContents( |
| 650 content::WebContents* source) OVERRIDE; | 653 content::WebContents* source) OVERRIDE; |
| 651 | 654 |
| 652 // Overridden from BookmarkTabHelperDelegate: | 655 // Overridden from BookmarkTabHelperDelegate: |
| 653 virtual void URLStarredChanged(content::WebContents* web_contents, | 656 virtual void URLStarredChanged(content::WebContents* web_contents, |
| 654 bool starred) OVERRIDE; | 657 bool starred) OVERRIDE; |
| 655 | 658 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 bool window_has_shown_; | 920 bool window_has_shown_; |
| 918 | 921 |
| 919 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 922 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
| 920 // before DidEndColorChooser is called. | 923 // before DidEndColorChooser is called. |
| 921 scoped_ptr<content::ColorChooser> color_chooser_; | 924 scoped_ptr<content::ColorChooser> color_chooser_; |
| 922 | 925 |
| 923 DISALLOW_COPY_AND_ASSIGN(Browser); | 926 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 924 }; | 927 }; |
| 925 | 928 |
| 926 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 929 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |