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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/ui/signin_view_controller.h" | 32 #include "chrome/browser/ui/signin_view_controller.h" |
33 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 33 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
34 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 34 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
35 #include "components/content_settings/core/common/content_settings.h" | 35 #include "components/content_settings/core/common/content_settings.h" |
36 #include "components/content_settings/core/common/content_settings_types.h" | 36 #include "components/content_settings/core/common/content_settings_types.h" |
37 #include "components/prefs/pref_change_registrar.h" | 37 #include "components/prefs/pref_change_registrar.h" |
38 #include "components/prefs/pref_member.h" | 38 #include "components/prefs/pref_member.h" |
39 #include "components/sessions/core/session_id.h" | 39 #include "components/sessions/core/session_id.h" |
40 #include "components/toolbar/toolbar_model.h" | 40 #include "components/toolbar/toolbar_model.h" |
41 #include "components/translate/content/browser/content_translate_driver.h" | 41 #include "components/translate/content/browser/content_translate_driver.h" |
42 #include "components/ui/zoom/zoom_observer.h" | 42 #include "components/zoom/zoom_observer.h" |
43 #include "content/public/browser/notification_observer.h" | 43 #include "content/public/browser/notification_observer.h" |
44 #include "content/public/browser/notification_registrar.h" | 44 #include "content/public/browser/notification_registrar.h" |
45 #include "content/public/browser/page_navigator.h" | 45 #include "content/public/browser/page_navigator.h" |
46 #include "content/public/browser/web_contents_delegate.h" | 46 #include "content/public/browser/web_contents_delegate.h" |
47 #include "content/public/common/page_zoom.h" | 47 #include "content/public/common/page_zoom.h" |
48 #include "ui/base/page_transition_types.h" | 48 #include "ui/base/page_transition_types.h" |
49 #include "ui/base/ui_base_types.h" | 49 #include "ui/base/ui_base_types.h" |
50 #include "ui/base/window_open_disposition.h" | 50 #include "ui/base/window_open_disposition.h" |
51 #include "ui/gfx/geometry/rect.h" | 51 #include "ui/gfx/geometry/rect.h" |
52 #include "ui/shell_dialogs/select_file_dialog.h" | 52 #include "ui/shell_dialogs/select_file_dialog.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 namespace web_modal { | 105 namespace web_modal { |
106 class WebContentsModalDialogHost; | 106 class WebContentsModalDialogHost; |
107 } | 107 } |
108 | 108 |
109 class Browser : public TabStripModelObserver, | 109 class Browser : public TabStripModelObserver, |
110 public content::WebContentsDelegate, | 110 public content::WebContentsDelegate, |
111 public CoreTabHelperDelegate, | 111 public CoreTabHelperDelegate, |
112 public SearchTabHelperDelegate, | 112 public SearchTabHelperDelegate, |
113 public ChromeWebModalDialogManagerDelegate, | 113 public ChromeWebModalDialogManagerDelegate, |
114 public BookmarkTabHelperDelegate, | 114 public BookmarkTabHelperDelegate, |
115 public ui_zoom::ZoomObserver, | 115 public zoom::ZoomObserver, |
116 public content::PageNavigator, | 116 public content::PageNavigator, |
117 public content::NotificationObserver, | 117 public content::NotificationObserver, |
118 #if defined(ENABLE_EXTENSIONS) | 118 #if defined(ENABLE_EXTENSIONS) |
119 public extensions::ExtensionRegistryObserver, | 119 public extensions::ExtensionRegistryObserver, |
120 #endif | 120 #endif |
121 public translate::ContentTranslateDriver::Observer, | 121 public translate::ContentTranslateDriver::Observer, |
122 public ui::SelectFileDialog::Listener { | 122 public ui::SelectFileDialog::Listener { |
123 public: | 123 public: |
124 // SessionService::WindowType mirrors these values. If you add to this | 124 // SessionService::WindowType mirrors these values. If you add to this |
125 // enum, look at SessionService::WindowType to see if it needs to be | 125 // enum, look at SessionService::WindowType to see if it needs to be |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 bool blocked) override; | 702 bool blocked) override; |
703 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 703 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
704 override; | 704 override; |
705 | 705 |
706 // Overridden from BookmarkTabHelperDelegate: | 706 // Overridden from BookmarkTabHelperDelegate: |
707 void URLStarredChanged(content::WebContents* web_contents, | 707 void URLStarredChanged(content::WebContents* web_contents, |
708 bool starred) override; | 708 bool starred) override; |
709 | 709 |
710 // Overridden from ZoomObserver: | 710 // Overridden from ZoomObserver: |
711 void OnZoomChanged( | 711 void OnZoomChanged( |
712 const ui_zoom::ZoomController::ZoomChangedEventData& data) override; | 712 const zoom::ZoomController::ZoomChangedEventData& data) override; |
713 | 713 |
714 // Overridden from SelectFileDialog::Listener: | 714 // Overridden from SelectFileDialog::Listener: |
715 void FileSelected(const base::FilePath& path, | 715 void FileSelected(const base::FilePath& path, |
716 int index, | 716 int index, |
717 void* params) override; | 717 void* params) override; |
718 void FileSelectedWithExtraInfo(const ui::SelectedFileInfo& file_info, | 718 void FileSelectedWithExtraInfo(const ui::SelectedFileInfo& file_info, |
719 int index, | 719 int index, |
720 void* params) override; | 720 void* params) override; |
721 | 721 |
722 // Overridden from content::NotificationObserver: | 722 // Overridden from content::NotificationObserver: |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 // The following factory is used for chrome update coalescing. | 1008 // The following factory is used for chrome update coalescing. |
1009 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1009 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1010 | 1010 |
1011 // The following factory is used to close the frame at a later time. | 1011 // The following factory is used to close the frame at a later time. |
1012 base::WeakPtrFactory<Browser> weak_factory_; | 1012 base::WeakPtrFactory<Browser> weak_factory_; |
1013 | 1013 |
1014 DISALLOW_COPY_AND_ASSIGN(Browser); | 1014 DISALLOW_COPY_AND_ASSIGN(Browser); |
1015 }; | 1015 }; |
1016 | 1016 |
1017 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1017 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |